From 6b063c487f2b730d090700d2689b2454a0e15554 Mon Sep 17 00:00:00 2001 From: "baloh.matevz@gmail.com" Date: Wed, 22 Feb 2012 02:30:25 +0000 Subject: [PATCH] - 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. git-svn-id: http://tgstation13.googlecode.com/svn/trunk@3169 316c924e-a436-60f5-8080-3fe189b3f50e --- code/modules/admin/admin.dm | 34 +++++++++++++++++++++++++++++++++- code/setup.dm | 5 ++++- 2 files changed, 37 insertions(+), 2 deletions(-) diff --git a/code/modules/admin/admin.dm b/code/modules/admin/admin.dm index 9da10040d34..27afb649501 100644 --- a/code/modules/admin/admin.dm +++ b/code/modules/admin/admin.dm @@ -1373,6 +1373,31 @@ 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") @@ -2076,9 +2101,16 @@ Move Ferry
Move Alien Dinghy
Move Mining Shuttle
-Break all lights

"} +Break all lights
"} //Station Shockwave
+ if(lvl >= 6) + dat += {" +Toggle bomb cap
+ "} + + dat += "
" + if(lvl >= 5) dat += {" Security Level Elevated
diff --git a/code/setup.dm b/code/setup.dm index f7c87ada011..c53a297ac04 100644 --- a/code/setup.dm +++ b/code/setup.dm @@ -82,7 +82,10 @@ #define TANK_FRAGMENT_PRESSURE (50.*ONE_ATMOSPHERE) // Boom 3x3 base explosion #define TANK_FRAGMENT_SCALE (10.*ONE_ATMOSPHERE) // +1 for each SCALE kPa aboe threshold // was 2 atm -#define MAX_EXPLOSION_RANGE 14 // Defaults to 12 (was 8) -- TLE + +//This was a define, but I changed it to a variable so it can be changed in-game.(kept the all-caps definition because... code...) -Errorage +var/MAX_EXPLOSION_RANGE = 14 +//#define MAX_EXPLOSION_RANGE 14 // Defaults to 12 (was 8) -- TLE #define NORMPIPERATE 30 //pipe-insulation rate divisor