Skip to content

Commit

Permalink
Fix more Abom logic, fix claw verbs
Browse files Browse the repository at this point in the history
The claws were still functional, but the verbs have been broken since
adding fists of thunder whoops.
  • Loading branch information
Floodkiller committed Feb 17, 2020
1 parent abeae39 commit d60b21d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion crawl-ref/source/ng-restr.cc
Expand Up @@ -139,7 +139,7 @@ char_choice_restriction weapon_restriction(weapon_type wpn,
}

if (wpn == WPN_QUARTERSTAFF && ng.job != JOB_GLADIATOR
&& !(ng.job == JOB_FIGHTER && ng.species == SP_FORMICID || ng.species == SP_ABOMINATION))
&& !(ng.job == JOB_FIGHTER && (ng.species == SP_FORMICID || ng.species == SP_ABOMINATION)))
{
return CC_BANNED;
}
Expand Down
2 changes: 1 addition & 1 deletion crawl-ref/source/output.cc
Expand Up @@ -2029,7 +2029,7 @@ static void _print_overview_screen_equip(column_composer& cols,
for (equipment_type eqslot : e_order)
{
if ((you.species != SP_OCTOPODE
|| you.species != SP_ABOMINATION)
&& you.species != SP_ABOMINATION)
&& eqslot != EQ_WEAPON
&& !you_can_wear(eqslot))
{
Expand Down
6 changes: 3 additions & 3 deletions crawl-ref/source/player.cc
Expand Up @@ -707,7 +707,7 @@ maybe_bool you_can_wear(equipment_type eq, bool temp)
return MB_FALSE;
// intentional fallthrough
case EQ_RIGHT_RING:
return (you.species != SP_OCTOPODE || you.species != SP_ABOMINATION) ? MB_TRUE : MB_FALSE;
return (you.species != SP_OCTOPODE && you.species != SP_ABOMINATION) ? MB_TRUE : MB_FALSE;

case EQ_RING_EIGHT:
if (you.get_mutation_level(MUT_MISSING_HAND))
Expand Down Expand Up @@ -7208,8 +7208,8 @@ bool player::has_usable_pincers(bool allow_tran) const

bool player::has_usable_claws(bool allow_tran) const
{
if (!has_claws(allow_tran))
return false;
if (has_claws(allow_tran))
return true;

if (player_equip_unrand(UNRAND_FISTS_OF_THUNDER))
return true;
Expand Down

0 comments on commit d60b21d

Please sign in to comment.