minor fix for _zm_pers_upgrades_functions

This commit is contained in:
JezuzLizard 2020-07-25 02:28:53 -07:00
parent ed0c423727
commit 28b4f9edf7

View File

@ -1042,7 +1042,7 @@ pers_treasure_chest_choosespecialweapon( player ) //checked changed to match cer
{ {
player.pers_magic_box_weapon_count = 0; player.pers_magic_box_weapon_count = 0;
} }
if ( player.pers_magic_box_weapon_count < 2 && player.pers_magic_box_weapon_count == 0 || rval < 0.6 ) if ( ( player.pers_magic_box_weapon_count == 0 || rval < 0.6 ) && player.pers_magic_box_weapon_count < 2 )
{ {
player.pers_magic_box_weapon_count++; player.pers_magic_box_weapon_count++;
if ( isDefined( level.pers_treasure_chest_get_weapons_array_func ) ) if ( isDefined( level.pers_treasure_chest_get_weapons_array_func ) )