This commit is contained in:
aozhiwei 2021-04-28 15:20:16 +08:00
parent b8c76dc6af
commit 0d1b25df6b
2 changed files with 9 additions and 0 deletions

View File

@ -210,6 +210,12 @@ void Buff::ProcBecome(Creature* caster)
void Buff::ProcRemoveBecome(Creature* caster) void Buff::ProcRemoveBecome(Creature* caster)
{ {
if (!hold_weapons_.empty()) {
Weapon* next_weapon = caster->AutoChgWeapon();
if (next_weapon) {
caster->SetCurrWeapon(next_weapon);
}
}
for (auto& weapon : hold_weapons_) { for (auto& weapon : hold_weapons_) {
if (weapon.weapon_idx >= 0 && if (weapon.weapon_idx >= 0 &&
weapon.weapon_idx < caster->weapons.size()) { weapon.weapon_idx < caster->weapons.size()) {

View File

@ -2627,6 +2627,9 @@ void Human::RandSkin()
} else if (i == 2) { } else if (i == 2) {
skin_id = 15001 + (rand() % 6); skin_id = 15001 + (rand() % 6);
} }
#if 1
skin_id = 1;
#endif
Skin& skin = skins[i]; Skin& skin = skins[i];
skin.skin_id = skin_id; skin.skin_id = skin_id;
skin.skin_lv = 1; skin.skin_lv = 1;