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