Skip to content

Commit

Permalink
Shang monkeys Fire Sale spawn change
Browse files Browse the repository at this point in the history
Box now must be moved for Fire Sale to spawn from monkeys
  • Loading branch information
Jbleezy committed Mar 21, 2019
1 parent 0a3957f commit 18d7ede
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 14 deletions.
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -865,8 +865,7 @@
* Electrified zombies no longer drop a Max Ammo from the Director and a normal powerup at the same time

### Monkeys (Shangri-La)
* Keep attempting to spawn until successfully spawned during the whole duration while a powerup is active on the ground
* Now always cycle through Nukes and Fire Sales
* Monkeys keep attempting to spawn until successfully spawned during the whole duration while a powerup is active on the ground
* Players now earn normal kill points for killing a monkey (previously was 500 points)
* The powerup that a Monkey picks up no longer has to initially be a Max Ammo for Perk Bottle to be cycled through (still has to be picked up as a Max Ammo)
* Fixed a bug where monkeys would not spawn in certain situations where the max amount of zombies were already spawned in
Expand Down
19 changes: 7 additions & 12 deletions maps/zombie_temple_ai_monkey.gsc
Original file line number Diff line number Diff line change
Expand Up @@ -1240,16 +1240,11 @@ _powerup_Randomize(monkey)

powerup_cycle[powerup_cycle.size] = "full_ammo"; //Ammo is always last

//Remove fire sale so the players can not get firesale too early.
//if(level.chest_moves < 1)
//{
// powerup_cycle = array_remove_nokeys(powerup_cycle, "fire_sale");
//}

//if(level.round_number<=1)
//{
// powerup_cycle = array_remove_nokeys(powerup_cycle, "nuke");
//}
//Remove fire sale so the players can not get fire sale too early.
if(level.chest_moves < 1)
{
powerup_cycle = array_remove_nokeys(powerup_cycle, "fire_sale");
}

//Find current power up name
currentPowerUp = undefined;
Expand All @@ -1268,8 +1263,8 @@ _powerup_Randomize(monkey)
powerup_cycle = array_remove(powerup_cycle, currentPowerUp);
powerup_cycle = array_insert(powerup_cycle, currentPowerUp, 0);
}
//Add Perk bottel if this is a max ammo and its the f
if(currentPowerUp == "full_ammo")//&& self.grab_count == 1
//Add Perk bottle if this is a max ammo
if(currentPowerUp == "full_ammo") //&& self.grab_count == 1
{
index = randomintrange(1, powerup_cycle.size - 1);
powerup_cycle = array_insert(powerup_cycle, "free_perk", index);
Expand Down

0 comments on commit 18d7ede

Please sign in to comment.