From 2cc25230278b739a242e10e188284d38f966b0be Mon Sep 17 00:00:00 2001 From: Ren Erthilo Date: Tue, 24 Apr 2012 19:35:42 +0100 Subject: [PATCH] TG: - MAX_EXPLOSION_RANGE is now a variable instead of a #DEFINE - Added a link to the secrets panel that allows the changing of the bomb cap to: 14, 16, 20, 28, 56, 128 Bomb cap is calculated: devestation range = bomb cap * 0.25 high damage = bomb cap * 0.5 low damage = bomb cap flash = bomb cap * 1.5 so the values for the different levels are: (screenshot) http://www.kamletos.si/bomb%20cap.png This function is game admin + game master only. Revision: r3169 Author: baloh.matevz --- code/modules/admin/admin.dm | 34 +++++++++++++++++++++++++++++++++- 1 file changed, 33 insertions(+), 1 deletion(-) diff --git a/code/modules/admin/admin.dm b/code/modules/admin/admin.dm index 163ca0e9dd1..5bcfd466285 100644 --- a/code/modules/admin/admin.dm +++ b/code/modules/admin/admin.dm @@ -1477,6 +1477,31 @@ var/global/BSACooldown = 0 log_admin("[key_name(usr)] moved the alien dinghy") else alert("You're not of a high enough rank to do this") + if("togglebombcap") + if (src.rank in list( "Game Admin", "Game Master" )) + //feedback_inc("admin_secrets_fun_used",1) + //feedback_add_details("admin_secrets_fun_used","BC") + switch(MAX_EXPLOSION_RANGE) + if(14) + MAX_EXPLOSION_RANGE = 16 + if(16) + MAX_EXPLOSION_RANGE = 20 + if(20) + MAX_EXPLOSION_RANGE = 28 + if(28) + MAX_EXPLOSION_RANGE = 56 + if(56) + MAX_EXPLOSION_RANGE = 128 + if(128) + MAX_EXPLOSION_RANGE = 14 + var/range_dev = MAX_EXPLOSION_RANGE *0.25 + var/range_high = MAX_EXPLOSION_RANGE *0.5 + var/range_low = MAX_EXPLOSION_RANGE + message_admins("\red [key_name_admin(usr)] changed the bomb cap to [range_dev], [range_high], [range_low]", 1) + log_admin("[key_name_admin(usr)] changed the bomb cap to [MAX_EXPLOSION_RANGE]") + else + alert("No way. You're not of a high enough rank to do this.") + if("flicklights") //feedback_inc("admin_secrets_fun_used",1) //feedback_add_details("admin_secrets_fun_used","FL") @@ -2289,9 +2314,16 @@ var/global/BSACooldown = 0 Move Alien Dinghy
Move Mining Shuttle
Break all lights
-Trigger Electrical Storm

"} +Trigger Electrical Storm
"} //Station Shockwave
+ if(lvl >= 6) + dat += {" +Toggle bomb cap
+ "} + + dat += "
" + if(lvl >= 5) dat += {" Security Level Elevated