This commit is contained in:
aozhiwei 2022-05-10 09:54:57 +08:00
parent 1be8e2da29
commit 067e9fbdb8
2 changed files with 2 additions and 1 deletions

View File

@ -173,6 +173,7 @@ Human::Human():Creature()
AddInventory(IS_762MM, FIGHTING_MODE_BULLET_NUM);
AddInventory(IS_12GAUGE, FIGHTING_MODE_BULLET_NUM);
AddInventory(IS_RPG, FIGHTING_MODE_BULLET_NUM);
AddInventory(IS_ICE, FIGHTING_MODE_BULLET_NUM);
}
}

View File

@ -637,9 +637,9 @@ void Player::ProcPrepareItems(const ::google::protobuf::RepeatedField< ::google:
weapon->weapon_idx = weapon_idx;
weapon->weapon_id = spec_weapon.weapon_id;
weapon->weapon_lv = spec_weapon.weapon_lv;
weapon->ammo = spec_weapon.ammo;
weapon->meta = item_meta;
weapon->Recalc();
weapon->ammo = weapon->GetClipVolume();
SetCurrWeapon(&weapons[GUN_SLOT1]);
}
}