aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/examples/COC7/__init__.py
diff options
context:
space:
mode:
author简律纯 <i@jyunko.cn>2024-06-28 11:33:07 +0800
committer简律纯 <i@jyunko.cn>2024-06-28 11:33:07 +0800
commit2827c09958aa6778e4499d34f5949d6f5677f2c6 (patch)
treef24a313500def2e24ebba91ec5ab41a99ff2f35d /examples/COC7/__init__.py
parent0f74df0e709672118f06cec1c6fdd02ccfa31e63 (diff)
downloadHydroRollCore-2827c09958aa6778e4499d34f5949d6f5677f2c6.tar.gz
HydroRollCore-2827c09958aa6778e4499d34f5949d6f5677f2c6.zip
refactor: hrc.rules - > hrc.rule
Diffstat (limited to 'examples/COC7/__init__.py')
-rw-r--r--examples/COC7/__init__.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/examples/COC7/__init__.py b/examples/COC7/__init__.py
index f3d781f..ecd2091 100644
--- a/examples/COC7/__init__.py
+++ b/examples/COC7/__init__.py
@@ -15,10 +15,10 @@ async def auto_card(_event='T_Event'):
async def overview_card(pc: player_card):
- max_hp = math.floor((pc.get('CON', 0) + pc.get('SIZ', 0) / 10)
- max_san=math.floor(99 - pc.get('CM', 0))
- mp=pc.get('MP', 0)
- mp_show=" mp" + str(mp) + "/" + str(
- math.floor(pc.get('POW', 0) / 5)
- ) if mp and mp != math.floor(pc.get('POW', 0) / 5) else ""
+ max_hp = math.floor((pc.get('CON', 0) + pc.get('SIZ', 0) / 10))
+ max_san = math.floor(99 - pc.get('CM', 0))
+ mp = pc.get('MP', 0)
+ mp_show = " mp" + str(mp) + "/" + str(
+ math.floor(pc.get('POW', 0) / 5)
+ ) if mp and mp != math.floor(pc.get('POW', 0) / 5) else ""
return pc.get('__Name', "") + " hp" + str(pc.get('HP', max_hp)) + "/" + str(max_hp) + " san" + str(pc.get('SAN', "?")) + "/" + str(max_san) + mp_show + " DEX" + str(pc.get('DEX', "?"))