Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def damage_ratio(character_helper,monster_helper):
- monster_health = 500
- while monster_health >= 0:
- core = abs(5 + (character_helper.strength * 2) + (character_helper.magic * 2) + (character_helper.agility * 1) - (monster_helper.defense * 2))
- crit_chance = ri(0,1)
- if crit_chance == 0:
- monster_health = monster_helper.health - core
- print(monster_health)
- if crit_chance == 1:
- core = core * 2
- monster_health = monster_helper.health - core
- print(monster_health)
- damage_ratio(character_helper,monster_helper)
Advertisement
Add Comment
Please, Sign In to add comment