Skip to content

Commit

Permalink
monsters will no longer evolve into a specifically defined form if th…
Browse files Browse the repository at this point in the history
…at form is blacklisted
  • Loading branch information
Rhxydos authored and Coolthulhu committed Sep 14, 2021
1 parent bd56829 commit 55cbaec
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/monster.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -356,6 +356,10 @@ void monster::try_upgrade( bool pin_time )
}

if( type->upgrade_into ) {
//If we upgrade into a blacklisted monster, treat it as though we are non-upgradeable
if( MonsterGroupManager::monster_is_blacklisted( type->upgrade_into ) ) {
return;
}
poly( type->upgrade_into );
} else {
const mtype_id &new_type = MonsterGroupManager::GetRandomMonsterFromGroup( type->upgrade_group );
Expand Down

0 comments on commit 55cbaec

Please sign in to comment.