Skip to content

Commit

Permalink
zombie gear: give it some minus
Browse files Browse the repository at this point in the history
  • Loading branch information
chucksellick committed Feb 18, 2025
1 parent f0731e8 commit 5210345
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions crawl-ref/source/mon-gear.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1491,9 +1491,14 @@ static void _give_weapon(monster *mon, int level, bool second_weapon = false,
return;
}

const auto real_type = mons_is_zombified(*mon) ? mons_zombie_base(*mon)
: mon->type;
const int thing_created = make_mons_weapon(real_type, level, second_weapon,
monster_type for_type = mon->type;
if (mons_is_zombified(*mon))
{
for_type = mons_zombie_base(*mon);
level = ISPEC_DAMAGED;
}

const int thing_created = make_mons_weapon(for_type, level, second_weapon,
!second_weapon && force_archer);
if (thing_created == NON_ITEM)
return;
Expand Down

0 comments on commit 5210345

Please sign in to comment.