Friday, 22 August 2025 01:17:08
This commit is contained in:
@@ -21,8 +21,8 @@ public partial class BasicAttack : Action
|
||||
Worker owner = (Worker)_owner;
|
||||
if (target._manager != owner._manager)
|
||||
{
|
||||
int damage = -owner._aptitude / 2;
|
||||
target.ChangeHealth(damage, owner);
|
||||
int damage = -owner._aptitude._default / 2;
|
||||
// target.ChangeHealth(damage, owner);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -15,10 +15,10 @@ public partial class Caffeinate : Action
|
||||
if (_target is Worker)
|
||||
{
|
||||
Worker target = (Worker)_target;
|
||||
target._rotationalForce += 10;
|
||||
Vector2 targetDistanceNormal = (target.Position - _owner.Position).Normalized();
|
||||
target.ApplyCentralForce(targetDistanceNormal * 10);
|
||||
target.ChangeHealth(-1, _owner);
|
||||
if (!target.HasCondition(GetType().ToString()))
|
||||
{
|
||||
target._conditions.Add(new Caffeinated(target));
|
||||
}
|
||||
}
|
||||
_target = null;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user