Newer
Older
DungeonShooting / DungeonShooting_Godot / src / game / activity / prop / active / ActiveProp5000.cs
@小李xl 小李xl on 5 Jul 2023 231 bytes 使用主动道具

using Godot;

[Tool]
public partial class ActiveProp5000 : ActiveProp
{
    public override bool CanUse()
    {
        return !Master.IsHpFull();
    }

    protected override void OnUse()
    {
        Master.Hp += 2;
    }
}