Dancer_A

wrath

Nov 14th, 2022 (edited)
1,170
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.28 KB | None | 0 0
  1. // Skills: Wrath
  2. if (actor.has_Skill("WRATH")) // if actor has skill
  3.     if (actor.hp <= actor.maxhp / 2) //can't multiply and integer by a decimal
  4.         n += 50; // % sign in C# is modulus, which is basically the remainder when you divide
  5. // ex: 8 % 5 = 3; 8/5 is 5 remainder 3 <-- the result
Advertisement
Add Comment
Please, Sign In to add comment