Friday, 22 August 2025 01:17:08
This commit is contained in:
@@ -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