Newer
Older
DungeonShooting / DungeonShooting_Godot / src / game / activity / prop / buff / ShieldContainerBuff.cs
@小李xl 小李xl on 27 Jun 2023 366 bytes 制作被动道具

using Godot;

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

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