From f7ce2c458df032f65c4c1eb31cf705bb284a3ee7 Mon Sep 17 00:00:00 2001 From: Starla Insigna Date: Sat, 10 Sep 2011 14:16:29 -0400 Subject: Modified frequency of point multipliers as the player catches them Closes #226 --- Classes/JumpGameMode.m | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'Classes/JumpGameMode.m') diff --git a/Classes/JumpGameMode.m b/Classes/JumpGameMode.m index 2bc69d8..e4f3c8b 100644 --- a/Classes/JumpGameMode.m +++ b/Classes/JumpGameMode.m @@ -343,15 +343,16 @@ FallingObject* object; int randomval = arc4random()%100; + int pmChance = (5-pointMultiplier)*5 + 30; - if (randomval < 50) + if (randomval < 30) { - object = [[Rock alloc] init]; - } else if (randomval < 75) + object = [[OneUp alloc] init]; + } else if (randomval < pmChance) { object = [[PointMultiplier alloc] init]; } else { - object = [[OneUp alloc] init]; + object = [[Rock alloc] init]; } int objectX; -- cgit 1.4.1