Friday, 15 August 2025 23:08:08

This commit is contained in:
2025-08-15 23:08:10 -04:00
parent 8a2ad448fd
commit a47a6331ee
129 changed files with 515 additions and 2535 deletions

View File

@@ -0,0 +1,21 @@
using Godot;
using System;
using System.Collections.Generic;
public partial class BasicAttack : Effect
{
public BasicAttack() : base()
{
_trigger.Add(Trigger.Collision);
}
public override void TriggerEffect()
{
if (_workerOwner._collisionTarget is Worker)
{
int damage = _workerOwner._aptitude;
((Worker)_workerOwner._collisionTarget).ChangeHealth(damage, _workerOwner);
}
}
}