From 5625ff030a4e4661448fa51d57eb03e464629c64 Mon Sep 17 00:00:00 2001 From: CitadelStationBot Date: Fri, 12 May 2017 11:11:34 -0500 Subject: [PATCH] Dominators require an open space, except it works this time --- code/game/gamemodes/gang/dominator.dm.rej | 17 +++++++++++++++++ code/game/gamemodes/gang/gang_items.dm | 8 ++++---- code/game/gamemodes/gang/gang_items.dm.rej | 12 ++++++++++++ 3 files changed, 33 insertions(+), 4 deletions(-) create mode 100644 code/game/gamemodes/gang/dominator.dm.rej create mode 100644 code/game/gamemodes/gang/gang_items.dm.rej diff --git a/code/game/gamemodes/gang/dominator.dm.rej b/code/game/gamemodes/gang/dominator.dm.rej new file mode 100644 index 0000000000..3030f7c135 --- /dev/null +++ b/code/game/gamemodes/gang/dominator.dm.rej @@ -0,0 +1,17 @@ +diff a/code/game/gamemodes/gang/dominator.dm b/code/game/gamemodes/gang/dominator.dm (rejected hunks) +@@ -1,5 +1,5 @@ + #define DOM_BLOCKED_SPAM_CAP 6 +-#define DOM_REQUIRED_TURFS 25 ++#define DOM_REQUIRED_TURFS 30 + + /obj/machinery/dominator + name = "dominator" +@@ -22,7 +22,7 @@ + + /proc/dominator_excessive_walls(atom/A) + var/open = 0 +- for(var/turf/T in circleviewturfs(A, 3)) ++ for(var/turf/T in view(3, A)) + if(!isclosedturf(T)) + open++ + if(open < DOM_REQUIRED_TURFS) diff --git a/code/game/gamemodes/gang/gang_items.dm b/code/game/gamemodes/gang/gang_items.dm index 724191c642..a8a595ab8a 100644 --- a/code/game/gamemodes/gang/gang_items.dm +++ b/code/game/gamemodes/gang/gang_items.dm @@ -131,7 +131,7 @@ id = "pistol_ammo" cost = 10 item_path = /obj/item/ammo_box/magazine/m10mm - + /datum/gang_item/weapon/sniper name = ".50cal Sniper Rifle" id = "sniper" @@ -156,8 +156,8 @@ id = "uzi_ammo" cost = 40 item_path = /obj/item/ammo_box/magazine/uzim9mm - - + + /////////////////// //EQUIPMENT /////////////////// @@ -171,7 +171,7 @@ id = "spraycan" cost = 5 item_path = /obj/item/toy/crayon/spraycan/gang - + /datum/gang_item/equipment/sharpener name = "Sharpener" id = "whetstone" diff --git a/code/game/gamemodes/gang/gang_items.dm.rej b/code/game/gamemodes/gang/gang_items.dm.rej new file mode 100644 index 0000000000..fa06ac43db --- /dev/null +++ b/code/game/gamemodes/gang/gang_items.dm.rej @@ -0,0 +1,12 @@ +diff a/code/game/gamemodes/gang/gang_items.dm b/code/game/gamemodes/gang/gang_items.dm (rejected hunks) +@@ -306,6 +306,10 @@ + to_chat(user, "There's not enough room here!") + return FALSE + ++ if(dominator_excessive_walls(user)) ++ to_chat(user, "span class='warning'>The dominator will not function here! The dominator requires a sizable open space within three standard units so that walls do not interfere with the signal.") ++ return FALSE ++ + if(!(usrarea.type in gang.territory|gang.territory_new)) + to_chat(user, "The dominator can be spawned only on territory controlled by your gang!") + return FALSE