This commit is contained in:
aozhiwei 2020-05-27 15:40:41 +08:00
parent f64e16d276
commit f1d9fd66f9
2 changed files with 2 additions and 1 deletions

View File

@ -52,7 +52,7 @@ float Weapon::GetAttrValue(HumanAttrType_e attr_type)
break;
case kHAT_MaxHp:
{
return 0 +
return meta->i->max_hp() +
(upgrade_meta ? upgrade_meta->GetAttrValue(weapon_lv, attr_type) : 0);
}
break;

View File

@ -73,6 +73,7 @@ message Equip
optional int32 fire_rate = 9; //
optional int32 atk = 10; //
optional int32 def = 11; //
optional int32 max_hp = 41;
optional int32 explosion_range = 12; //
optional int32 bullet_speed = 13; //
optional int32 range = 14; //