Newer
Older
DungeonShooting / DungeonShooting_Godot / src / game / activity / prop / buff / Buff0003.cs
@小李xl 小李xl on 28 Jun 2023 355 bytes 调整资源目录结构
  1.  
  2. using Godot;
  3.  
  4. /// <summary>
  5. /// 护盾上限buff, 护盾 + 1
  6. /// </summary>
  7. [GlobalClass, Tool]
  8. public partial class Buff0003 : Buff
  9. {
  10. protected override void OnPickUp(Role master)
  11. {
  12. master.MaxShield += 1;
  13. master.Shield += 1;
  14. }
  15.  
  16. protected override void OnRemove(Role master)
  17. {
  18. master.MaxShield -= 1;
  19. }
  20. }