-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfuryOfTheSmall.py
27 lines (27 loc) · 1000 Bytes
/
furyOfTheSmall.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
!alias fots tembed
<drac2>
ability_name = "Fury of the Small"
cc_name = ability_name
cc_value = character().get_cc(cc_name)
return_string = ""
if cc_value >= 1:
cc_use = 1
character().mod_cc(cc_name, -cc_use)
return_string = (
f' -title "{name} uses {ability_name}!" '
f' -desc "When you damage a creature with an attack or a spell and the creature\'s size is larger than yours, you can cause the attack or spell to deal extra damage to the creature. The extra damage equals your level. Once you use this trait, you can\'t use it again until you finish a short or long rest." '
f' -f "Damage|{str(level)}|inline" '
)
else:
cc_use = 0
return_string = (
f' -title "{name} fails to use {ability_name}!" '
f' -desc "Take a rest." '
)
cc_current = character().cc_str(cc_name)
return_string += (
f' -f "{cc_name} (-{cc_use})| {cc_current}|inline" '
f' -footer "{ctx.prefix}{ctx.alias}"'
)
return return_string
</drac2>