Newer
Older
DungeonShooting / DungeonShooting_Godot / src / game / activity / prop / buff / Buff0002.cs
@小李xl 小李xl on 28 Jun 2023 349 bytes 调整资源目录结构

using Godot;

/// <summary>
/// 血量上限buff, 心之容器 + 1
/// </summary>
[GlobalClass, Tool]
public partial class Buff0002 : Buff
{
    protected override void OnPickUp(Role master)
    {
        master.MaxHp += 2;
        master.Hp += 2;
    }

    protected override void OnRemove(Role master)
    {
        master.MaxHp -= 2;
    }
}