From 2bb5ecf8b694128e1ac45914611e2277d4494e96 Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Tue, 23 Jan 2024 16:19:40 +0800 Subject: [PATCH] 1 --- doc/_common.py | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/doc/_common.py b/doc/_common.py index 7ac13e9b..508f5ca4 100644 --- a/doc/_common.py +++ b/doc/_common.py @@ -273,7 +273,7 @@ class Hero(object): ['offer_reward_state', 0, '是否悬赏中'], ['tags', '', '1:Gen状态'], ['!avatarInfo', [AvatarInfo()], '装饰信息'], - + ['ability', Ability(), '属性'], ] class LevelingHero(object): @@ -389,6 +389,17 @@ class ItemPriceInfo(object): ['price_info', PriceInfo(), '价格信息'], ] +class Ability(object): + + def __init__(self): + self.fields = [ + ['hp', 0, '血量'], + ['attack', 0, '攻击'], + ['defence', 0, '防御'], + ['block', 0, '格挡'], + ['critical', 0, '暴击'], + ] + class GoodsInfo(object): def __init__(self):