| 1 |
--- a/bin/frozen-bubble |
| 2 |
+++ b/bin/frozen-bubble |
| 3 |
@@ -44,6 +44,7 @@ |
| 4 |
%sticking_bubble $time %imgbin $TIME_HURRY_WARN $TIME_HURRY_MAX $TIMEOUT_PINGUIN_SLEEP $FREE_FALL_CONSTANT @joysticks $joysticksinfo |
| 5 |
$direct @PLAYERS @ALL_PLAYERS %levels $display_on_app_disabled $addicted_time $start_time $time_1pgame $time_netgame $fullscreen $rcfile %hiscorefiles |
| 6 |
$HISCORES $HISCORES_MPTRAIN $HISCORES_MPTRAIN_CHAINREACTION |
| 7 |
+ $total_launched_bubbles |
| 8 |
$lev_number $playermalus $mptrainingdiff $loaded_levelset $direct_levelset $chainreaction %chains %img_mini $frame $sock $gameserver $mynick |
| 9 |
$continuegamewhenplayersleave $singleplayertargetting $mylatitude $mylongitude %autokick $replayparam $autorecord $comment $saveframes $saveframesbase $saveframescounter); |
| 10 |
|
| 11 |
@@ -268,7 +269,7 @@ |
| 12 |
|
| 13 |
END { |
| 14 |
if ($app && $addicted_time) { |
| 15 |
- print "\nAddicted for ", format_addiction($addicted_time/1000, 0), "\n"; |
| 16 |
+ print "\nAddicted for ", format_addiction($addicted_time/1000, 0), ", ", $total_launched_bubbles, " bubbles were launched.\n"; |
| 17 |
} |
| 18 |
} |
| 19 |
|
| 20 |
@@ -2123,6 +2124,7 @@ |
| 21 |
&& !(any { exists $_->{chaindestx} } @{$falling_bubble{$::p}}) |
| 22 |
&& !@{$malus_bubble{$::p}})) { |
| 23 |
play_sound('launch'); |
| 24 |
+ $total_launched_bubbles++; |
| 25 |
$launched_bubble{$::p} = $tobe_launched{$::p}; |
| 26 |
$launched_bubble{$::p}->{direction} = $angle{$::p}; |
| 27 |
$tobe_launched{$::p} = undef; |
| 28 |
@@ -2930,6 +2932,7 @@ |
| 29 |
|
| 30 |
Games::FrozenBubble::CStuff::init_effects($FPATH); |
| 31 |
$addicted_time = 0; |
| 32 |
+ $total_launched_bubbles = 0; |
| 33 |
|
| 34 |
$start_time = 0; |
| 35 |
print "Ready.\n"; |