Advertisement
poombus

StatusEffect.gd

Dec 30th, 2023 (edited)
2,331
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #StatusEffect.gd
  2. extends Resource
  3. class_name StatusEffect
  4.  
  5. var pawn:Pawn2D; #the target
  6.  
  7. var id:String;
  8. var display_name:String;
  9.  
  10. var potency:int = 0;
  11. var count:int = 0;
  12.  
  13. func apply(p:int, c:int):
  14.    potency = p;
  15.    count = c;
  16.    #more pseudo code
  17.  
  18. func remove():
  19.    pass;
  20.    #removes self from pawn statuseffect array
  21.  
  22. #EVENT FUNCTIONS. (there's more, this is just a simplified list)
  23.  
  24. func on_turn_start():
  25.    pass;
  26.    #decrease count. remove if count is 0
  27.  
  28. func on_turn_end(): pass;
  29. func on_damage_taken(): pass;
  30. func on_damage_dealt(): pass;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement