Newer
Older
DungeonShooting / DungeonShooting_Godot / src / game / activity / prop / buff / BuffProp0003.cs
@小李xl 小李xl on 13 Mar 2024 334 bytes buff系统重构中

using Godot;

/// <summary>
/// 护盾上限buff, 护盾 + 1
/// </summary>
[Tool]
public partial class BuffProp0003 : BuffActivity
{
    public override void OnPickUpItem()
    {
        Master.MaxShield += 1;
        Master.Shield += 1;
    }

    public override void OnRemoveItem()
    {
        Master.MaxShield -= 1;
    }
}