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

using Godot;

/// <summary>
/// 移速 buff, 移速 + 3
/// </summary>
[Tool]
public partial class BuffProp0001 : BuffActivity
{
    public override void OnPickUpItem()
    {
        Master.RoleState.MoveSpeed += 30;
        Master.RoleState.Acceleration += 400;
        Master.RoleState.Friction += 300;
    }

    public override void OnRemoveItem()
    {
        Master.RoleState.MoveSpeed -= 30;
        Master.RoleState.Acceleration -= 400;
        Master.RoleState.Friction -= 300;
    }
}