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

using Godot;

/// <summary>
/// 护盾上限buff, 护盾 + 1
/// </summary>
[GlobalClass, Tool]
public partial class Buff0003 : Buff
{
    protected override void OnPickUp(Role master)
    {
        master.MaxShield += 1;
        master.Shield += 1;
    }

    protected override void OnRemove(Role master)
    {
        master.MaxShield -= 1;
    }
}