actually calling update effects
This commit is contained in:
16
forge/attribute_sets/EnemyAttributeSet.cs
Normal file
16
forge/attribute_sets/EnemyAttributeSet.cs
Normal file
@@ -0,0 +1,16 @@
|
||||
using Gamesmiths.Forge.Attributes;
|
||||
namespace Movementtests.scenes.enemies;
|
||||
|
||||
public class EnemyAttributeSet : AttributeSet
|
||||
{
|
||||
public EntityAttribute Health { get; }
|
||||
public EntityAttribute Strength { get; }
|
||||
public EntityAttribute Speed { get; }
|
||||
|
||||
public EnemyAttributeSet()
|
||||
{
|
||||
Health = InitializeAttribute(nameof(Health), 100, 0, 150);
|
||||
Strength = InitializeAttribute(nameof(Strength), 10, 0, 99);
|
||||
Speed = InitializeAttribute(nameof(Speed), 5, 0, 10);
|
||||
}
|
||||
}
|
||||
1
forge/attribute_sets/EnemyAttributeSet.cs.uid
Normal file
1
forge/attribute_sets/EnemyAttributeSet.cs.uid
Normal file
@@ -0,0 +1 @@
|
||||
uid://nqxdkkg3l7go
|
||||
19
forge/attribute_sets/PlayerAttributeSet.cs
Normal file
19
forge/attribute_sets/PlayerAttributeSet.cs
Normal file
@@ -0,0 +1,19 @@
|
||||
using Gamesmiths.Forge.Attributes;
|
||||
|
||||
namespace Movementtests.scenes.player_controller.scripts;
|
||||
|
||||
public class PlayerAttributeSet : AttributeSet
|
||||
{
|
||||
public EntityAttribute Health { get; }
|
||||
public EntityAttribute Mana { get; }
|
||||
public EntityAttribute Strength { get; }
|
||||
public EntityAttribute Speed { get; }
|
||||
|
||||
public PlayerAttributeSet()
|
||||
{
|
||||
Health = InitializeAttribute(nameof(Health), 100, 0, 150);
|
||||
Mana = InitializeAttribute(nameof(Mana), 100, 0, 100);
|
||||
Strength = InitializeAttribute(nameof(Strength), 10, 0, 99);
|
||||
Speed = InitializeAttribute(nameof(Speed), 5, 0, 10);
|
||||
}
|
||||
}
|
||||
1
forge/attribute_sets/PlayerAttributeSet.cs.uid
Normal file
1
forge/attribute_sets/PlayerAttributeSet.cs.uid
Normal file
@@ -0,0 +1 @@
|
||||
uid://budtqogrwod6w
|
||||
13
forge/attribute_sets/WeaponAttributeSet.cs
Normal file
13
forge/attribute_sets/WeaponAttributeSet.cs
Normal file
@@ -0,0 +1,13 @@
|
||||
using Gamesmiths.Forge.Attributes;
|
||||
|
||||
namespace Movementtests.scenes.player_controller.components.weapon;
|
||||
|
||||
public class WeaponAttributeSet : AttributeSet
|
||||
{
|
||||
public EntityAttribute Level { get; }
|
||||
|
||||
public WeaponAttributeSet()
|
||||
{
|
||||
Level = InitializeAttribute(nameof(Level), 1, 1, 10);
|
||||
}
|
||||
}
|
||||
1
forge/attribute_sets/WeaponAttributeSet.cs.uid
Normal file
1
forge/attribute_sets/WeaponAttributeSet.cs.uid
Normal file
@@ -0,0 +1 @@
|
||||
uid://mvc3bv0p021
|
||||
Reference in New Issue
Block a user