From cb73d5b6e96eae6e9db03ef6cb362e09f8eacbd0 Mon Sep 17 00:00:00 2001 From: Zuhayr Date: Fri, 15 May 2015 18:23:00 +0930 Subject: [PATCH 01/11] Fixes #9256 --- code/game/supplyshuttle.dm | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/code/game/supplyshuttle.dm b/code/game/supplyshuttle.dm index 0f5d49d223b..c8adfebe206 100644 --- a/code/game/supplyshuttle.dm +++ b/code/game/supplyshuttle.dm @@ -231,7 +231,14 @@ var/list/mechtoys = list( var/list/clear_turfs = list() for(var/turf/T in area_shuttle) - if(T.density || T.contents.len) continue + if(T.density) continue + var/contcount + for(var/atom/A in T.contents) + if(A.simulated) + continue + contcount++ + if(contcount) + continue clear_turfs += T for(var/S in shoppinglist) From 624a6b0bca3833b7b1c9afb4e7f3e162d1385de0 Mon Sep 17 00:00:00 2001 From: Zuhayr Date: Fri, 15 May 2015 18:26:53 +0930 Subject: [PATCH 02/11] Fixes #9250 --- code/modules/clothing/spacesuits/rig/modules/ninja.dm | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/code/modules/clothing/spacesuits/rig/modules/ninja.dm b/code/modules/clothing/spacesuits/rig/modules/ninja.dm index e3926d7b0be..803b0f63f1a 100644 --- a/code/modules/clothing/spacesuits/rig/modules/ninja.dm +++ b/code/modules/clothing/spacesuits/rig/modules/ninja.dm @@ -101,6 +101,10 @@ var/mob/living/carbon/human/H = holder.wearer + if(!istype(H.loc, /turf)) + H << "You cannot teleport out of your current location." + return 0 + var/turf/T if(target) T = get_turf(target) From f3bd251f9563e93d8a4884d83afc9ec95c468c5e Mon Sep 17 00:00:00 2001 From: Zuhayr Date: Fri, 15 May 2015 18:29:23 +0930 Subject: [PATCH 03/11] Fixes #9259 --- code/game/machinery/autolathe.dm | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/code/game/machinery/autolathe.dm b/code/game/machinery/autolathe.dm index f8f8a9c21ec..40db18e42f6 100644 --- a/code/game/machinery/autolathe.dm +++ b/code/game/machinery/autolathe.dm @@ -1,5 +1,5 @@ /obj/machinery/autolathe - name = "\improper autolathe" + name = "autolathe" desc = "It produces items using metal and glass." icon_state = "autolathe" density = 1 @@ -140,6 +140,9 @@ if(O.loc != user && !(istype(O,/obj/item/stack))) return 0 + if(is_robot_module(O)) + return 0 + //Resources are being loaded. var/obj/item/eating = O if(!eating.matter) From 624ffcff4c993ea9fd04ecf879f8c467353537c1 Mon Sep 17 00:00:00 2001 From: Zuhayr Date: Fri, 15 May 2015 18:36:33 +0930 Subject: [PATCH 04/11] Fixes #9239 --- code/game/objects/items/weapons/tools.dm | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/code/game/objects/items/weapons/tools.dm b/code/game/objects/items/weapons/tools.dm index 91b5ff60278..0f9aa738a13 100644 --- a/code/game/objects/items/weapons/tools.dm +++ b/code/game/objects/items/weapons/tools.dm @@ -334,26 +334,27 @@ src.welding = !( src.welding ) if (src.welding) if (remove_fuel(1)) - usr << "\blue You switch the [src] on." + usr << "You switch the [src] on." src.force = 15 src.damtype = "fire" src.icon_state = "welder1" src.w_class = 4 processing_objects.Add(src) else - usr << "\blue Need more fuel!" + usr << "You need more fuel!" src.welding = 0 - return else if(!message) - usr << "\blue You switch the [src] off." + usr << "You switch \the [src] off." else - usr << "\blue The [src] shuts off!" + usr << "\The [src] shuts off!" src.force = 3 src.damtype = "brute" src.icon_state = "welder" src.welding = 0 src.w_class = initial(src.w_class) + usr.update_inv_l_hand() + usr.update_inv_r_hand() //Decides whether or not to damage a player's eyes based on what they're wearing as protection //Note: This should probably be moved to mob From 1e1471a601c9ae04606c8b7783821fbde6cc2043 Mon Sep 17 00:00:00 2001 From: Zuhayr Date: Fri, 15 May 2015 18:59:22 +0930 Subject: [PATCH 05/11] Removes equip_e effect. Rewrites stripping, refactors cuffing. Fixes #8173. --- baystation12.dme | 1 + code/game/gamemodes/setupgame.dm | 161 ------- code/game/objects/items/stacks/medical.dm | 20 +- .../objects/items/weapons/dna_injector.dm | 114 ++--- code/game/objects/items/weapons/handcuffs.dm | 112 ++--- code/modules/mob/living/carbon/carbon.dm | 19 - code/modules/mob/living/carbon/human/human.dm | 77 ++- .../living/carbon/human/human_attackhand.dm | 35 +- .../mob/living/carbon/human/inventory.dm | 454 ------------------ .../living/carbon/human/species/species.dm | 4 - .../carbon/human/species/species_hud.dm | 54 +-- .../human/species/xenomorphs/alien_species.dm | 8 +- .../human/species/xenomorphs/xenomorphs.dm | 39 -- .../mob/living/carbon/human/stripping.dm | 200 ++++++++ .../mob/living/carbon/metroid/metroid.dm | 3 - .../mob/living/simple_animal/friendly/crab.dm | 237 --------- code/modules/mob/mob.dm | 17 +- .../reagents/reagent_containers/pill.dm | 7 +- 18 files changed, 389 insertions(+), 1173 deletions(-) create mode 100644 code/modules/mob/living/carbon/human/stripping.dm diff --git a/baystation12.dme b/baystation12.dme index 38b5899d669..35314d1fd16 100644 --- a/baystation12.dme +++ b/baystation12.dme @@ -1174,6 +1174,7 @@ #include "code\modules\mob\living\carbon\human\MedicalSideEffects.dm" #include "code\modules\mob\living\carbon\human\npcs.dm" #include "code\modules\mob\living\carbon\human\say.dm" +#include "code\modules\mob\living\carbon\human\stripping.dm" #include "code\modules\mob\living\carbon\human\unarmed_attack.dm" #include "code\modules\mob\living\carbon\human\update_icons.dm" #include "code\modules\mob\living\carbon\human\whisper.dm" diff --git a/code/game/gamemodes/setupgame.dm b/code/game/gamemodes/setupgame.dm index 29815966450..3c029d52980 100644 --- a/code/game/gamemodes/setupgame.dm +++ b/code/game/gamemodes/setupgame.dm @@ -24,44 +24,6 @@ if (prob(75)) DIFFMUT = rand(0,20) - /* Old, for reference (so I don't accidentally activate something) - N3X - var/list/avnums = new/list() - var/tempnum - - avnums.Add(2) - avnums.Add(12) - avnums.Add(10) - avnums.Add(8) - avnums.Add(4) - avnums.Add(11) - avnums.Add(13) - avnums.Add(6) - - tempnum = pick(avnums) - avnums.Remove(tempnum) - HULKBLOCK = tempnum - tempnum = pick(avnums) - avnums.Remove(tempnum) - TELEBLOCK = tempnum - tempnum = pick(avnums) - avnums.Remove(tempnum) - FIREBLOCK = tempnum - tempnum = pick(avnums) - avnums.Remove(tempnum) - XRAYBLOCK = tempnum - tempnum = pick(avnums) - avnums.Remove(tempnum) - CLUMSYBLOCK = tempnum - tempnum = pick(avnums) - avnums.Remove(tempnum) - FAKEBLOCK = tempnum - tempnum = pick(avnums) - avnums.Remove(tempnum) - DEAFBLOCK = tempnum - tempnum = pick(avnums) - avnums.Remove(tempnum) - BLINDBLOCK = tempnum - */ var/list/numsToAssign=new() for(var/i=1;i