Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #direction check
- same_way = (base > 0) == (amount > 0)
- if same_way:
- amount_abs = abs(amount)
- base_abs = abs(base)
- if base_abs < 50:
- mod = amount_abs
- elif base_abs < 100:
- mod = die(amount_abs)
- elif test(amount_abs*5):
- mod = 1
- else:
- mod = 0
- if amount < 0:
- mod = -mod
- else:
- mod = amount
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement