fixed the hp percent
This commit is contained in:
parent
e5ab9245d6
commit
c8b403f9f0
2
drpg.py
2
drpg.py
|
@ -49,7 +49,7 @@ class drpg:
|
||||||
if message.content.startswith('```diff\n!========['):
|
if message.content.startswith('```diff\n!========['):
|
||||||
try:
|
try:
|
||||||
usr, hp = read_adv(message.content)
|
usr, hp = read_adv(message.content)
|
||||||
if hp <= 50:
|
if hp <= 20:
|
||||||
usr = message.server.get_member_named(usr)
|
usr = message.server.get_member_named(usr)
|
||||||
msg = f"❤️ **Heal up!** {usr.mention} you only have "\
|
msg = f"❤️ **Heal up!** {usr.mention} you only have "\
|
||||||
f"{hp:.2f}% HP left."
|
f"{hp:.2f}% HP left."
|
||||||
|
|
Loading…
Reference in New Issue