From bc7f3c67a6d93640f7288020010814ccc4d86cd8 Mon Sep 17 00:00:00 2001 From: Fox-McCloud Date: Wed, 31 Aug 2016 01:48:02 -0400 Subject: [PATCH 01/52] Cloning Update --- code/__DEFINES/genetics.dm | 3 + code/controllers/Processes/fast_process.dm | 2 +- code/game/machinery/cloning.dm | 251 +++++++++++---------- code/game/machinery/computer/cloning.dm | 14 +- code/modules/countdown/countdown.dm | 69 ++++++ paradise.dme | 1 + 6 files changed, 202 insertions(+), 138 deletions(-) create mode 100644 code/modules/countdown/countdown.dm diff --git a/code/__DEFINES/genetics.dm b/code/__DEFINES/genetics.dm index 3828392f99e..11393957fc1 100644 --- a/code/__DEFINES/genetics.dm +++ b/code/__DEFINES/genetics.dm @@ -111,3 +111,6 @@ #define GENETIC_DAMAGE_STAGE_1 80 #define GENETIC_DAMAGE_STAGE_2 65 #define GENETIC_DAMAGE_STAGE_3 35 + +#define CLONER_FRESH_CLONE "fresh" +#define CLONER_MATURE_CLONE "mature" \ No newline at end of file diff --git a/code/controllers/Processes/fast_process.dm b/code/controllers/Processes/fast_process.dm index 85a688c3d12..72ed0e68fee 100644 --- a/code/controllers/Processes/fast_process.dm +++ b/code/controllers/Processes/fast_process.dm @@ -6,7 +6,7 @@ /datum/controller/process/fast_process/statProcess() ..() - stat(null, "[fast_processing.len] fast machines") + stat(null, "[fast_processing.len] fast processes") /datum/controller/process/fast_process/doWork() for(last_object in fast_processing) diff --git a/code/game/machinery/cloning.dm b/code/game/machinery/cloning.dm index 6da0eb3fd55..750a1e77acf 100644 --- a/code/game/machinery/cloning.dm +++ b/code/game/machinery/cloning.dm @@ -25,19 +25,33 @@ var/speed_coeff var/efficiency + var/datum/mind/clonemind + var/grab_ghost_when = CLONER_MATURE_CLONE + + var/obj/item/device/radio/Radio + + var/obj/effect/countdown/clonepod/countdown + light_color = LIGHT_COLOR_PURE_GREEN - power_change() - ..() - if(!(stat & (BROKEN|NOPOWER))) - set_light(2) - else - set_light(0) + +/obj/machinery/clonepod/power_change() + ..() + if(!(stat & (BROKEN|NOPOWER))) + set_light(2) + else + set_light(0) /obj/machinery/clonepod/biomass biomass = CLONE_BIOMASS /obj/machinery/clonepod/New() ..() + countdown = new(src) + + Radio = new /obj/item/device/radio(src) + Radio.listening = 0 + Radio.config(list("Medical" = 0)) + component_parts = list() component_parts += new /obj/item/weapon/circuitboard/clonepod(null) component_parts += new /obj/item/weapon/stock_parts/scanning_module(null) @@ -67,6 +81,12 @@ /obj/machinery/clonepod/Destroy() if(connected) connected.pods -= src + if(Radio) + qdel(Radio) + Radio = null + if(countdown) + qdel(countdown) + countdown = null return ..() /obj/machinery/clonepod/RefreshParts() @@ -97,49 +117,29 @@ name = "data disk - 'God Emperor of Mankind'" read_only = 1 - New() - Initialize() - buf.types=DNA2_BUF_UE|DNA2_BUF_UI - //data = "066000033000000000AF00330660FF4DB002690" - //data = "0C80C80C80C80C80C8000000000000161FBDDEF" - Farmer Jeff - buf.dna.real_name="God Emperor of Mankind" - buf.dna.unique_enzymes = md5(buf.dna.real_name) - buf.dna.UI=list(0x066,0x000,0x033,0x000,0x000,0x000,0xAF0,0x033,0x066,0x0FF,0x4DB,0x002,0x690) - //buf.dna.UI=list(0x0C8,0x0C8,0x0C8,0x0C8,0x0C8,0x0C8,0x000,0x000,0x000,0x000,0x161,0xFBD,0xDEF) // Farmer Jeff - buf.dna.UpdateUI() +/obj/item/weapon/disk/data/demo/New() + Initialize() + buf.types=DNA2_BUF_UE|DNA2_BUF_UI + //data = "066000033000000000AF00330660FF4DB002690" + //data = "0C80C80C80C80C80C8000000000000161FBDDEF" - Farmer Jeff + buf.dna.real_name="God Emperor of Mankind" + buf.dna.unique_enzymes = md5(buf.dna.real_name) + buf.dna.UI=list(0x066,0x000,0x033,0x000,0x000,0x000,0xAF0,0x033,0x066,0x0FF,0x4DB,0x002,0x690) + //buf.dna.UI=list(0x0C8,0x0C8,0x0C8,0x0C8,0x0C8,0x0C8,0x000,0x000,0x000,0x000,0x161,0xFBD,0xDEF) // Farmer Jeff + buf.dna.UpdateUI() /obj/item/weapon/disk/data/monkey name = "data disk - 'Mr. Muggles'" read_only = 1 - New() - Initialize() - buf.types=DNA2_BUF_SE - var/list/new_SE=list(0x098,0x3E8,0x403,0x44C,0x39F,0x4B0,0x59D,0x514,0x5FC,0x578,0x5DC,0x640,0x6A4) - for(var/i=new_SE.len;i<=DNA_SE_LENGTH;i++) - new_SE += rand(1,1024) - buf.dna.SE=new_SE - buf.dna.SetSEValueRange(MONKEYBLOCK,0xDAC, 0xFFF) - - -//Find a dead mob with a brain and client. -/proc/find_dead_player(var/find_key) - if(isnull(find_key)) - return - - var/mob/selected = null - for(var/mob/M in player_list) - //Dead people only thanks! - if((M.stat != 2) || (!M.client)) - continue - //They need a brain! - if(istype(M, /mob/living/carbon/human) && !M.get_int_organ(/obj/item/organ/internal/brain)) - continue - - if(M.ckey == find_key) - selected = M - break - return selected +/obj/item/weapon/disk/data/monkey/New() + Initialize() + buf.types=DNA2_BUF_SE + var/list/new_SE=list(0x098,0x3E8,0x403,0x44C,0x39F,0x4B0,0x59D,0x514,0x5FC,0x578,0x5DC,0x640,0x6A4) + for(var/i=new_SE.len;i<=DNA_SE_LENGTH;i++) + new_SE += rand(1,1024) + buf.dna.SE=new_SE + buf.dna.SetSEValueRange(MONKEYBLOCK,0xDAC, 0xFFF) //Disk stuff. /obj/item/weapon/disk/data/New() @@ -173,44 +173,40 @@ healthstring = "ERROR" return healthstring -/obj/machinery/clonepod/attack_ai(mob/user as mob) - return attack_hand(user) - -/obj/machinery/clonepod/attack_hand(mob/user as mob) - if((isnull(occupant)) || (stat & NOPOWER)) - if(mess) - go_out() - return - if((!isnull(occupant)) && (occupant.stat != 2)) - var/completion = (100 * ((occupant.health + 100) / (heal_level + 100))) - to_chat(user, "Current clone cycle is [round(completion)]% complete.") - return - //Clonepod +/obj/machinery/clonepod/examine(mob/user) + ..() + if(mess) + to_chat(user, "It's filled with blood and vicerea. You swear you can see it moving...") + if(!occupant || stat & (NOPOWER|BROKEN)) + return + if(occupant && occupant.stat != DEAD) + to_chat(user, "Current clone cycle is [round(get_completion())]% complete.") + +/obj/machinery/clonepod/proc/get_completion() + . = (100 * ((occupant.health + 100) / (heal_level + 100))) + +/obj/machinery/clonepod/attack_ai(mob/user) + return examine(user) + //Start growing a human clone in the pod! -/obj/machinery/clonepod/proc/growclone(var/datum/dna2/record/R) +/obj/machinery/clonepod/proc/growclone(datum/dna2/record/R) if(mess || attempting || panel_open || stat & (NOPOWER|BROKEN)) return 0 - var/datum/mind/clonemind = locate(R.mind) + clonemind = locate(R.mind) if(!istype(clonemind)) //not a mind return 0 if( clonemind.current && clonemind.current.stat != DEAD ) //mind is associated with a non-dead body return 0 if(clonemind.active) //somebody is using that mind - if( ckey(clonemind.key)!=R.ckey ) + if(ckey(clonemind.key) != R.ckey) return 0 else - for(var/mob/M in player_list) - if(M.ckey == R.ckey) - if(istype(M, /mob/dead/observer)) - var/mob/dead/observer/G = M - if(G.can_reenter_corpse) - break - if(istype(M, /mob/living/simple_animal)) - if(M in respawnable_list) - break - return 0 + // get_ghost() will fail if they're unable to reenter their body + var/mob/dead/observer/G = clonemind.get_ghost() + if(!G) + return 0 if(biomass >= CLONE_BIOMASS) biomass -= CLONE_BIOMASS @@ -219,6 +215,7 @@ attempting = 1 //One at a time!! locked = 1 + countdown.start() eject_wait = 1 spawn(30) @@ -239,8 +236,16 @@ //Here let's calculate their health so the pod doesn't immediately eject them!!! H.updatehealth() - clonemind.transfer_to(H) - to_chat(H, "Consciousness slowly creeps over you as your body regenerates.
So this is what cloning feels like?
") + if(grab_ghost_when == CLONER_FRESH_CLONE) + clonemind.transfer_to(H) + H.ckey = R.ckey + to_chat(H, "Consciousness slowly creeps over you \ + as your body regenerates.
So this is what cloning \ + feels like?
") + else if(grab_ghost_when == CLONER_MATURE_CLONE) + to_chat(clonemind.current, "Your body is \ + beginning to regenerate in a cloning pod. You will \ + become conscious when it is complete.") // -- Mode/mind specific stuff goes here callHook("clone", list(H)) @@ -299,20 +304,20 @@ biomass += BIOMASS_MEAT_AMOUNT show_message = 1 if(show_message) - visible_message("\The [src] sucks in and processes the nearby biomass.") + visible_message("[src] sucks in and processes the nearby biomass.") if(stat & NOPOWER) //Autoeject if power is lost if(occupant) locked = 0 go_out() - return + connected_message("Clone Ejected: Loss of power.") - if((occupant) && (occupant.loc == src)) - if((occupant.stat == DEAD) || (occupant.suiciding) || !occupant.key) //Autoeject corpses and suiciding dudes. + else if((occupant) && (occupant.loc == src)) + if((occupant.stat == DEAD) || (occupant.suiciding)) //Autoeject corpses and suiciding dudes. locked = 0 go_out() connected_message("Clone Rejected: Deceased.") - return + Radio.autosay("The cloning of [occupant] has been aborted due to unrecoverable tissue failure.", name, "Medical", list(z)) else if(occupant.cloneloss > (100 - heal_level)) occupant.Paralyse(4) @@ -331,48 +336,40 @@ occupant.adjustOxyLoss(-4) use_power(7500) //This might need tweaking. - return else if((occupant.cloneloss <= (100 - heal_level)) && (!eject_wait)) connected_message("Cloning Process Complete.") + Radio.autosay("The cloning cycle of [occupant] is complete.", name, "Medical", list(z)) locked = 0 go_out() - return else if((!occupant) || (occupant.loc != src)) occupant = null if(locked) locked = 0 - //use_power(200) - return - - return + update_icon() + use_power(200) //Let's unlock this early I guess. Might be too early, needs tweaking. -/obj/machinery/clonepod/attackby(obj/item/weapon/W as obj, mob/user as mob, params) - if(istype(W, /obj/item/weapon/screwdriver)) - if(occupant || mess || locked) - to_chat(user, "The maintenance panel is locked.") +/obj/machinery/clonepod/attackby(obj/item/weapon/W, mob/user, params) + if(!(occupant || mess || locked)) + if(default_deconstruction_screwdriver(user, "[icon_state]_maintenance", "[initial(icon_state)]", W)) return - default_deconstruction_screwdriver(user, "[icon_state]_maintenance", "[initial(icon_state)]", W) - return if(exchange_parts(user, W)) return - if(istype(W, /obj/item/weapon/crowbar)) - if(panel_open) - default_deconstruction_crowbar(W) + if(default_deconstruction_crowbar(W)) return - if(istype(W, /obj/item/weapon/card/id)||istype(W, /obj/item/device/pda)) + if(W.GetID()) if(!check_access(W)) - to_chat(user, "\red Access Denied.") + to_chat(user, "Access Denied.") return - if((!locked) || (isnull(occupant))) + if (!locked || !occupant) return - if((occupant.health < -20) && (occupant.stat != 2)) - to_chat(user, "\red Access Refused.") + if(occupant.health < -20 && occupant.stat != DEAD) + to_chat(user, "Access Refused. Patient status still unstable.") return else locked = 0 @@ -408,16 +405,15 @@ else ..() -/obj/machinery/clonepod/emag_act(user as mob) +/obj/machinery/clonepod/emag_act(user) if(isnull(occupant)) return to_chat(user, "You force an emergency ejection.") locked = 0 go_out() - return //Put messages in the connected computer's temp var for display. -/obj/machinery/clonepod/proc/connected_message(var/message) +/obj/machinery/clonepod/proc/connected_message(message) if((isnull(connected)) || (!istype(connected, /obj/machinery/computer/cloning))) return 0 if(!message) @@ -434,49 +430,58 @@ if(!usr) return - if(usr.stat != 0) + if(usr.incapacitated()) return - go_out(usr) + go_out() add_fingerprint(usr) - return -/obj/machinery/clonepod/proc/go_out(user) +/obj/machinery/clonepod/proc/go_out() + if(locked) + return + countdown.stop() + if(mess) //Clean that mess and dump those gibs! - if(occupant) - return mess = 0 gibs(loc) playsound(loc, 'sound/effects/splat.ogg', 50, 1) update_icon() return - if(!(occupant)) - to_chat(user, "The cloning pod is empty!") + if(!occupant) return - if(locked) - to_chat(user, "The cloning pod is locked!") - return + if(grab_ghost_when == CLONER_MATURE_CLONE) + clonemind.transfer_to(occupant) + occupant.grab_ghost() + to_chat(occupant, "There is a bright flash!
\ + You feel like a new being.
") + occupant.flash_eyes() - if(occupant.client) - occupant.client.eye = occupant.client.mob - occupant.client.perspective = MOB_PERSPECTIVE occupant.forceMove(get_turf(src)) eject_wait = 0 //If it's still set somehow. domutcheck(occupant) //Waiting until they're out before possible notransform. + if(ishuman(occupant)) + var/mob/living/carbon/human/H = occupant + H.shock_stage = 0 //Reset Shock occupant = null update_icon() - return /obj/machinery/clonepod/proc/malfunction() if(occupant) connected_message("Critical Error!") + Radio.autosay("Critical error! Please contact a Thinktronic Systems technician, as your warranty may be affected.", name, "Medical", list(z)) mess = 1 - occupant.ghostize() - qdel(occupant) - occupant = null update_icon() - return + if(occupant.mind != clonemind) + clonemind.transfer_to(occupant) + occupant.grab_ghost() // We really just want to make you suffer. + to_chat(occupant, "Agony blazes across your \ + consciousness as your body is torn apart.
\ + Is this what dying is like? Yes it is.
") + playsound(loc, 'sound/machines/warning-buzzer.ogg', 50, 0) + occupant << sound('sound/hallucinations/veryfar_noise.ogg',0,1,50) + spawn(40) + qdel(occupant) /obj/machinery/clonepod/update_icon() ..() @@ -486,11 +491,9 @@ else if(mess && !panel_open) icon_state = "pod_g" -/obj/machinery/clonepod/relaymove(mob/user as mob) - if(user.stat) - return - go_out() - return +/obj/machinery/clonepod/relaymove(mob/user) + if(user.stat == CONSCIOUS) + go_out() /obj/machinery/clonepod/emp_act(severity) if(prob(100/(severity*efficiency))) malfunction() diff --git a/code/game/machinery/computer/cloning.dm b/code/game/machinery/computer/cloning.dm index 6f4a373580c..4afe9ba3cff 100644 --- a/code/game/machinery/computer/cloning.dm +++ b/code/game/machinery/computer/cloning.dm @@ -323,19 +323,7 @@ qdel(C) menu = 1 else - var/mob/selected = find_dead_player("[C.ckey]") - if(!selected) - return - selected << 'sound/machines/chime.ogg' //probably not the best sound but I think it's reasonable - - var/answer = alert(selected,"Do you want to return to life?","Cloning","Yes","No") - if(answer != "No" && pod.growclone(C)) - temp = "Initiating cloning cycle..." - records.Remove(C) - qdel(C) - menu = 1 - else - temp = "Initiating cloning cycle...
Error: Post-initialisation failed. Cloning cycle aborted." + temp = "[C.name] => Initialisation failure." else temp = "Error: Data corruption." diff --git a/code/modules/countdown/countdown.dm b/code/modules/countdown/countdown.dm new file mode 100644 index 00000000000..2ef85d6a9d7 --- /dev/null +++ b/code/modules/countdown/countdown.dm @@ -0,0 +1,69 @@ +/obj/effect/countdown + name = "countdown" + desc = "We're leaving together\n\ + But still it's farewell\n\ + And maybe we'll come back\n\ + To earth, who can tell?" + + var/displayed_text + var/atom/attached_to + color = "#ff0000" + var/text_size = 4 + var/started = 0 + invisibility = INVISIBILITY_OBSERVER + anchored = 1 + layer = 5 + +/obj/effect/countdown/New(atom/A) + . = ..() + attach(A) + +/obj/effect/countdown/proc/attach(atom/A) + attached_to = A + loc = get_turf(A) + +/obj/effect/countdown/proc/start() + if(!started) + fast_processing += src + started = 1 + +/obj/effect/countdown/proc/stop() + if(started) + maptext = null + fast_processing -= src + started = 0 + +/obj/effect/countdown/proc/get_value() + // Get the value from our atom + return + +/obj/effect/countdown/process() + if(!attached_to || qdeleted(attached_to)) + qdel(src) + forceMove(get_turf(attached_to)) + var/new_val = get_value() + if(new_val == displayed_text) + return + displayed_text = new_val + + if(displayed_text) + maptext = "[displayed_text]" + else + maptext = null + +/obj/effect/countdown/Destroy() + attached_to = null + fast_processing -= src + return ..() + +/obj/effect/countdown/clonepod + name = "cloning pod countdown" + text_size = 1 + +/obj/effect/countdown/clonepod/get_value() + var/obj/machinery/clonepod/C = attached_to + if(!istype(C)) + return + else if(C.occupant) + var/completion = round(C.get_completion()) + return completion diff --git a/paradise.dme b/paradise.dme index 0d2e7261f3e..a005c1bafd8 100644 --- a/paradise.dme +++ b/paradise.dme @@ -1225,6 +1225,7 @@ #include "code\modules\computer3\computers\robot.dm" #include "code\modules\computer3\computers\security.dm" #include "code\modules\computer3\computers\welcome.dm" +#include "code\modules\countdown\countdown.dm" #include "code\modules\crafting\craft.dm" #include "code\modules\crafting\guncrafting.dm" #include "code\modules\crafting\recipes.dm" From 72512fa04e00e33eaa9711288e3a2148a62599a9 Mon Sep 17 00:00:00 2001 From: Fox-McCloud Date: Thu, 1 Sep 2016 23:59:55 -0400 Subject: [PATCH 02/52] fixups --- code/game/machinery/cloning.dm | 28 +++++++++++++--------------- 1 file changed, 13 insertions(+), 15 deletions(-) diff --git a/code/game/machinery/cloning.dm b/code/game/machinery/cloning.dm index 750a1e77acf..bc6bb9fc709 100644 --- a/code/game/machinery/cloning.dm +++ b/code/game/machinery/cloning.dm @@ -14,7 +14,7 @@ icon = 'icons/obj/cloning.dmi' icon_state = "pod_0" req_access = list(access_genetics) //For premature unlocking. - var/mob/living/occupant + var/mob/living/carbon/human/occupant var/heal_level = 90 //The clone is released once its health reaches this level. var/locked = 0 var/obj/machinery/computer/cloning/connected = null //So we remember the connected clone machine. @@ -178,7 +178,7 @@ /obj/machinery/clonepod/examine(mob/user) ..() if(mess) - to_chat(user, "It's filled with blood and vicerea. You swear you can see it moving...") + to_chat(user, "It's filled with blood and viscera. You swear you can see it moving...") if(!occupant || stat & (NOPOWER|BROKEN)) return if(occupant && occupant.stat != DEAD) @@ -239,13 +239,13 @@ if(grab_ghost_when == CLONER_FRESH_CLONE) clonemind.transfer_to(H) H.ckey = R.ckey - to_chat(H, "Consciousness slowly creeps over you \ - as your body regenerates.
So this is what cloning \ - feels like?
") + to_chat(H, {"Consciousness slowly creeps over you + as your body regenerates.
So this is what cloning + feels like?
"}) else if(grab_ghost_when == CLONER_MATURE_CLONE) - to_chat(clonemind.current, "Your body is \ - beginning to regenerate in a cloning pod. You will \ - become conscious when it is complete.") + to_chat(clonemind.current, {"Your body is + beginning to regenerate in a cloning pod. You will + become conscious when it is complete."}) // -- Mode/mind specific stuff goes here callHook("clone", list(H)) @@ -315,9 +315,9 @@ else if((occupant) && (occupant.loc == src)) if((occupant.stat == DEAD) || (occupant.suiciding)) //Autoeject corpses and suiciding dudes. locked = 0 + Radio.autosay("The cloning of [occupant] has been aborted due to unrecoverable tissue failure.", name, "Medical", list(z)) go_out() connected_message("Clone Rejected: Deceased.") - Radio.autosay("The cloning of [occupant] has been aborted due to unrecoverable tissue failure.", name, "Medical", list(z)) else if(occupant.cloneloss > (100 - heal_level)) occupant.Paralyse(4) @@ -460,9 +460,7 @@ occupant.forceMove(get_turf(src)) eject_wait = 0 //If it's still set somehow. domutcheck(occupant) //Waiting until they're out before possible notransform. - if(ishuman(occupant)) - var/mob/living/carbon/human/H = occupant - H.shock_stage = 0 //Reset Shock + occupant.shock_stage = 0 //Reset Shock occupant = null update_icon() @@ -475,9 +473,9 @@ if(occupant.mind != clonemind) clonemind.transfer_to(occupant) occupant.grab_ghost() // We really just want to make you suffer. - to_chat(occupant, "Agony blazes across your \ - consciousness as your body is torn apart.
\ - Is this what dying is like? Yes it is.
") + to_chat(occupant, {"Agony blazes across your + consciousness as your body is torn apart.
+ Is this what dying is like? Yes it is.
"}) playsound(loc, 'sound/machines/warning-buzzer.ogg', 50, 0) occupant << sound('sound/hallucinations/veryfar_noise.ogg',0,1,50) spawn(40) From 1d8edbbee66bb2f994a78d2bb5940c8d7f056e33 Mon Sep 17 00:00:00 2001 From: Fox-McCloud Date: Sat, 3 Sep 2016 01:14:32 -0400 Subject: [PATCH 03/52] tweaks --- code/game/machinery/cloning.dm | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/code/game/machinery/cloning.dm b/code/game/machinery/cloning.dm index bc6bb9fc709..735182c0d5b 100644 --- a/code/game/machinery/cloning.dm +++ b/code/game/machinery/cloning.dm @@ -29,6 +29,7 @@ var/grab_ghost_when = CLONER_MATURE_CLONE var/obj/item/device/radio/Radio + var/radio_announce = 0 var/obj/effect/countdown/clonepod/countdown @@ -190,6 +191,13 @@ /obj/machinery/clonepod/attack_ai(mob/user) return examine(user) +//Radio Announcement + +/obj/machinery/clonepod/proc/announce_radio_message(message) + if(radio_announce) + Radio.autosay(message, name, "Medical", list(z)) + + //Start growing a human clone in the pod! /obj/machinery/clonepod/proc/growclone(datum/dna2/record/R) if(mess || attempting || panel_open || stat & (NOPOWER|BROKEN)) @@ -315,7 +323,7 @@ else if((occupant) && (occupant.loc == src)) if((occupant.stat == DEAD) || (occupant.suiciding)) //Autoeject corpses and suiciding dudes. locked = 0 - Radio.autosay("The cloning of [occupant] has been aborted due to unrecoverable tissue failure.", name, "Medical", list(z)) + announce_radio_message("The cloning of [occupant] has been aborted due to unrecoverable tissue failure.") go_out() connected_message("Clone Rejected: Deceased.") @@ -339,7 +347,7 @@ else if((occupant.cloneloss <= (100 - heal_level)) && (!eject_wait)) connected_message("Cloning Process Complete.") - Radio.autosay("The cloning cycle of [occupant] is complete.", name, "Medical", list(z)) + announce_radio_message("The cloning cycle of [occupant] is complete.") locked = 0 go_out() @@ -455,7 +463,7 @@ occupant.grab_ghost() to_chat(occupant, "There is a bright flash!
\ You feel like a new being.
") - occupant.flash_eyes() + occupant.flash_eyes(visual = 1) occupant.forceMove(get_turf(src)) eject_wait = 0 //If it's still set somehow. @@ -467,7 +475,7 @@ /obj/machinery/clonepod/proc/malfunction() if(occupant) connected_message("Critical Error!") - Radio.autosay("Critical error! Please contact a Thinktronic Systems technician, as your warranty may be affected.", name, "Medical", list(z)) + announce_radio_message("Critical error! Please contact a Thinktronic Systems technician, as your warranty may be affected.") mess = 1 update_icon() if(occupant.mind != clonemind) From 491523149d4bffae8699dc7da47851c444538e39 Mon Sep 17 00:00:00 2001 From: Fox-McCloud Date: Mon, 5 Sep 2016 18:05:46 -0400 Subject: [PATCH 04/52] Removes Unused Gamemodes --- code/game/gamemodes/borer/borer.dm | 159 ------------------------- code/game/gamemodes/game_mode.dm | 1 + code/game/gamemodes/xenos/xenos.dm | 185 ----------------------------- config/example/config.txt | 4 +- paradise.dme | 2 - 5 files changed, 2 insertions(+), 349 deletions(-) delete mode 100644 code/game/gamemodes/borer/borer.dm delete mode 100644 code/game/gamemodes/xenos/xenos.dm diff --git a/code/game/gamemodes/borer/borer.dm b/code/game/gamemodes/borer/borer.dm deleted file mode 100644 index 2cd9eab452f..00000000000 --- a/code/game/gamemodes/borer/borer.dm +++ /dev/null @@ -1,159 +0,0 @@ -//This file was auto-corrected by findeclaration.exe on 29/05/2012 15:03:04 -// TOTALLY NOT COPY-PASTA FROM meme.dm - -/datum/game_mode/var/list/borers = list() - -/datum/game_mode/borer - name = "corticalborers" - config_tag = "borer" - required_players = 10 - restricted_jobs = list("AI", "Cyborg", "Mobile MMI") - recommended_enemies = 2 // need at least a borer and a host - votable = 0 // temporarily disable this mode for voting - - var/var/list/datum/mind/first_hosts = list() - var/var/list/assigned_hosts = list() - - var/list/found_vents = list() - -/datum/game_mode/borer/announce() - to_chat(world, "The current game mode is - Cortical Borer!") - to_chat(world, "An unknown creature has infested the mind of a crew member. Find and destroy it by any means necessary.") - -/datum/game_mode/borer/can_start() - if(!..()) - return 0 - - // for every 10 players, get 1 borer, and for each borer, get a host - // also make sure that there's at least one borer and one host - recommended_enemies = max(src.num_players() / 20 * 2, 2) - - var/list/datum/mind/possible_borers = get_players_for_role(ROLE_BORER) - - if(possible_borers.len < 2) - log_admin("MODE FAILURE: BORER. NOT ENOUGH BORER CANDIDATES.") - return 0 // not enough candidates for borer - - for(var/obj/machinery/atmospherics/unary/vent_pump/v in world) - if(!v.welded && is_station_level(v.z)) - found_vents.Add(v) - - // for each 2 possible borers, add one borer and one host - while(possible_borers.len >= 2) - var/datum/mind/borer = pick(possible_borers) - possible_borers.Remove(borer) - - var/datum/mind/first_host = pick(possible_borers) - possible_borers.Remove(first_host) - - modePlayer += borer - modePlayer += first_host - borers += borer - first_hosts += first_host - - // so that we can later know which host belongs to which borer - assigned_hosts[borer.key] = first_host - - borer.assigned_role = "MODE" //So they aren't chosen for other jobs. - borer.special_role = SPECIAL_ROLE_BORER - - return 1 - -/datum/game_mode/borer/pre_setup() - return 1 - - -/datum/game_mode/borer/post_setup() - // create a borer and enter it - for(var/datum/mind/borer in borers) - // Pick a backup location to spawn at if we can't infest. - var/spawn_loc - if(found_vents.len) - var/vent = pick(found_vents) - found_vents.Remove(vent) - spawn_loc=get_turf(vent) - else - spawn_loc=pick(xeno_spawn) - - var/mob/living/simple_animal/borer/M = new(spawn_loc,1) // loc, by_gamemode=0 - var/mob/original = borer.current - borer.transfer_to(M) - //M.clearHUD() - - // get the host for this borer - var/datum/mind/first_host = assigned_hosts[borer.key] - // this is a redundant check, but I don't think the above works.. - // if picking hosts works with this method, remove the method above - if(!first_host) - first_host = pick(first_hosts) - first_hosts.Remove(first_host) - M.perform_infestation(first_host.current) - forge_borer_objectives(borer, first_host) - - qdel(original) - - log_admin("Created [borers.len] borers.") - - ..() - -/datum/game_mode/proc/greet_borer(var/datum/mind/borer, var/you_are=1) - if(you_are) - to_chat(borer.current, "You are a Cortical Borer!") - - var/obj_count = 1 - for(var/datum/objective/objective in borer.objectives) - to_chat(borer.current, "Objective #[obj_count]: [objective.explanation_text]") - obj_count++ - return - -/datum/game_mode/borer/check_finished() - var/borers_alive = 0 - for(var/datum/mind/borer in borers) - if(!istype(borer.current,/mob/living)) - continue - if(borer.current.stat==2) - continue - borers_alive++ - - if(borers_alive) - return ..() - else - return 1 - -/datum/game_mode/proc/auto_declare_completion_borer() - for(var/datum/mind/borer in borers) - var/borerwin = 1 - if((borer.current) && istype(borer.current,/mob/living/simple_animal/borer)) - to_chat(world, "The borer was [borer.current.key].") - to_chat(world, "The last host was [borer.current:host.key].") - - var/count = 1 - for(var/datum/objective/objective in borer.objectives) - if(objective.check_completion()) - to_chat(world, "Objective #[count]: [objective.explanation_text] \green Success") - feedback_add_details("borer_objective","[objective.type]|SUCCESS") - else - to_chat(world, "Objective #[count]: [objective.explanation_text] \red Failed") - feedback_add_details("borer_objective","[objective.type]|FAIL") - borerwin = 0 - count++ - - else - borerwin = 0 - - if(borerwin) - to_chat(world, "The borer was successful!") - feedback_add_details("borer_success","SUCCESS") - else - to_chat(world, "The borer has failed!") - feedback_add_details("borer_success","FAIL") - return 1 - -/datum/game_mode/proc/forge_borer_objectives(var/datum/mind/borer, var/datum/mind/first_host) - var/datum/objective/survive/survive_objective = new - survive_objective.owner = borer - borer.objectives += survive_objective - - greet_borer(borer) - - return diff --git a/code/game/gamemodes/game_mode.dm b/code/game/gamemodes/game_mode.dm index 06f071366e1..6058b1a2d76 100644 --- a/code/game/gamemodes/game_mode.dm +++ b/code/game/gamemodes/game_mode.dm @@ -35,6 +35,7 @@ var/const/waittime_l = 600 //lower bound on time before intercept arrives (in tenths of seconds) var/const/waittime_h = 1800 //upper bound on time before intercept arrives (in tenths of seconds) var/list/player_draft_log = list() + var/list/datum/mind/xenos = list() /datum/game_mode/proc/announce() //to be calles when round starts to_chat(world, "Notice: [src] did not define announce()") diff --git a/code/game/gamemodes/xenos/xenos.dm b/code/game/gamemodes/xenos/xenos.dm deleted file mode 100644 index c4659993e45..00000000000 --- a/code/game/gamemodes/xenos/xenos.dm +++ /dev/null @@ -1,185 +0,0 @@ -/datum/game_mode - var/list/datum/mind/xenos = list() - - -/datum/game_mode/xenos - name = "xenos" - config_tag = "xenos" - required_players = 30 - required_enemies = 3 - var/result = 0 - var/checkwin_counter = 0 - var/xenos_list = list() - var/gammacalled = 0 - - var/gammaratio = 4 //At what alien to human ratio will the Gamma security level be called and the nuke be made available? - -/datum/game_mode/xenos/announce() - to_chat(world, "The current game mode is - Xenos!") - to_chat(world, "There is an Xenomorph attack on the station.
Aliens - Kill or infect the crew. Protect the Queen.
Crew - Protect the station. Exterminate all aliens.
") - -/datum/game_mode/xenos/can_start() - if(!..()) - return 0 - - var/list/candidates = get_players_for_role(ROLE_ALIEN) - var/playersready = 0 - var/xenos_num = required_enemies - for(var/mob/new_player/player in player_list) - if((player.client)&&(player.ready)) - playersready += 1 - - //Check that we have enough alien candidates - if(candidates.len < required_enemies) - return 0 - - //Grab candidates randomly until we have enough. - while(xenos_num > 0) - var/datum/mind/new_xenos = pick(candidates) - xenos += new_xenos - candidates -= new_xenos - xenos_num-- - - for(var/datum/mind/xeno in xenos) - xeno.assigned_role = "MODE" - xeno.special_role = SPECIAL_ROLE_XENOMORPH - set_antag_hud(xeno, "hudalien")//like this is needed... - return 1 - -/datum/game_mode/xenos/pre_setup() - return 1 - -/datum/game_mode/xenos/post_setup() - - var/list/turf/xenos_spawn = list() - - for(var/obj/effect/landmark/A in landmarks_list) - if(A.name == "Xenos-Spawn") - xenos_spawn += get_turf(A) - qdel(A) - continue - - var/xenoqueen_selected = 0 - var/spawnpos = 1 - - for(var/datum/mind/xeno_mind in xenos) - if(spawnpos > xenos_spawn.len) - spawnpos = 1 - //XenoQueen Selection - if(!xenoqueen_selected) - var/mob/living/carbon/alien/humanoid/queen/O = new(xenos_spawn[spawnpos]) - if(xeno_mind.current) - xeno_mind.transfer_to(O) - else - O.key = xeno_mind.current.key - xeno_mind.name = O.name - //qdel(xeno_mind) - xenoqueen_selected = 1 - spawnpos++ - continue - //Additional larvas if playercount > 20 - else - var/mob/living/carbon/alien/larva/O = new(xenos_spawn[spawnpos]) - if(xeno_mind.current) - xeno_mind.transfer_to(O) - else - O.key = xeno_mind.current.key - xeno_mind.name = O.name - //qdel(xeno_mind) - spawnpos++ - - return ..() - -/datum/game_mode/xenos/process() - checkwin_counter++ - if(checkwin_counter >= 5) - if(!result) - ticker.mode.check_win() - checkwin_counter = 0 - return 0 - - -/datum/game_mode/xenos/check_win() - var/xenosalive = xenos_alive() - var/playersalive = players_alive() - var/playeralienratio = 0 - if(playersalive) - playeralienratio = xenosalive / playersalive - if(shuttle_master && shuttle_master.emergency.mode >= SHUTTLE_ESCAPE) - return ..() - if(!xenosalive) - result = 1 - return 1 - else if(!playersalive) - result = 2 - return 1 - else if(station_was_nuked) - result = 3 - return 1 - else - if(playeralienratio >= gammaratio && !gammacalled) - gammacalled = 1 - command_announcement.Announce("The aliens have nearly succeeded in capturing the station and exterminating the crew. Activate the nuclear failsafe to stop the alien threat once and for all. The Nuclear Authentication Code is [get_nuke_code()] ", "Alien Lifeform Alert") - set_security_level("gamma") - var/obj/machinery/door/airlock/vault/V = locate(/obj/machinery/door/airlock/vault) in world - if(V && is_station_level(V.z)) - V.locked = 0 - V.update_icon() - return ..() - -/datum/game_mode/xenos/check_finished() - return result != 0 - -/datum/game_mode/xenos/proc/xenos_alive() - var/list/livingxenos = list() - for(var/datum/mind/xeno in xenos) - if((xeno) && (xeno.current) && (xeno.current.stat != 2) && (xeno.current.client)) - if(istype(xeno.current,/mob/living/carbon/alien)) - livingxenos += xeno - return livingxenos.len - -/datum/game_mode/xenos/proc/players_alive() - var/list/livingplayers = list() - for(var/mob/M in player_list) - var/turf/T = get_turf(M) - if((M) && (M.stat != DEAD) && M.client && T && (is_station_level(T.z) || shuttle_master.emergency.mode >= SHUTTLE_ESCAPE && is_secure_level(T.z))) - if(ishuman(M)) - livingplayers += 1 - return livingplayers.len - -/datum/game_mode/xenos/declare_completion() - if(station_was_nuked) - feedback_set_details("round_end_result","win - xenos nuked") - to_chat(world, "Crew Victory") - to_chat(world, "The station was destroyed in a nuclear explosion, preventing the aliens from overrunning it!") - else if(result == 1) - feedback_set_details("round_end_result","win - xenos killed") - to_chat(world, "Crew Victory") - to_chat(world, "The aliens did not succeed and were exterminated by the crew!") - else if(result == 2) - feedback_set_details("round_end_result","win - crew killed") - to_chat(world, "Alien Victory") - to_chat(world, "The aliens were successful and slaughtered the crew!") - else - feedback_set_details("round_end_result","win - crew escaped") - to_chat(world, "Draw") - to_chat(world, "The crew has escaped from the aliens but did not exterminate them, allowing them to overrun the station.") - - var/text = "
There were [xenos.len] aliens." - text += "
The aliens were:" - for(var/datum/mind/xeno in xenos) - text += "
[xeno.key] was [xeno.name] (" - if(xeno.current) - if(xeno.current.stat == DEAD) - text += "died" - else if(!xeno.current.client) - text += "SSD" - else - text += "survived" - else - text += "body destroyed" - text += ")" - to_chat(world, text) - - ..() - return 1 diff --git a/config/example/config.txt b/config/example/config.txt index e25941413fd..f2087eebaa2 100644 --- a/config/example/config.txt +++ b/config/example/config.txt @@ -72,7 +72,7 @@ KICK_INACTIVE ## set to 0 to disable that mode PROBABILITY EXTENDED 2 PROBABILITY NUCLEAR 3 -PROBABILITY ABDUCTION 2 +PROBABILITY ABDUCTION 0 PROBABILITY CHANGELING 3 PROBABILITY CULT 4 PROBABILITY EXTEND-A-TRAITORMONGOUS 5 @@ -84,8 +84,6 @@ PROBABILITY HEIST 1 PROBABILITY WIZARD 2 PROBABILITY VAMPIRE 3 PROBABILITY RAGINMAGES 0 -PROBABILITY BORER 0 -PROBABILITY XENOS 0 PROBABILITY METEOR 0 PROBABILITY TRAITOR 0 PROBABILITY SHADOWLING 2 diff --git a/paradise.dme b/paradise.dme index 7246870bf24..6efa0a7f84b 100644 --- a/paradise.dme +++ b/paradise.dme @@ -380,7 +380,6 @@ #include "code\game\gamemodes\blob\blobs\resource.dm" #include "code\game\gamemodes\blob\blobs\shield.dm" #include "code\game\gamemodes\blob\blobs\storage.dm" -#include "code\game\gamemodes\borer\borer.dm" #include "code\game\gamemodes\changeling\changeling.dm" #include "code\game\gamemodes\changeling\changeling_power.dm" #include "code\game\gamemodes\changeling\evolution_menu.dm" @@ -462,7 +461,6 @@ #include "code\game\gamemodes\wizard\soulstone.dm" #include "code\game\gamemodes\wizard\spellbook.dm" #include "code\game\gamemodes\wizard\wizard.dm" -#include "code\game\gamemodes\xenos\xenos.dm" #include "code\game\jobs\access.dm" #include "code\game\jobs\job_controller.dm" #include "code\game\jobs\job_objective.dm" From 521fba608dc3df3e14b92996e9f391bb9ff136ca Mon Sep 17 00:00:00 2001 From: Fox-McCloud Date: Mon, 5 Sep 2016 18:33:03 -0400 Subject: [PATCH 05/52] how did I miss that. Derp --- code/game/machinery/cloning.dm | 1 - 1 file changed, 1 deletion(-) diff --git a/code/game/machinery/cloning.dm b/code/game/machinery/cloning.dm index 012b992b357..f07cd94438d 100644 --- a/code/game/machinery/cloning.dm +++ b/code/game/machinery/cloning.dm @@ -118,7 +118,6 @@ name = "data disk - 'God Emperor of Mankind'" read_only = 1 -<<<<<<< HEAD /obj/item/weapon/disk/data/demo/New() Initialize() buf.types=DNA2_BUF_UE|DNA2_BUF_UI From 010293bbf8aa90ccd59ad879df0dbbd72b0be6a6 Mon Sep 17 00:00:00 2001 From: GeneralChaos81 Date: Fri, 9 Sep 2016 16:35:08 +1000 Subject: [PATCH 06/52] Port of TGs buildable conveyors. We can finally repair broken conveyors! --- code/datums/supplypacks.dm | 13 ++ code/modules/recycling/conveyor2.dm | 170 ++++++++++++++++-- .../research/designs/autolathe_designs.dm | 16 ++ 3 files changed, 189 insertions(+), 10 deletions(-) diff --git a/code/datums/supplypacks.dm b/code/datums/supplypacks.dm index 9d9f171bda8..22b6d6791b0 100644 --- a/code/datums/supplypacks.dm +++ b/code/datums/supplypacks.dm @@ -616,6 +616,19 @@ var/list/all_supply_groups = list(supply_emergency,supply_security,supply_engine access = access_ce announce_beacons = list("Engineering" = list("Chief Engineer's Desk", "Atmospherics")) +/datum/supply_packs/engineering/conveyor // NEW + name = "Conveyor Assembly Crate" + contains = list(/obj/item/conveyor_construct, + /obj/item/conveyor_construct, + /obj/item/conveyor_construct, + /obj/item/conveyor_construct, + /obj/item/conveyor_construct, + /obj/item/conveyor_construct, + /obj/item/conveyor_switch_construct, + /obj/item/weapon/paper/conveyor) + cost = 15 + containername = "conveyor assembly crate" + ////////////////////////////////////////////////////////////////////////////// //////////////////////////// Medical ///////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////// diff --git a/code/modules/recycling/conveyor2.dm b/code/modules/recycling/conveyor2.dm index 6ff39d21b0d..d827f3bb36f 100644 --- a/code/modules/recycling/conveyor2.dm +++ b/code/modules/recycling/conveyor2.dm @@ -44,10 +44,20 @@ icon_state = "conveyor[operating * verted]" // create a conveyor +/*/obj/machinery/conveyor/New(loc, newdir) + ..(loc) + if(newdir) + dir = newdir + update_move_direction()*/ // Old + /obj/machinery/conveyor/New(loc, newdir) ..(loc) if(newdir) dir = newdir + update_move_direction() + + +/obj/machinery/conveyor/proc/update_move_direction() //This proc is new, moved stuff from New switch(dir) if(NORTH) forwards = NORTH @@ -65,11 +75,11 @@ forwards = EAST backwards = SOUTH if(NORTHWEST) - forwards = SOUTH - backwards = WEST - if(SOUTHEAST) forwards = NORTH backwards = EAST + if(SOUTHEAST) + forwards = SOUTH + backwards = WEST if(SOUTHWEST) forwards = WEST backwards = NORTH @@ -77,6 +87,11 @@ var/temp = forwards forwards = backwards backwards = temp + if(operating == 1) + movedir = forwards + else + movedir = backwards + update() /obj/machinery/conveyor/proc/setmove() if(operating == 1) @@ -114,11 +129,33 @@ CHECK_TICK // attack with item, place item on conveyor -/obj/machinery/conveyor/attackby(var/obj/item/I, mob/user, params) +/*/obj/machinery/conveyor/attackby(var/obj/item/I, mob/user, params) if(isrobot(user)) return //Carn: fix for borgs dropping their modules on conveyor belts user.drop_item() if(I && I.loc) I.loc = src.loc - return + return*/ // NEW CODE HERE ---v +/obj/machinery/conveyor/attackby(obj/item/I, mob/user, params) + if(istype(I, /obj/item/weapon/crowbar)) + if(!(stat & BROKEN)) + var/obj/item/conveyor_construct/C = new/obj/item/conveyor_construct(src.loc) + C.id = id + transfer_fingerprints_to(C) + user << "You remove the conveyor belt." + qdel(src) + + else if(istype(I, /obj/item/weapon/wrench)) + if(!(stat & BROKEN)) + playsound(loc, 'sound/items/Ratchet.ogg', 50, 1) + //setDir(turn(dir,-45)) //No such proc + dir = turn(dir,-45) + update_move_direction() + user << "You rotate [src]." + + else if(user.a_intent != "harm") + if(user.drop_item()) + I.loc = src.loc + else + return ..() // attack with hand, move pulled object onto conveyor /obj/machinery/conveyor/attack_hand(mob/user as mob) @@ -176,6 +213,7 @@ var/position = 0 // 0 off, -1 reverse, 1 forward var/last_pos = -1 // last direction setting var/operated = 1 // true if just operated + var/convdir = 0 // 0 is two way switch, 1 and -1 means one way var/id = "" // must match conveyor IDs to control them @@ -184,13 +222,24 @@ speed_process = 1 -/obj/machinery/conveyor_switch/New() +/*/obj/machinery/conveyor_switch/New() ..() update() spawn(5) // allow map load conveyors = list() for(var/obj/machinery/conveyor/C in world) + if(C.id == id) + conveyors += C*/ //NEW CODE -v +obj/machinery/conveyor_switch/New(newloc, newid) + ..(newloc) + if(!id) + id = newid + update() + + spawn(5) // allow map load + conveyors = list() + for(var/obj/machinery/conveyor/C in machines) if(C.id == id) conveyors += C @@ -218,8 +267,12 @@ C.setmove() CHECK_TICK +/obj/machinery/conveyor_switch/oneway + convdir = 1 //Set to 1 or -1 depending on which way you want the convayor to go. (In other words keep at 1 and set the proper dir on the belts.) + desc = "A conveyor control switch. It appears to only go in one direction." + // attack with hand, switch position -/obj/machinery/conveyor_switch/attack_hand(mob/user) +/*/obj/machinery/conveyor_switch/attack_hand(mob/user) if(!allowed(user)) to_chat(user, "Access denied.") return @@ -239,6 +292,34 @@ operated = 1 update() + // find any switches with same id as this one, and set their positions to match us + for(var/obj/machinery/conveyor_switch/S in machines) + if(S.id == src.id) + S.position = position + S.update() + CHECK_TICK*/ //New vode +/obj/machinery/conveyor_switch/attack_hand(mob/user) + if(!allowed(user)) //this is in Para but not TG + to_chat(user, "Access denied.") + return + add_fingerprint(user) + if(position == 0) + if(convdir) //is it a oneway switch + position = convdir + else + if(last_pos < 0) + position = 1 + last_pos = 0 + else + position = -1 + last_pos = 0 + else + last_pos = position + position = 0 + + operated = 1 + update() + // find any switches with same id as this one, and set their positions to match us for(var/obj/machinery/conveyor_switch/S in machines) if(S.id == src.id) @@ -246,9 +327,6 @@ S.update() CHECK_TICK -/obj/machinery/conveyor_switch/oneway - var/convdir = 1 //Set to 1 or -1 depending on which way you want the convayor to go. (In other words keep at 1 and set the proper dir on the belts.) - desc = "A conveyor control switch. It appears to only go in one direction." // attack with hand, switch position /obj/machinery/conveyor_switch/oneway/attack_hand(mob/user) @@ -265,3 +343,75 @@ if(S.id == src.id) S.position = position S.update() + +/obj/machinery/conveyor_switch/attackby(obj/item/I, mob/user, params) + if(istype(I, /obj/item/weapon/crowbar)) + var/obj/item/conveyor_switch_construct/C = new/obj/item/conveyor_switch_construct(src.loc) + C.id = id + transfer_fingerprints_to(C) + user << "You deattach the conveyor switch." + qdel(src) + + + +// +// CONVEYOR CONSTRUCTION STARTS HERE +// All new here. + +/obj/item/conveyor_construct + icon = 'icons/obj/recycling.dmi' + icon_state = "conveyor0" + name = "conveyor belt assembly" + desc = "A conveyor belt assembly." + w_class = 4 + var/id = "" //inherited by the belt + +/obj/item/conveyor_construct/attackby(obj/item/I, mob/user, params) + ..() + if(istype(I, /obj/item/conveyor_switch_construct)) + user << "You link the switch to the conveyor belt assembly." + var/obj/item/conveyor_switch_construct/C = I + id = C.id + +/obj/item/conveyor_construct/afterattack(atom/A, mob/user, proximity) + if(!proximity || user.stat || !istype(A, /turf/simulated/floor) || istype(A, /area/shuttle)) + return + var/cdir = get_dir(A, user) + if(A == user.loc) + user << "You cannot place a conveyor belt under yourself." + return + var/obj/machinery/conveyor/C = new/obj/machinery/conveyor(A,cdir) + C.id = id + transfer_fingerprints_to(C) + qdel(src) + +/obj/item/conveyor_switch_construct + name = "conveyor switch assembly" + desc = "A conveyor control switch assembly." + icon = 'icons/obj/recycling.dmi' + icon_state = "switch-off" + w_class = 4 + var/id = "" //inherited by the switch + +/obj/item/conveyor_switch_construct/New() + ..() + id = rand() //this couldn't possibly go wrong + +/obj/item/conveyor_switch_construct/afterattack(atom/A, mob/user, proximity) + if(!proximity || user.stat || !istype(A, /turf/simulated/floor) || istype(A, /area/shuttle)) + return + var/found = 0 + for(var/obj/machinery/conveyor/C in view()) + if(C.id == src.id) + found = 1 + break + if(!found) + user << "\icon[src]The conveyor switch did not detect any linked conveyor belts in range." + return + var/obj/machinery/conveyor_switch/NC = new/obj/machinery/conveyor_switch(A, id) + transfer_fingerprints_to(NC) + qdel(src) + +/obj/item/weapon/paper/conveyor + name = "paper- 'Nano-it-up U-build series, #9: Build your very own conveyor belt, in SPACE'" + info = "

Congratulations!

You are now the proud owner of the best conveyor set available for space mail order! We at Nano-it-up know you love to prepare your own structures without wasting time, so we have devised a special streamlined assembly procedure that puts all other mail-order products to shame!

Firstly, you need to link the conveyor switch assembly to each of the conveyor belt assemblies. After doing so, you simply need to install the belt assemblies onto the floor, et voila, belt built. Our special Nano-it-up smart switch will detected any linked assemblies as far as the eye can see! This convenience, you can only have it when you Nano-it-up. Stay nano!

" diff --git a/code/modules/research/designs/autolathe_designs.dm b/code/modules/research/designs/autolathe_designs.dm index 8337e0ffaf7..f34d9797124 100644 --- a/code/modules/research/designs/autolathe_designs.dm +++ b/code/modules/research/designs/autolathe_designs.dm @@ -713,3 +713,19 @@ materials = list(MAT_GLASS = 750, MAT_METAL = 250) build_path = /obj/item/weapon/circuitboard/vendor category = list("initial", "Electronics") + +/datum/design/conveyor_belt + name = "Conveyor belt" + id = "conveyor_belt" + build_type = AUTOLATHE + materials = list(MAT_METAL = 5000) + build_path = /obj/item/conveyor_construct + category = list("initial", "Construction") + +/datum/design/conveyor_switch + name = "Conveyor belt switch" + id = "conveyor_switch" + build_type = AUTOLATHE + materials = list(MAT_METAL = 450, MAT_GLASS = 190) + build_path = /obj/item/conveyor_switch_construct + category = list("initial", "Construction") \ No newline at end of file From 4af47209aebce0cce7d14962dfac7669b8a93612 Mon Sep 17 00:00:00 2001 From: GeneralChaos81 Date: Fri, 9 Sep 2016 17:53:11 +1000 Subject: [PATCH 07/52] Removed all the commented sections after testing. --- code/datums/supplypacks.dm | 2 +- code/modules/recycling/conveyor2.dm | 52 ++--------------------------- 2 files changed, 4 insertions(+), 50 deletions(-) diff --git a/code/datums/supplypacks.dm b/code/datums/supplypacks.dm index 22b6d6791b0..73c653369eb 100644 --- a/code/datums/supplypacks.dm +++ b/code/datums/supplypacks.dm @@ -616,7 +616,7 @@ var/list/all_supply_groups = list(supply_emergency,supply_security,supply_engine access = access_ce announce_beacons = list("Engineering" = list("Chief Engineer's Desk", "Atmospherics")) -/datum/supply_packs/engineering/conveyor // NEW +/datum/supply_packs/engineering/conveyor name = "Conveyor Assembly Crate" contains = list(/obj/item/conveyor_construct, /obj/item/conveyor_construct, diff --git a/code/modules/recycling/conveyor2.dm b/code/modules/recycling/conveyor2.dm index d827f3bb36f..8ecd9ed9dc3 100644 --- a/code/modules/recycling/conveyor2.dm +++ b/code/modules/recycling/conveyor2.dm @@ -23,7 +23,7 @@ id = "round_end_belt" -// Auto conveyour is always on unless unpowered +// Auto conveyor is always on unless unpowered /obj/machinery/conveyor/auto/New(loc, newdir) ..(loc, newdir) @@ -44,12 +44,6 @@ icon_state = "conveyor[operating * verted]" // create a conveyor -/*/obj/machinery/conveyor/New(loc, newdir) - ..(loc) - if(newdir) - dir = newdir - update_move_direction()*/ // Old - /obj/machinery/conveyor/New(loc, newdir) ..(loc) if(newdir) @@ -57,7 +51,7 @@ update_move_direction() -/obj/machinery/conveyor/proc/update_move_direction() //This proc is new, moved stuff from New +/obj/machinery/conveyor/proc/update_move_direction() switch(dir) if(NORTH) forwards = NORTH @@ -129,11 +123,6 @@ CHECK_TICK // attack with item, place item on conveyor -/*/obj/machinery/conveyor/attackby(var/obj/item/I, mob/user, params) - if(isrobot(user)) return //Carn: fix for borgs dropping their modules on conveyor belts - user.drop_item() - if(I && I.loc) I.loc = src.loc - return*/ // NEW CODE HERE ---v /obj/machinery/conveyor/attackby(obj/item/I, mob/user, params) if(istype(I, /obj/item/weapon/crowbar)) if(!(stat & BROKEN)) @@ -222,15 +211,6 @@ speed_process = 1 -/*/obj/machinery/conveyor_switch/New() - ..() - update() - - spawn(5) // allow map load - conveyors = list() - for(var/obj/machinery/conveyor/C in world) - if(C.id == id) - conveyors += C*/ //NEW CODE -v obj/machinery/conveyor_switch/New(newloc, newid) ..(newloc) if(!id) @@ -272,34 +252,8 @@ obj/machinery/conveyor_switch/New(newloc, newid) desc = "A conveyor control switch. It appears to only go in one direction." // attack with hand, switch position -/*/obj/machinery/conveyor_switch/attack_hand(mob/user) - if(!allowed(user)) - to_chat(user, "Access denied.") - return - - - if(position == 0) - if(last_pos < 0) - position = 1 - last_pos = 0 - else - position = -1 - last_pos = 0 - else - last_pos = position - position = 0 - - operated = 1 - update() - - // find any switches with same id as this one, and set their positions to match us - for(var/obj/machinery/conveyor_switch/S in machines) - if(S.id == src.id) - S.position = position - S.update() - CHECK_TICK*/ //New vode /obj/machinery/conveyor_switch/attack_hand(mob/user) - if(!allowed(user)) //this is in Para but not TG + if(!allowed(user)) //this is in Para but not TG. I don't think there's any which are coded anyway. to_chat(user, "Access denied.") return add_fingerprint(user) From df9ba20f23e01a5df2e6932c5e16b28b4874ac9b Mon Sep 17 00:00:00 2001 From: GeneralChaos81 Date: Fri, 9 Sep 2016 23:19:48 +1000 Subject: [PATCH 08/52] Trying stuff to get conveyors to initialize with the map --- code/game/machinery/machinery.dm | 10 +++++++++- code/modules/recycling/conveyor2.dm | 15 +++++++++++---- 2 files changed, 20 insertions(+), 5 deletions(-) diff --git a/code/game/machinery/machinery.dm b/code/game/machinery/machinery.dm index b003d9ef1d6..cc93a00cb2f 100644 --- a/code/game/machinery/machinery.dm +++ b/code/game/machinery/machinery.dm @@ -120,7 +120,7 @@ Class Procs: var/speed_process = 0 // Process as fast as possible? /obj/machinery/initialize() - addAtProcessing() +// addAtProcessing() //Testing this in new conveyors . = ..() power_change() @@ -128,11 +128,19 @@ Class Procs: if(use_power) myArea = get_area_master(src) +/* machines += src + if(!speed_process) + machine_processing += src + else + fast_processing += src */ //Also testing in NEW conveyors + +/obj/machinery/new() //new for trying to get the conveyors working with machinery, not world machines += src if(!speed_process) machine_processing += src else fast_processing += src + . = ..() /obj/machinery/Destroy() if(myArea) diff --git a/code/modules/recycling/conveyor2.dm b/code/modules/recycling/conveyor2.dm index 8ecd9ed9dc3..20779370974 100644 --- a/code/modules/recycling/conveyor2.dm +++ b/code/modules/recycling/conveyor2.dm @@ -211,17 +211,24 @@ speed_process = 1 -obj/machinery/conveyor_switch/New(newloc, newid) +/obj/machinery/conveyor_switch/New(newloc, newid) ..(newloc) if(!id) id = newid update() - spawn(5) // allow map load +/* spawn(5) // allow map load conveyors = list() - for(var/obj/machinery/conveyor/C in machines) + for(var/obj/machinery/conveyor/C in machines) //This works if it's: `C in world` , but that's bad practice. Best to try to fix it. if(C.id == id) - conveyors += C + conveyors += C */ //Moving this to initialise to see if it gets around the bug... do we need the spawn thing? Let's find out. + +/obj/machinery/conveyor_switch/initialize() //This whole thing is new + conveyors = list() + for(var/obj/machinery/conveyor/C in machines) + if(C.id == id) + conveyors += C + // update the icon depending on the position From 9a0b8b7c3929ccd27a842b304d0804e828d556a2 Mon Sep 17 00:00:00 2001 From: Fox-McCloud Date: Fri, 9 Sep 2016 13:53:53 -0400 Subject: [PATCH 09/52] Atmos Grenade Balance --- code/datums/uplink_item.dm | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/code/datums/uplink_item.dm b/code/datums/uplink_item.dm index 5f7b5e8237a..971b6d49570 100644 --- a/code/datums/uplink_item.dm +++ b/code/datums/uplink_item.dm @@ -483,7 +483,8 @@ var/list/uplink_items = list() desc = "A box of two (2) grenades that wreak havoc with the atmosphere of the target area. Capable of engulfing a large area in lit plasma, or N2O. Deploy with extreme caution!" reference = "AGG" item = /obj/item/weapon/storage/box/syndie_kit/atmosgasgrenades - cost = 6 + cost = 8 + gamemodes = list(/datum/game_mode/nuclear) /datum/uplink_item/dangerous/emp name = "EMP Grenades and Implanter Kit" @@ -791,7 +792,7 @@ var/list/uplink_items = list() reference = "CHHUD" item = /obj/item/clothing/glasses/hud/security/chameleon cost = 2 - + /datum/uplink_item/stealthy_weapons/chameleonflag name = "Chameleon Flag" desc = "A flag that can be disguised as any other known flag. There is a heat sensitive bomb loaded into the pole that will be detonated if the flag is lit on fire." From d5e855a548eb98aa6071e2089702c33514cda3bc Mon Sep 17 00:00:00 2001 From: Fox-McCloud Date: Fri, 9 Sep 2016 18:18:13 -0400 Subject: [PATCH 10/52] Mice Worn Sprites --- icons/mob/head.dmi | Bin 254443 -> 255636 bytes icons/mob/inhands/items_lefthand.dmi | Bin 176457 -> 177614 bytes icons/mob/inhands/items_righthand.dmi | Bin 174630 -> 176186 bytes 3 files changed, 0 insertions(+), 0 deletions(-) diff --git a/icons/mob/head.dmi b/icons/mob/head.dmi index 3be9bc8b7ea0450e55675f61457f2aed9f37c291..e0cc9a7e997d3af490c82fef8326feecb595e693 100644 GIT binary patch delta 5128 zcmb_fc{r5a-yaduLQ0A!lBIeiT2M6B6tX1yE{ZH8J!5P$=9bh{vP6<~Op$#QGj=n{ z6A{KTW0+x(eP0KI8Sm)#yzlRN|9Y?Mec$hO-RJ(C`+U#$+~;$D&wV~;ra|~^n{d1w z&-E|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aPY#*j zqpxvg2cFz5&6V7A2<-I_>=QnA)=4>sZgK1xYs;a5JyLm$FAk7K@vvc7$)d2glKxBz zmAd7csD5ED!1B5SkQ)|V#&=>;Z7wG6k-ui`$?Z!QdNn+`k(K_8wXeJua%aTbNMv+` zKBu;C=eutwz6$g%r$EK8W5qtdT^JNgZ0XET)2+MNQoxM%X2-QoZfe*n!i9GMM>xvB zawx{_>b){pRK)4~D!dX8cyQS$M+UbOp{ia2n2;MBBi>{~KYc*mrzI)kkr_DRoW`cq zo@6`J{fprX^^N?gyD7rUL3)|lx!h zR!hc=#JOF0n%+Ehu7bQtV4}wb-%=KLj?LQ2NNSRgGXALByp;P4+Z^-T#95b+@6ba! zz@%}(9v2tH!`MK0$;^zm-of4eGgB3&a7!; zQt0Hbto1Ip4>V?e;Pn$d!^4Kt=f3}jjk%>M_^dF(I_**)@V+*%d9voWjj3uyyWV%W zj&0xdH36}$=gscvr`ovMWty*_9~7|*LJ$Ba9IXCU-A19%!cYE>S8hJ~9UcU7k39Nc rQQIGQ|B!Luzog^;8~OhL{x;Mx?l=DpoitWo diff --git a/icons/mob/inhands/items_lefthand.dmi b/icons/mob/inhands/items_lefthand.dmi index b02e2563aa4d0cbd02e4e9ab1fcf544ac4069d5d..1003b7f7585af8e1910ae70efe0307e565df7816 100644 GIT binary patch delta 8524 zcmaKQ1z1$wxAz%RKsu#G1PlbE1f)SqK|rOuO9Z6j5Q=mwASoaqoze^{HKgRwgLK2t zFfj8C{@?ez_qq4^zIC4SoO9MbYwuNi@AccT1>%8C;y6xF!smtVTLmjO3s<{0Z|$64 z1Ate0OZxO{CNZke^2GuQ>({01$B)`}-aC6FvRtolYumvUDuQk7xK`_3C%1=bKNnGpD0SorPA}Z=3lom2~!DD4sPs-wZ&Brp5fGO`sFPx@BGV&GdS zs3l%5+C@vI=|^B)5<_v!qlANWdSsy$l;Snk$U&S`WC78lCRo|OgAH4w{>kt6q#Q0d(S^ z=uhgcazj^NeyFU2!>~MV`VD8fE0e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dF%4d=p&Q{Px^9G-O&K5m=21+ z>SVa_^F^#4=n5oOn1W3cUSR`UN}>SZQ~!&ep~;&gZ%Y^2q>ER~yfGOPiMo2Uhn^8~ z^Ef2h*L3NnG`?%nWUTG6J&-_lgB=mZr8J(6Ie6CDh4mTs<~xzzHeVN*_$^V=OE*vK zf+)djd@uw_*RDCNilIjwyKwUSZDLdmeu5y-k+Z1Kb(vOv2?FW4`IT?LN*i0&+6wF6 z?#(ALimUQ`W4AzedH;6*_PsbJB}_)M8OkfPwVbwp#Z?VN2s5Yn{TTBXqcG9jNJ!Gv zLuW2Jjlw)%7)T8FUFrAyXc$zzQvN&cmcQ#@0ELCsH2!+CV`H(U;PBj2C2m(LRz_OeHxr+4AS+A^!u7 C#e@I= diff --git a/icons/mob/inhands/items_righthand.dmi b/icons/mob/inhands/items_righthand.dmi index 59531a73db96a9469bfaafdd229c68b1e4b338af..927a56bdaa378fb7c650d2e3af78f332375ec771 100644 GIT binary patch delta 4788 zcmbtY2T)W?m%gBa0TWLKktjhjJV7K#QilwpBnc88Sri5pK_y(2hYX+~NS2@kkt|3a zV2~U|;s67Tl9LR>kR~v9hX-!`Rl8gJZ*5oIx_wXg>F+zIL-lt*4jiriar6!BBolC$ z2>^i4D?#@F;3!kE(A*JW*So`+LKhR9$G@mN{937n^Xnr|EfVo*W@!PGjal&9{nhFI z$F6Zff=5FHk1|vU9%Wn$WaI-X&W1Biu!5dvoRaDZ*~a*13J(Il7+ z)h1@LJW*3nh(lI#nJu=xIRB;XIc!m<<&0JJDYLQjL8dojtNUw>_|Z+*8AW9jpF2Db z9(%ET4sSl5{5ERY{Y`k=tqb^_=f~gv72PE`-mfx_GmOnj^dkGu`p>5Dq-CRAX1fwW zm}Yd+aOG=O3blI}1p8EY0KlW-3BmsLq#8X?8Sdi%uv1bpuX4uul6e08mySlnLv%a6 zY^oms)X|lUKV%B`41oHD4-CM2+eGg}fdQc3Z)+g77XZE&>DMs+ppuA5e-r@8GjrXP;cy|ix* zJio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oxTA|OZ zNmP_yXXzokq6KYO^@XCcAcZ8-10Nn4@Czk1b_`3Z;={ z`(B0jW7sAX zptrD3Dxm7bDsLfr<@OCkrdcL*yb#)`Zhw%ft~wDtrlavzvx%lj=P2J}BiTrUt#02y z0iT4cLE-rxqJ0r_>eP0@MAnOMu848J62%83H8Up4p{?6`E zIyiZM2HX9Gg7sc!`F*;-*D-@FgQ{DP8I^T!PqkIFM6D;fr&!aL&;$9WE7@X$UP4OHoNyv5L_neZp<0xYk6P5+6^Ta z6f057uPSgeDb86?L5w)i{`w~#@Eyk7P+%_wNy?bHG-UB?$fI5%pk0@&H#W0~q&5J+ zL-^QFdH_&&s@jnErU%a{E{ORua{~ZCLFwSCxis{lV$ClYFx_xY$_Oo7b9My7gb~FHDO7 From 96361631278d0cfcbbabcee03e8a8aeb9d2feacc Mon Sep 17 00:00:00 2001 From: GeneralChaos81 Date: Sat, 10 Sep 2016 16:52:20 +1000 Subject: [PATCH 11/52] Back to how it was before, when it was even working at all. --- code/game/machinery/machinery.dm | 10 +--------- code/modules/recycling/conveyor2.dm | 10 +++++----- 2 files changed, 6 insertions(+), 14 deletions(-) diff --git a/code/game/machinery/machinery.dm b/code/game/machinery/machinery.dm index cc93a00cb2f..b003d9ef1d6 100644 --- a/code/game/machinery/machinery.dm +++ b/code/game/machinery/machinery.dm @@ -120,7 +120,7 @@ Class Procs: var/speed_process = 0 // Process as fast as possible? /obj/machinery/initialize() -// addAtProcessing() //Testing this in new conveyors + addAtProcessing() . = ..() power_change() @@ -128,19 +128,11 @@ Class Procs: if(use_power) myArea = get_area_master(src) -/* machines += src - if(!speed_process) - machine_processing += src - else - fast_processing += src */ //Also testing in NEW conveyors - -/obj/machinery/new() //new for trying to get the conveyors working with machinery, not world machines += src if(!speed_process) machine_processing += src else fast_processing += src - . = ..() /obj/machinery/Destroy() if(myArea) diff --git a/code/modules/recycling/conveyor2.dm b/code/modules/recycling/conveyor2.dm index 20779370974..e46b8d8b932 100644 --- a/code/modules/recycling/conveyor2.dm +++ b/code/modules/recycling/conveyor2.dm @@ -217,17 +217,17 @@ id = newid update() -/* spawn(5) // allow map load + spawn(5) // allow map load conveyors = list() for(var/obj/machinery/conveyor/C in machines) //This works if it's: `C in world` , but that's bad practice. Best to try to fix it. if(C.id == id) - conveyors += C */ //Moving this to initialise to see if it gets around the bug... do we need the spawn thing? Let's find out. + conveyors += C //Moving this to initialise to see if it gets around the bug... do we need the spawn thing? Let's find out. -/obj/machinery/conveyor_switch/initialize() //This whole thing is new +/*/obj/machinery/conveyor_switch/initialize() //This whole thing is new conveyors = list() - for(var/obj/machinery/conveyor/C in machines) + for(var/obj/machinery/conveyor/C in world) //This works if it's: `C in world` , but that's bad practice. Best to try to fix it so it's in machines if(C.id == id) - conveyors += C + conveyors += C*/ // update the icon depending on the position From a430d43e38a7b3fecdec7eb72fbeb5e9f7fdc068 Mon Sep 17 00:00:00 2001 From: GeneralChaos81 Date: Sun, 11 Sep 2016 11:06:30 +1000 Subject: [PATCH 12/52] Initial conveyors are working. Now for multi on the levers... --- code/game/machinery/machinery.dm | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/code/game/machinery/machinery.dm b/code/game/machinery/machinery.dm index b003d9ef1d6..8c3181c10fc 100644 --- a/code/game/machinery/machinery.dm +++ b/code/game/machinery/machinery.dm @@ -128,12 +128,15 @@ Class Procs: if(use_power) myArea = get_area_master(src) - machines += src + machines += src //Moved this to New if(!speed_process) machine_processing += src else fast_processing += src +/obj/machinery/New() //new + machines += src + /obj/machinery/Destroy() if(myArea) myArea = null From 9bae9f5c574602147bce5dcb564fa661bfbf10db Mon Sep 17 00:00:00 2001 From: GeneralChaos81 Date: Sun, 11 Sep 2016 19:28:40 +1000 Subject: [PATCH 13/52] Multitool code in... not quite working. --- code/game/machinery/machinery.dm | 3 +-- code/modules/recycling/conveyor2.dm | 23 +++++++++++++++-------- 2 files changed, 16 insertions(+), 10 deletions(-) diff --git a/code/game/machinery/machinery.dm b/code/game/machinery/machinery.dm index 8c3181c10fc..519a7177d7a 100644 --- a/code/game/machinery/machinery.dm +++ b/code/game/machinery/machinery.dm @@ -127,8 +127,6 @@ Class Procs: /obj/machinery/proc/addAtProcessing() if(use_power) myArea = get_area_master(src) - - machines += src //Moved this to New if(!speed_process) machine_processing += src else @@ -136,6 +134,7 @@ Class Procs: /obj/machinery/New() //new machines += src + ..() /obj/machinery/Destroy() if(myArea) diff --git a/code/modules/recycling/conveyor2.dm b/code/modules/recycling/conveyor2.dm index e46b8d8b932..6b408e25ece 100644 --- a/code/modules/recycling/conveyor2.dm +++ b/code/modules/recycling/conveyor2.dm @@ -122,6 +122,8 @@ step(A,movedir) CHECK_TICK + + // attack with item, place item on conveyor /obj/machinery/conveyor/attackby(obj/item/I, mob/user, params) if(istype(I, /obj/item/weapon/crowbar)) @@ -146,6 +148,7 @@ else return ..() + // attack with hand, move pulled object onto conveyor /obj/machinery/conveyor/attack_hand(mob/user as mob) user.Move_Pulled(src) @@ -219,15 +222,9 @@ spawn(5) // allow map load conveyors = list() - for(var/obj/machinery/conveyor/C in machines) //This works if it's: `C in world` , but that's bad practice. Best to try to fix it. + for(var/obj/machinery/conveyor/C in machines) if(C.id == id) - conveyors += C //Moving this to initialise to see if it gets around the bug... do we need the spawn thing? Let's find out. - -/*/obj/machinery/conveyor_switch/initialize() //This whole thing is new - conveyors = list() - for(var/obj/machinery/conveyor/C in world) //This works if it's: `C in world` , but that's bad practice. Best to try to fix it so it's in machines - if(C.id == id) - conveyors += C*/ + conveyors += C // update the icon depending on the position @@ -313,6 +310,16 @@ user << "You deattach the conveyor switch." qdel(src) + else if(istype(I, /obj/item/device/multitool)) + update_multitool_menu(user) + return 1 + + +/obj/machinery/conveyor_switch/multitool_menu(var/mob/user, var/obj/item/device/multitool/P) + return {" +

"} // From 94cddf84ae334755c8f8f7a290aba9d2ab26298d Mon Sep 17 00:00:00 2001 From: GeneralChaos81 Date: Mon, 12 Sep 2016 10:41:48 +1000 Subject: [PATCH 14/52] Multitool working, but the GUI for it doesn't refresh. --- code/modules/recycling/conveyor2.dm | 38 ++++++++++------------------- 1 file changed, 13 insertions(+), 25 deletions(-) diff --git a/code/modules/recycling/conveyor2.dm b/code/modules/recycling/conveyor2.dm index 6b408e25ece..10e1e85baeb 100644 --- a/code/modules/recycling/conveyor2.dm +++ b/code/modules/recycling/conveyor2.dm @@ -220,12 +220,10 @@ id = newid update() - spawn(5) // allow map load - conveyors = list() - for(var/obj/machinery/conveyor/C in machines) - if(C.id == id) - conveyors += C - + conveyors = list() + for(var/obj/machinery/conveyor/C in machines) + if(C.id == id) + conveyors += C // update the icon depending on the position @@ -253,7 +251,6 @@ /obj/machinery/conveyor_switch/oneway convdir = 1 //Set to 1 or -1 depending on which way you want the convayor to go. (In other words keep at 1 and set the proper dir on the belts.) - desc = "A conveyor control switch. It appears to only go in one direction." // attack with hand, switch position /obj/machinery/conveyor_switch/attack_hand(mob/user) @@ -286,22 +283,6 @@ CHECK_TICK -// attack with hand, switch position -/obj/machinery/conveyor_switch/oneway/attack_hand(mob/user) - if(position == 0) - position = convdir - else - position = 0 - - operated = 1 - update() - - // find any switches with same id as this one, and set their positions to match us - for(var/obj/machinery/conveyor_switch/S in world) - if(S.id == src.id) - S.position = position - S.update() - /obj/machinery/conveyor_switch/attackby(obj/item/I, mob/user, params) if(istype(I, /obj/item/weapon/crowbar)) var/obj/item/conveyor_switch_construct/C = new/obj/item/conveyor_switch_construct(src.loc) @@ -315,6 +296,12 @@ return 1 +/obj/machinery/conveyor_switch/multitool_topic(var/mob/user,var/list/href_list,var/obj/O) + ..() + if("toggle_logic" in href_list) + convdir = !convdir //reverses? + + /obj/machinery/conveyor_switch/multitool_menu(var/mob/user, var/obj/item/device/multitool/P) return {"
    @@ -322,9 +309,10 @@
"} + // // CONVEYOR CONSTRUCTION STARTS HERE -// All new here. +// /obj/item/conveyor_construct icon = 'icons/obj/recycling.dmi' @@ -382,4 +370,4 @@ /obj/item/weapon/paper/conveyor name = "paper- 'Nano-it-up U-build series, #9: Build your very own conveyor belt, in SPACE'" - info = "

Congratulations!

You are now the proud owner of the best conveyor set available for space mail order! We at Nano-it-up know you love to prepare your own structures without wasting time, so we have devised a special streamlined assembly procedure that puts all other mail-order products to shame!

Firstly, you need to link the conveyor switch assembly to each of the conveyor belt assemblies. After doing so, you simply need to install the belt assemblies onto the floor, et voila, belt built. Our special Nano-it-up smart switch will detected any linked assemblies as far as the eye can see! This convenience, you can only have it when you Nano-it-up. Stay nano!

" + info = "

Congratulations!

You are now the proud owner of the best conveyor set available for space mail order! We at Nano-it-up know you love to prepare your own structures without wasting time, so we have devised a special streamlined assembly procedure that puts all other mail-order products to shame!

Firstly, you need to link the conveyor switch assembly to each of the conveyor belt assemblies. After doing so, you simply need to install the belt assemblies onto the floor, et voila, belt built. Our special Nano-it-up smart switch will detected any linked assemblies as far as the eye can see!

Set single directional switches by using your multitool on the switch after you've installed the switch assembly.

This convenience, you can only have it when you Nano-it-up. Stay nano!

" From d9bd16a0db4712e6e936381710d426a3478e36a5 Mon Sep 17 00:00:00 2001 From: GeneralChaos81 Date: Mon, 12 Sep 2016 11:47:54 +1000 Subject: [PATCH 15/52] Diagonal pieces directions were not correct. --- code/modules/recycling/conveyor2.dm | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/code/modules/recycling/conveyor2.dm b/code/modules/recycling/conveyor2.dm index 10e1e85baeb..81c171d4031 100644 --- a/code/modules/recycling/conveyor2.dm +++ b/code/modules/recycling/conveyor2.dm @@ -68,15 +68,15 @@ if(NORTHEAST) forwards = EAST backwards = SOUTH - if(NORTHWEST) + if(SOUTHEAST) forwards = NORTH backwards = EAST - if(SOUTHEAST) - forwards = SOUTH - backwards = WEST if(SOUTHWEST) forwards = WEST backwards = NORTH + if(NORTHWEST) + forwards = SOUTH + backwards = WEST if(verted == -1) var/temp = forwards forwards = backwards From 12d23a061f3c81274b0d3c6f79c5c304fdef099b Mon Sep 17 00:00:00 2001 From: Fox-McCloud Date: Mon, 12 Sep 2016 14:32:10 -0400 Subject: [PATCH 16/52] tweak 2 --- code/datums/uplink_item.dm | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/code/datums/uplink_item.dm b/code/datums/uplink_item.dm index 971b6d49570..8e4621d5400 100644 --- a/code/datums/uplink_item.dm +++ b/code/datums/uplink_item.dm @@ -483,8 +483,7 @@ var/list/uplink_items = list() desc = "A box of two (2) grenades that wreak havoc with the atmosphere of the target area. Capable of engulfing a large area in lit plasma, or N2O. Deploy with extreme caution!" reference = "AGG" item = /obj/item/weapon/storage/box/syndie_kit/atmosgasgrenades - cost = 8 - gamemodes = list(/datum/game_mode/nuclear) + cost = 11 /datum/uplink_item/dangerous/emp name = "EMP Grenades and Implanter Kit" From fb335d3a4f602f7748160f084e4deabc7a467f9e Mon Sep 17 00:00:00 2001 From: GeneralChaos81 Date: Tue, 13 Sep 2016 11:28:28 +1000 Subject: [PATCH 17/52] to_chat and I.forcemove changes. Noticed half (almost exactly) of the conveyors weren't synced to their levers, so put Spawn(5) back in. --- code/modules/recycling/conveyor2.dm | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/code/modules/recycling/conveyor2.dm b/code/modules/recycling/conveyor2.dm index 81c171d4031..39a4b1b86e8 100644 --- a/code/modules/recycling/conveyor2.dm +++ b/code/modules/recycling/conveyor2.dm @@ -131,20 +131,19 @@ var/obj/item/conveyor_construct/C = new/obj/item/conveyor_construct(src.loc) C.id = id transfer_fingerprints_to(C) - user << "You remove the conveyor belt." + to_chat(usr,"You remove the conveyor belt.") qdel(src) else if(istype(I, /obj/item/weapon/wrench)) if(!(stat & BROKEN)) playsound(loc, 'sound/items/Ratchet.ogg', 50, 1) - //setDir(turn(dir,-45)) //No such proc dir = turn(dir,-45) update_move_direction() - user << "You rotate [src]." + to_chat(user, "You rotate [src].") else if(user.a_intent != "harm") if(user.drop_item()) - I.loc = src.loc + I.forceMove(loc) else return ..() @@ -220,10 +219,11 @@ id = newid update() - conveyors = list() - for(var/obj/machinery/conveyor/C in machines) - if(C.id == id) - conveyors += C + spawn(5) + conveyors = list() + for(var/obj/machinery/conveyor/C in machines) + if(C.id == id) + conveyors += C // update the icon depending on the position @@ -250,7 +250,7 @@ CHECK_TICK /obj/machinery/conveyor_switch/oneway - convdir = 1 //Set to 1 or -1 depending on which way you want the convayor to go. (In other words keep at 1 and set the proper dir on the belts.) + convdir = 1 //Set to 1 or -1 depending on which way you want the convayor to go. (In other words keep at 1 and set the proper dir on the belts.) - Cargo uses a reverse belt. // attack with hand, switch position /obj/machinery/conveyor_switch/attack_hand(mob/user) @@ -288,7 +288,7 @@ var/obj/item/conveyor_switch_construct/C = new/obj/item/conveyor_switch_construct(src.loc) C.id = id transfer_fingerprints_to(C) - user << "You deattach the conveyor switch." + to_chat(user,"You deattach the conveyor switch.") qdel(src) else if(istype(I, /obj/item/device/multitool)) @@ -325,7 +325,7 @@ /obj/item/conveyor_construct/attackby(obj/item/I, mob/user, params) ..() if(istype(I, /obj/item/conveyor_switch_construct)) - user << "You link the switch to the conveyor belt assembly." + to_chat(user, "You link the switch to the conveyor belt assembly.") var/obj/item/conveyor_switch_construct/C = I id = C.id @@ -334,7 +334,7 @@ return var/cdir = get_dir(A, user) if(A == user.loc) - user << "You cannot place a conveyor belt under yourself." + to_chat(user, "You cannot place a conveyor belt under yourself.") return var/obj/machinery/conveyor/C = new/obj/machinery/conveyor(A,cdir) C.id = id @@ -362,7 +362,7 @@ found = 1 break if(!found) - user << "\icon[src]The conveyor switch did not detect any linked conveyor belts in range." + to_chat(usr, "\icon[src]The conveyor switch did not detect any linked conveyor belts in range.") return var/obj/machinery/conveyor_switch/NC = new/obj/machinery/conveyor_switch(A, id) transfer_fingerprints_to(NC) From 9112d5cf85cf66dfe7c7682522e8e1e59d4e7ef0 Mon Sep 17 00:00:00 2001 From: GeneralChaos81 Date: Thu, 15 Sep 2016 11:18:23 +1000 Subject: [PATCH 18/52] removed redundant setmove proc. Put directions back the the original setup, which was correct --- code/modules/recycling/conveyor2.dm | 19 +++++++------------ 1 file changed, 7 insertions(+), 12 deletions(-) diff --git a/code/modules/recycling/conveyor2.dm b/code/modules/recycling/conveyor2.dm index 39a4b1b86e8..2a36ba585df 100644 --- a/code/modules/recycling/conveyor2.dm +++ b/code/modules/recycling/conveyor2.dm @@ -28,7 +28,7 @@ /obj/machinery/conveyor/auto/New(loc, newdir) ..(loc, newdir) operating = 1 - setmove() + update_move_direction() /obj/machinery/conveyor/auto/update() if(stat & BROKEN) @@ -68,15 +68,15 @@ if(NORTHEAST) forwards = EAST backwards = SOUTH + if(NORTHWEST) + forwards = SOUTH + backwards = WEST if(SOUTHEAST) forwards = NORTH backwards = EAST if(SOUTHWEST) forwards = WEST backwards = NORTH - if(NORTHWEST) - forwards = SOUTH - backwards = WEST if(verted == -1) var/temp = forwards forwards = backwards @@ -87,12 +87,6 @@ movedir = backwards update() -/obj/machinery/conveyor/proc/setmove() - if(operating == 1) - movedir = forwards - else - movedir = backwards - update() /obj/machinery/conveyor/proc/update() if(stat & BROKEN) @@ -225,6 +219,7 @@ if(C.id == id) conveyors += C + // update the icon depending on the position /obj/machinery/conveyor_switch/proc/update() @@ -246,7 +241,7 @@ for(var/obj/machinery/conveyor/C in conveyors) C.operating = position - C.setmove() + C.update_move_direction() CHECK_TICK /obj/machinery/conveyor_switch/oneway @@ -254,7 +249,7 @@ // attack with hand, switch position /obj/machinery/conveyor_switch/attack_hand(mob/user) - if(!allowed(user)) //this is in Para but not TG. I don't think there's any which are coded anyway. + if(!allowed(user)) //this is in Para but not TG. I don't think there's any which are set anyway. to_chat(user, "Access denied.") return add_fingerprint(user) From 47912cfd4380c0495ce0c4c15550fba60743ecf7 Mon Sep 17 00:00:00 2001 From: shazbot194 Date: Wed, 14 Sep 2016 20:11:38 -0800 Subject: [PATCH 19/52] Small fixes for foam force weapons -Adds a new icon for the toy tommy gun with a blue muzzle, so it doesn't have to use the real tommy gun's icon or what is was using, nothing. -fixes the rounding on the toy smg so it now doesn't have an invisable magazine when loaded and displays the correct amount of ammo. --- .../projectiles/ammunition/magazines.dm | 2 +- .../projectiles/guns/projectile/toy.dm | 4 ++-- icons/obj/guns/toy.dmi | Bin 2484 -> 2672 bytes 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/code/modules/projectiles/ammunition/magazines.dm b/code/modules/projectiles/ammunition/magazines.dm index a5eafacba51..139126fe2c2 100644 --- a/code/modules/projectiles/ammunition/magazines.dm +++ b/code/modules/projectiles/ammunition/magazines.dm @@ -378,7 +378,7 @@ /obj/item/ammo_box/magazine/toy/smg/update_icon() ..() - icon_state = "smg9mm-[round(ammo_count(),5)]" + icon_state = "smg9mm-[round(ammo_count()+1,4)*6/4]" /obj/item/ammo_box/magazine/toy/smg/riot ammo_type = /obj/item/ammo_casing/caseless/foam_dart/riot diff --git a/code/modules/projectiles/guns/projectile/toy.dm b/code/modules/projectiles/guns/projectile/toy.dm index 4efeb570e0f..809647e4186 100644 --- a/code/modules/projectiles/guns/projectile/toy.dm +++ b/code/modules/projectiles/guns/projectile/toy.dm @@ -92,8 +92,8 @@ /obj/item/weapon/gun/projectile/shotgun/toy/tommygun name = "tommy gun" desc = "Looks almost like the real thing! Great for practicing Drive-bys. Ages 8 and up." - icon = 'icons/obj/guns/projectile.dmi' - icon_state = "tommy" + icon = 'icons/obj/guns/toy.dmi' + icon_state = "tommygun" item_state = "shotgun" mag_type = /obj/item/ammo_box/magazine/internal/shot/toy/tommygun w_class = 2 diff --git a/icons/obj/guns/toy.dmi b/icons/obj/guns/toy.dmi index d05231e7718b8e09fbc17999dce5647122258bc0..c832bb3670addd818247b2da280f846dd854db9c 100644 GIT binary patch delta 2412 zcmV-y36u7;6Yvy}BmqZ}CH;R74-dAswxOY+Ra8`zl$26ZQdCq_QBhG$OiYA^DIXOE!J3c->KR-V@IyyKwI7>@QNl8gDF)>wBQ%y}xPft$@3JMYu5==UP6aWAK z0d!JMQvg8b*k%9#0Tp^wSad{Xb7OL8aCB*JZU6vy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5-`qxe`Lep{rgyz6c8N0Mgqop zrNDp~Q1O7T-@lG*n+AUX$FGrqabA5!lGizzS0DPQc^ZCFIprR=C0>1GkD7&f6h#mO zK@bE%5F|55(f@Rz1oGjm+zH8tk|!J+B~Lgu#-&aO`ARxU-9$8C;*G|r8jEVucZGcH zFvit!r$fluIBv)ByI92#)fZKOeC(Z{pMN^9{`Ki^y42%hh<<%P z*+;{ONm$r`6ZQu+N&SLx_T>u^?^x7;8u@S1`#NcTtB)b(#aSmNUy%b|TzrMMy5ufe z;DD2F(0AkdIQen3r~zpQext(@5+=UP7dPN!GI0VXKgNjahx7QnAiax=9{cmXWqeH2 xoE~I1PEyW%5R4-@FARnMUjzt(AP9o^{15ptQiP)O9Etz{002ovPDHLkV1i%3NCE%= From c856472ff79a21a2ce7e216c4f5e99e018eb62b9 Mon Sep 17 00:00:00 2001 From: Fox-McCloud Date: Thu, 15 Sep 2016 01:25:37 -0400 Subject: [PATCH 20/52] Fixes Alert Images --- code/modules/mob/dead/observer/observer.dm | 3 +++ code/modules/mob/mob_helpers.dm | 4 ++++ 2 files changed, 7 insertions(+) diff --git a/code/modules/mob/dead/observer/observer.dm b/code/modules/mob/dead/observer/observer.dm index 11f0b3a11f4..a1fc5699d62 100644 --- a/code/modules/mob/dead/observer/observer.dm +++ b/code/modules/mob/dead/observer/observer.dm @@ -274,9 +274,12 @@ This is the proc mobs get to turn into a ghost. Forked from ghostize due to comp A.icon = ui_style2icon(client.prefs.UI_style) A.desc = message var/old_layer = source.layer + var/old_plane = source.plane source.layer = FLOAT_LAYER + source.plane = FLOAT_PLANE A.overlays += source source.layer = old_layer + source.plane = old_plane to_chat(src, "(Click to re-enter)") if(sound) src << sound(sound) diff --git a/code/modules/mob/mob_helpers.dm b/code/modules/mob/mob_helpers.dm index a8025091a05..2108760c589 100644 --- a/code/modules/mob/mob_helpers.dm +++ b/code/modules/mob/mob_helpers.dm @@ -456,11 +456,15 @@ var/list/intents = list(I_HELP,I_DISARM,I_GRAB,I_HARM) A.jump_target = source if(!alert_overlay) var/old_layer = source.layer + var/old_plane = source.plane source.layer = FLOAT_LAYER + source.plane = FLOAT_PLANE A.overlays += source source.layer = old_layer + source.plane = old_plane else alert_overlay.layer = FLOAT_LAYER + alert_overlay.plane = FLOAT_PLANE A.overlays += alert_overlay /mob/proc/switch_to_camera(var/obj/machinery/camera/C) From e8be72a101cc46abfb271257316c275cab6ef166 Mon Sep 17 00:00:00 2001 From: Codingale Date: Tue, 20 Sep 2016 23:17:19 -0400 Subject: [PATCH 21/52] Update COPYING Inc. Goonstation to license. --- COPYING | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/COPYING b/COPYING index 5c2d485924d..a4192d74542 100644 --- a/COPYING +++ b/COPYING @@ -1,5 +1,5 @@ Paradise -Copyright (C) 2010-2014 Paradise, Baystation12 and tgstation13. +Copyright (C) 2010-2016 Paradise, Baystation12, Goonstation and tgstation13. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -13,3 +13,7 @@ GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see . + + + +Any files located in the Paradise/goon, Paradise/icons/goonstation, or Paradise/sound/goonstation directories, or any subdirectories of mentioned directories are licensed under the Creative Commons 3.0 BY-NC-SA license (https://creativecommons.org/licenses/by-nc-sa/3.0) from Goonstation. From 62cd6c77017d7c3ee199c134824b15f8af19b28d Mon Sep 17 00:00:00 2001 From: Codingale Date: Tue, 20 Sep 2016 23:19:52 -0400 Subject: [PATCH 22/52] Create LICENSE-CC-BY-NC-SA.txt Inc. copy of Creative Commons Attribution, ShareAlike, No Commercial, 3.0. As reference for Goon license. --- LICENSE-CC-BY-NC-SA.txt | 60 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 60 insertions(+) create mode 100644 LICENSE-CC-BY-NC-SA.txt diff --git a/LICENSE-CC-BY-NC-SA.txt b/LICENSE-CC-BY-NC-SA.txt new file mode 100644 index 00000000000..860915c5c0e --- /dev/null +++ b/LICENSE-CC-BY-NC-SA.txt @@ -0,0 +1,60 @@ +THE WORK (AS DEFINED BELOW) IS PROVIDED UNDER THE TERMS OF THIS CREATIVE COMMONS PUBLIC LICENSE ("CCPL" OR "LICENSE"). THE WORK IS PROTECTED BY COPYRIGHT AND/OR OTHER APPLICABLE LAW. ANY USE OF THE WORK OTHER THAN AS AUTHORIZED UNDER THIS LICENSE OR COPYRIGHT LAW IS PROHIBITED. + +BY EXERCISING ANY RIGHTS TO THE WORK PROVIDED HERE, YOU ACCEPT AND AGREE TO BE BOUND BY THE TERMS OF THIS LICENSE. TO THE EXTENT THIS LICENSE MAY BE CONSIDERED TO BE A CONTRACT, THE LICENSOR GRANTS YOU THE RIGHTS CONTAINED HERE IN CONSIDERATION OF YOUR ACCEPTANCE OF SUCH TERMS AND CONDITIONS. + +1. Definitions + + "Adaptation" means a work based upon the Work, or upon the Work and other pre-existing works, such as a translation, adaptation, derivative work, arrangement of music or other alterations of a literary or artistic work, or phonogram or performance and includes cinematographic adaptations or any other form in which the Work may be recast, transformed, or adapted including in any form recognizably derived from the original, except that a work that constitutes a Collection will not be considered an Adaptation for the purpose of this License. For the avoidance of doubt, where the Work is a musical work, performance or phonogram, the synchronization of the Work in timed-relation with a moving image ("synching") will be considered an Adaptation for the purpose of this License. + "Collection" means a collection of literary or artistic works, such as encyclopedias and anthologies, or performances, phonograms or broadcasts, or other works or subject matter other than works listed in Section 1(g) below, which, by reason of the selection and arrangement of their contents, constitute intellectual creations, in which the Work is included in its entirety in unmodified form along with one or more other contributions, each constituting separate and independent works in themselves, which together are assembled into a collective whole. A work that constitutes a Collection will not be considered an Adaptation (as defined above) for the purposes of this License. + "Distribute" means to make available to the public the original and copies of the Work or Adaptation, as appropriate, through sale or other transfer of ownership. + "License Elements" means the following high-level license attributes as selected by Licensor and indicated in the title of this License: Attribution, Noncommercial, ShareAlike. + "Licensor" means the individual, individuals, entity or entities that offer(s) the Work under the terms of this License. + "Original Author" means, in the case of a literary or artistic work, the individual, individuals, entity or entities who created the Work or if no individual or entity can be identified, the publisher; and in addition (i) in the case of a performance the actors, singers, musicians, dancers, and other persons who act, sing, deliver, declaim, play in, interpret or otherwise perform literary or artistic works or expressions of folklore; (ii) in the case of a phonogram the producer being the person or legal entity who first fixes the sounds of a performance or other sounds; and, (iii) in the case of broadcasts, the organization that transmits the broadcast. + "Work" means the literary and/or artistic work offered under the terms of this License including without limitation any production in the literary, scientific and artistic domain, whatever may be the mode or form of its expression including digital form, such as a book, pamphlet and other writing; a lecture, address, sermon or other work of the same nature; a dramatic or dramatico-musical work; a choreographic work or entertainment in dumb show; a musical composition with or without words; a cinematographic work to which are assimilated works expressed by a process analogous to cinematography; a work of drawing, painting, architecture, sculpture, engraving or lithography; a photographic work to which are assimilated works expressed by a process analogous to photography; a work of applied art; an illustration, map, plan, sketch or three-dimensional work relative to geography, topography, architecture or science; a performance; a broadcast; a phonogram; a compilation of data to the extent it is protected as a copyrightable work; or a work performed by a variety or circus performer to the extent it is not otherwise considered a literary or artistic work. + "You" means an individual or entity exercising rights under this License who has not previously violated the terms of this License with respect to the Work, or who has received express permission from the Licensor to exercise rights under this License despite a previous violation. + "Publicly Perform" means to perform public recitations of the Work and to communicate to the public those public recitations, by any means or process, including by wire or wireless means or public digital performances; to make available to the public Works in such a way that members of the public may access these Works from a place and at a place individually chosen by them; to perform the Work to the public by any means or process and the communication to the public of the performances of the Work, including by public digital performance; to broadcast and rebroadcast the Work by any means including signs, sounds or images. + "Reproduce" means to make copies of the Work by any means including without limitation by sound or visual recordings and the right of fixation and reproducing fixations of the Work, including storage of a protected performance or phonogram in digital form or other electronic medium. + +2. Fair Dealing Rights. Nothing in this License is intended to reduce, limit, or restrict any uses free from copyright or rights arising from limitations or exceptions that are provided for in connection with the copyright protection under copyright law or other applicable laws. + +3. License Grant. Subject to the terms and conditions of this License, Licensor hereby grants You a worldwide, royalty-free, non-exclusive, perpetual (for the duration of the applicable copyright) license to exercise the rights in the Work as stated below: + + to Reproduce the Work, to incorporate the Work into one or more Collections, and to Reproduce the Work as incorporated in the Collections; + to create and Reproduce Adaptations provided that any such Adaptation, including any translation in any medium, takes reasonable steps to clearly label, demarcate or otherwise identify that changes were made to the original Work. For example, a translation could be marked "The original work was translated from English to Spanish," or a modification could indicate "The original work has been modified."; + to Distribute and Publicly Perform the Work including as incorporated in Collections; and, + to Distribute and Publicly Perform Adaptations. + +The above rights may be exercised in all media and formats whether now known or hereafter devised. The above rights include the right to make such modifications as are technically necessary to exercise the rights in other media and formats. Subject to Section 8(f), all rights not expressly granted by Licensor are hereby reserved, including but not limited to the rights described in Section 4(e). + +4. Restrictions. The license granted in Section 3 above is expressly made subject to and limited by the following restrictions: + + You may Distribute or Publicly Perform the Work only under the terms of this License. You must include a copy of, or the Uniform Resource Identifier (URI) for, this License with every copy of the Work You Distribute or Publicly Perform. You may not offer or impose any terms on the Work that restrict the terms of this License or the ability of the recipient of the Work to exercise the rights granted to that recipient under the terms of the License. You may not sublicense the Work. You must keep intact all notices that refer to this License and to the disclaimer of warranties with every copy of the Work You Distribute or Publicly Perform. When You Distribute or Publicly Perform the Work, You may not impose any effective technological measures on the Work that restrict the ability of a recipient of the Work from You to exercise the rights granted to that recipient under the terms of the License. This Section 4(a) applies to the Work as incorporated in a Collection, but this does not require the Collection apart from the Work itself to be made subject to the terms of this License. If You create a Collection, upon notice from any Licensor You must, to the extent practicable, remove from the Collection any credit as required by Section 4(d), as requested. If You create an Adaptation, upon notice from any Licensor You must, to the extent practicable, remove from the Adaptation any credit as required by Section 4(d), as requested. + You may Distribute or Publicly Perform an Adaptation only under: (i) the terms of this License; (ii) a later version of this License with the same License Elements as this License; (iii) a Creative Commons jurisdiction license (either this or a later license version) that contains the same License Elements as this License (e.g., Attribution-NonCommercial-ShareAlike 3.0 US) ("Applicable License"). You must include a copy of, or the URI, for Applicable License with every copy of each Adaptation You Distribute or Publicly Perform. You may not offer or impose any terms on the Adaptation that restrict the terms of the Applicable License or the ability of the recipient of the Adaptation to exercise the rights granted to that recipient under the terms of the Applicable License. You must keep intact all notices that refer to the Applicable License and to the disclaimer of warranties with every copy of the Work as included in the Adaptation You Distribute or Publicly Perform. When You Distribute or Publicly Perform the Adaptation, You may not impose any effective technological measures on the Adaptation that restrict the ability of a recipient of the Adaptation from You to exercise the rights granted to that recipient under the terms of the Applicable License. This Section 4(b) applies to the Adaptation as incorporated in a Collection, but this does not require the Collection apart from the Adaptation itself to be made subject to the terms of the Applicable License. + You may not exercise any of the rights granted to You in Section 3 above in any manner that is primarily intended for or directed toward commercial advantage or private monetary compensation. The exchange of the Work for other copyrighted works by means of digital file-sharing or otherwise shall not be considered to be intended for or directed toward commercial advantage or private monetary compensation, provided there is no payment of any monetary compensation in con-nection with the exchange of copyrighted works. + If You Distribute, or Publicly Perform the Work or any Adaptations or Collections, You must, unless a request has been made pursuant to Section 4(a), keep intact all copyright notices for the Work and provide, reasonable to the medium or means You are utilizing: (i) the name of the Original Author (or pseudonym, if applicable) if supplied, and/or if the Original Author and/or Licensor designate another party or parties (e.g., a sponsor institute, publishing entity, journal) for attribution ("Attribution Parties") in Licensor's copyright notice, terms of service or by other reasonable means, the name of such party or parties; (ii) the title of the Work if supplied; (iii) to the extent reasonably practicable, the URI, if any, that Licensor specifies to be associated with the Work, unless such URI does not refer to the copyright notice or licensing information for the Work; and, (iv) consistent with Section 3(b), in the case of an Adaptation, a credit identifying the use of the Work in the Adaptation (e.g., "French translation of the Work by Original Author," or "Screenplay based on original Work by Original Author"). The credit required by this Section 4(d) may be implemented in any reasonable manner; provided, however, that in the case of a Adaptation or Collection, at a minimum such credit will appear, if a credit for all contributing authors of the Adaptation or Collection appears, then as part of these credits and in a manner at least as prominent as the credits for the other contributing authors. For the avoidance of doubt, You may only use the credit required by this Section for the purpose of attribution in the manner set out above and, by exercising Your rights under this License, You may not implicitly or explicitly assert or imply any connection with, sponsorship or endorsement by the Original Author, Licensor and/or Attribution Parties, as appropriate, of You or Your use of the Work, without the separate, express prior written permission of the Original Author, Licensor and/or Attribution Parties. + + For the avoidance of doubt: + Non-waivable Compulsory License Schemes. In those jurisdictions in which the right to collect royalties through any statutory or compulsory licensing scheme cannot be waived, the Licensor reserves the exclusive right to collect such royalties for any exercise by You of the rights granted under this License; + Waivable Compulsory License Schemes. In those jurisdictions in which the right to collect royalties through any statutory or compulsory licensing scheme can be waived, the Licensor reserves the exclusive right to collect such royalties for any exercise by You of the rights granted under this License if Your exercise of such rights is for a purpose or use which is otherwise than noncommercial as permitted under Section 4(c) and otherwise waives the right to collect royalties through any statutory or compulsory licensing scheme; and, + Voluntary License Schemes. The Licensor reserves the right to collect royalties, whether individually or, in the event that the Licensor is a member of a collecting society that administers voluntary licensing schemes, via that society, from any exercise by You of the rights granted under this License that is for a purpose or use which is otherwise than noncommercial as permitted under Section 4(c). + Except as otherwise agreed in writing by the Licensor or as may be otherwise permitted by applicable law, if You Reproduce, Distribute or Publicly Perform the Work either by itself or as part of any Adaptations or Collections, You must not distort, mutilate, modify or take other derogatory action in relation to the Work which would be prejudicial to the Original Author's honor or reputation. Licensor agrees that in those jurisdictions (e.g. Japan), in which any exercise of the right granted in Section 3(b) of this License (the right to make Adaptations) would be deemed to be a distortion, mutilation, modification or other derogatory action prejudicial to the Original Author's honor and reputation, the Licensor will waive or not assert, as appropriate, this Section, to the fullest extent permitted by the applicable national law, to enable You to reasonably exercise Your right under Section 3(b) of this License (right to make Adaptations) but not otherwise. + +5. Representations, Warranties and Disclaimer + +UNLESS OTHERWISE MUTUALLY AGREED TO BY THE PARTIES IN WRITING AND TO THE FULLEST EXTENT PERMITTED BY APPLICABLE LAW, LICENSOR OFFERS THE WORK AS-IS AND MAKES NO REPRESENTATIONS OR WARRANTIES OF ANY KIND CONCERNING THE WORK, EXPRESS, IMPLIED, STATUTORY OR OTHERWISE, INCLUDING, WITHOUT LIMITATION, WARRANTIES OF TITLE, MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, NONINFRINGEMENT, OR THE ABSENCE OF LATENT OR OTHER DEFECTS, ACCURACY, OR THE PRESENCE OF ABSENCE OF ERRORS, WHETHER OR NOT DISCOVERABLE. SOME JURISDICTIONS DO NOT ALLOW THE EXCLUSION OF IMPLIED WARRANTIES, SO THIS EXCLUSION MAY NOT APPLY TO YOU. + +6. Limitation on Liability. EXCEPT TO THE EXTENT REQUIRED BY APPLICABLE LAW, IN NO EVENT WILL LICENSOR BE LIABLE TO YOU ON ANY LEGAL THEORY FOR ANY SPECIAL, INCIDENTAL, CONSEQUENTIAL, PUNITIVE OR EXEMPLARY DAMAGES ARISING OUT OF THIS LICENSE OR THE USE OF THE WORK, EVEN IF LICENSOR HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. + +7. Termination + + This License and the rights granted hereunder will terminate automatically upon any breach by You of the terms of this License. Individuals or entities who have received Adaptations or Collections from You under this License, however, will not have their licenses terminated provided such individuals or entities remain in full compliance with those licenses. Sections 1, 2, 5, 6, 7, and 8 will survive any termination of this License. + Subject to the above terms and conditions, the license granted here is perpetual (for the duration of the applicable copyright in the Work). Notwithstanding the above, Licensor reserves the right to release the Work under different license terms or to stop distributing the Work at any time; provided, however that any such election will not serve to withdraw this License (or any other license that has been, or is required to be, granted under the terms of this License), and this License will continue in full force and effect unless terminated as stated above. + +8. Miscellaneous + + Each time You Distribute or Publicly Perform the Work or a Collection, the Licensor offers to the recipient a license to the Work on the same terms and conditions as the license granted to You under this License. + Each time You Distribute or Publicly Perform an Adaptation, Licensor offers to the recipient a license to the original Work on the same terms and conditions as the license granted to You under this License. + If any provision of this License is invalid or unenforceable under applicable law, it shall not affect the validity or enforceability of the remainder of the terms of this License, and without further action by the parties to this agreement, such provision shall be reformed to the minimum extent necessary to make such provision valid and enforceable. + No term or provision of this License shall be deemed waived and no breach consented to unless such waiver or consent shall be in writing and signed by the party to be charged with such waiver or consent. + This License constitutes the entire agreement between the parties with respect to the Work licensed here. There are no understandings, agreements or representations with respect to the Work not specified here. Licensor shall not be bound by any additional provisions that may appear in any communication from You. This License may not be modified without the mutual written agreement of the Licensor and You. + The rights granted under, and the subject matter referenced, in this License were drafted utilizing the terminology of the Berne Convention for the Protection of Literary and Artistic Works (as amended on September 28, 1979), the Rome Convention of 1961, the WIPO Copyright Treaty of 1996, the WIPO Performances and Phonograms Treaty of 1996 and the Universal Copyright Convention (as revised on July 24, 1971). These rights and subject matter take effect in the relevant jurisdiction in which the License terms are sought to be enforced according to the corresponding provisions of the implementation of those treaty provisions in the applicable national law. If the standard suite of rights granted under applicable copyright law includes additional rights not granted under this License, such additional rights are deemed to be included in the License; this License is not intended to restrict the license of any rights under applicable law. From 4beac970c6800bab7f23777e688ee2d289559781 Mon Sep 17 00:00:00 2001 From: Codingale Date: Fri, 23 Sep 2016 16:49:20 -0400 Subject: [PATCH 23/52] Fixes #5673 --- code/modules/surgery/organs/blood.dm | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/code/modules/surgery/organs/blood.dm b/code/modules/surgery/organs/blood.dm index eca74a216b2..73c517e5ade 100644 --- a/code/modules/surgery/organs/blood.dm +++ b/code/modules/surgery/organs/blood.dm @@ -231,6 +231,9 @@ var/datum/reagent/blood/injected = get_blood(container.reagents) + if (!istype(injected)) //Sanity.. + return + if(species && species.flags & NO_BLOOD) reagents.add_reagent("blood", amount, injected.data) reagents.update_total() @@ -238,8 +241,16 @@ var/datum/reagent/blood/our = get_blood(vessel) - if(!istype(injected) || !istype(our)) + if(!istype(our)) // Do we not have blood? + vessel.add_reagent("blood", amount, injected.data) // This is only ran once, so we need to add back thier DNA. + vessel.update_total() + ..() + our = get_blood(vessel) // Get the new blood. + our.data["blood_DNA"] = src.dna.unique_enzymes // Give it the proper DNA we had before + our.data["blood_type"] = src.dna.b_type // Proper blood type. + our.data["donor"] = src // Without this, it'd be random each time it was extracted or Null. return + if(blood_incompatible(injected.data["blood_type"],our.data["blood_type"]) ) reagents.add_reagent("toxin",amount * 0.5) reagents.update_total() From f231f8f27aee55e0935710d88346a3e8469e6f78 Mon Sep 17 00:00:00 2001 From: Codingale Date: Fri, 23 Sep 2016 17:10:42 -0400 Subject: [PATCH 24/52] Update blood.dm Conform to agreed upon standards. --- code/modules/surgery/organs/blood.dm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/modules/surgery/organs/blood.dm b/code/modules/surgery/organs/blood.dm index 73c517e5ade..ebabbe8be1f 100644 --- a/code/modules/surgery/organs/blood.dm +++ b/code/modules/surgery/organs/blood.dm @@ -231,7 +231,7 @@ var/datum/reagent/blood/injected = get_blood(container.reagents) - if (!istype(injected)) //Sanity.. + if(!istype(injected)) //Sanity.. return if(species && species.flags & NO_BLOOD) From 79b527d82b1d8c7abfd6056eef053ac6f086efc8 Mon Sep 17 00:00:00 2001 From: Codingale Date: Sat, 24 Sep 2016 08:55:33 -0400 Subject: [PATCH 25/52] Modify to implied src Corrected typo in comment. Modified not to use src. --- code/modules/surgery/organs/blood.dm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/code/modules/surgery/organs/blood.dm b/code/modules/surgery/organs/blood.dm index ebabbe8be1f..9034393bfe2 100644 --- a/code/modules/surgery/organs/blood.dm +++ b/code/modules/surgery/organs/blood.dm @@ -242,12 +242,12 @@ var/datum/reagent/blood/our = get_blood(vessel) if(!istype(our)) // Do we not have blood? - vessel.add_reagent("blood", amount, injected.data) // This is only ran once, so we need to add back thier DNA. + vessel.add_reagent("blood", amount, injected.data) // This is only ran once, so we need to add back their DNA. vessel.update_total() ..() our = get_blood(vessel) // Get the new blood. - our.data["blood_DNA"] = src.dna.unique_enzymes // Give it the proper DNA we had before - our.data["blood_type"] = src.dna.b_type // Proper blood type. + our.data["blood_DNA"] = dna.unique_enzymes // Give it the proper DNA we had before (src.dna) + our.data["blood_type"] = dna.b_type // Proper blood type. our.data["donor"] = src // Without this, it'd be random each time it was extracted or Null. return From b6fef2185c9874ab1aac233bf472f21faeb35146 Mon Sep 17 00:00:00 2001 From: shazbot194 Date: Sun, 25 Sep 2016 01:45:38 -0800 Subject: [PATCH 26/52] Changed the way smg & toy icon updates. Switched from using math to fit the icon's name to having the icon's name fit the math, also changed the normal SMG's mag so it can also updates properly. --- .../projectiles/ammunition/magazines.dm | 6 +++--- icons/obj/ammo.dmi | Bin 24099 -> 24289 bytes 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/code/modules/projectiles/ammunition/magazines.dm b/code/modules/projectiles/ammunition/magazines.dm index 139126fe2c2..0f587c54bf4 100644 --- a/code/modules/projectiles/ammunition/magazines.dm +++ b/code/modules/projectiles/ammunition/magazines.dm @@ -269,7 +269,7 @@ /obj/item/ammo_box/magazine/smgm9mm/update_icon() ..() - icon_state = "[initial(icon_state)]-[round(ammo_count(),6)]" + icon_state = "[initial(icon_state)]-[round(ammo_count()+1,4)]" /obj/item/ammo_box/magazine/pistolm9mm name = "pistol magazine (9mm)" @@ -373,12 +373,12 @@ /obj/item/ammo_box/magazine/toy/smg name = "foam force SMG magazine" - icon_state = "smg9mm-30" + icon_state = "smg9mm-20" max_ammo = 20 /obj/item/ammo_box/magazine/toy/smg/update_icon() ..() - icon_state = "smg9mm-[round(ammo_count()+1,4)*6/4]" + icon_state = "smg9mm-[round(ammo_count()+1,4)]" /obj/item/ammo_box/magazine/toy/smg/riot ammo_type = /obj/item/ammo_casing/caseless/foam_dart/riot diff --git a/icons/obj/ammo.dmi b/icons/obj/ammo.dmi index b6bbd8ab349323993bbbeb6690685be217bb0b51..a7db164c0fc06ad2f8a97d2cf108edee8f6de3f1 100644 GIT binary patch delta 3816 zcmX|>c{tS3_s2g>rtD;wGBF7uW#6~4FOel=UlJ*irEH%`(ugcEMQE~wvNcJv4%xD2 z4MP}v*2y|%%zX9zE%%ReU(dbwIp;j@bMDEnr<-k{OM%n*q+Wo7fXhQ`6+cmh6_IPQ zUpx5GjJz|$>qBA9*F>uNj*4s7`d(?W_0;&tyslx@{2f&bvM93eZ}Z(y(%%&-eey7O zv2wGmQ3JZ__F<_q|I%Mi{E@FCzSiyRB%+IaH>4)Be@}nv#47Af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F!9H)^sV&XAe`vt5XRqSa)1`~A?-zz6$JRKr>)>6t8T;f>#m_*M#D4(3w(QaX From 755b282b6d260f238c086c6190dc4063333a24ca Mon Sep 17 00:00:00 2001 From: FalseIncarnate Date: Mon, 26 Sep 2016 23:48:50 -0400 Subject: [PATCH 27/52] Arcade duplication fix Arcade machines should no longer spawn additional arcade machines after spawning additional arcade machines after spawning additional... --- code/modules/arcade/arcade_base.dm | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/code/modules/arcade/arcade_base.dm b/code/modules/arcade/arcade_base.dm index d886fa3f4be..b40e935422a 100644 --- a/code/modules/arcade/arcade_base.dm +++ b/code/modules/arcade/arcade_base.dm @@ -12,13 +12,14 @@ var/freeplay = 0 //for debugging and admin kindness var/token_price = 0 var/last_winner = null //for letting people who to hunt down and steal prizes from - var/window_name = "arcade" //in case you want to change the window name for certain machines + var/window_name = "arcade" //the window name for arcade machines (also prevents New() from spawning a new machine, so make sure you change this for subtypes) /obj/machinery/arcade/New() ..() - var/choice = pick(subtypesof(/obj/machinery/arcade)) - new choice(loc) - qdel(src) + if(window_name == "arcade") //if the window_name is not changed, this will assume it is the base type and spawn a new subtype machine in its place. + var/choice = pick(subtypesof(/obj/machinery/arcade)) + new choice(loc) + qdel(src) /obj/machinery/arcade/examine(mob/user) ..(user) @@ -76,7 +77,7 @@ if(pay_with_cash(C, user)) tokens += 1 return - if(panel_open&& component_parts && istype(O, /obj/item/weapon/crowbar)) + if(panel_open && component_parts && istype(O, /obj/item/weapon/crowbar)) default_deconstruction_crowbar(O) /obj/machinery/arcade/update_icon() From 11a37ae96019e23ad96fd9d8a2256b8115d00d44 Mon Sep 17 00:00:00 2001 From: Crazylemon64 Date: Tue, 13 Sep 2016 17:10:34 -0700 Subject: [PATCH 28/52] Should make the rnd console less prone to freezing "wait_message" is now guaranteed to be unset provided that the timer controller doesn't go down, and it'll be reset anyways by the `spawn` if nothing runtimes in there --- code/controllers/Processes/timer.dm | 5 ++ code/modules/research/rdconsole.dm | 133 +++++++++++++++++----------- 2 files changed, 88 insertions(+), 50 deletions(-) diff --git a/code/controllers/Processes/timer.dm b/code/controllers/Processes/timer.dm index 711412608ba..2e60f8752b8 100644 --- a/code/controllers/Processes/timer.dm +++ b/code/controllers/Processes/timer.dm @@ -79,6 +79,11 @@ var/global/datum/controller/process/timer/timer_master return event.id /proc/deltimer(id) + if(id == 0) + // No event will correspond to an id of 0 - the timer does not exist + // Save us a possibly expensive iteration through the timer list + // This would probably be more efficient in general if we used an associative list instead + return 0 for(var/datum/timedevent/event in timer_master.processing_timers) if(event.id == id) qdel(event) diff --git a/code/modules/research/rdconsole.dm b/code/modules/research/rdconsole.dm index cc6d48dc269..84fc3573bae 100644 --- a/code/modules/research/rdconsole.dm +++ b/code/modules/research/rdconsole.dm @@ -31,6 +31,18 @@ won't update every console in existence) but it's more of a hassle to do. Also, */ +// Who likes #defines? +// I don't! +// but I gotta add 'em anyways because we have a bias against /const statements for some reason +#define TECH_UPDATE_DELAY 50 +#define DESIGN_UPDATE_DELAY 50 +#define PROTOLATHE_CONSTRUCT_DELAY 32 +#define SYNC_RESEARCH_DELAY 30 +#define DECONSTRUCT_DELAY 24 +#define SYNC_DEVICE_DELAY 20 +#define RESET_RESEARCH_DELAY 20 +#define IMPRINTER_DELAY 16 + /obj/machinery/computer/rdconsole name = "\improper R&D console" icon_screen = "rdcomp" @@ -50,6 +62,7 @@ won't update every console in existence) but it's more of a hassle to do. Also, var/menu = 0 // Current menu. var/submenu = 0 var/wait_message = 0 + var/wait_message_timer = 0 var/id = 0 //ID of the computer (for server restrictions). var/sync = 1 //If sync = 0, it doesn't show up on Server Control Console @@ -139,6 +152,17 @@ won't update every console in existence) but it's more of a hassle to do. Also, ..() SyncRDevices() +/obj/machinery/computer/rdconsole/Destroy() + if(wait_message_timer) + deltimer(wait_message_timer) + wait_message_timer = 0 + return ..() + +/* Instead of calling this every tick, it is only being called when needed +/obj/machinery/computer/rdconsole/process() + griefProtection() +*/ + /obj/machinery/computer/rdconsole/attackby(var/obj/item/weapon/D as obj, var/mob/user as mob, params) //Loading a disk into it. @@ -206,9 +230,9 @@ won't update every console in existence) but it's more of a hassle to do. Also, selected_category = "Viewing Category [href_list["category"]]" else if(href_list["updt_tech"]) //Update the research holder with information from the technology disk. - wait_message = "Updating Database...." - spawn(50) - wait_message = 0 + add_wait_message("Updating Database...", TECH_UPDATE_DELAY) + spawn(TECH_UPDATE_DELAY) + clear_wait_message() files.AddTech2Known(t_disk.stored) nanomanager.update_uis(src) griefProtection() //Update centcom too @@ -231,9 +255,9 @@ won't update every console in existence) but it's more of a hassle to do. Also, submenu = 0 else if(href_list["updt_design"]) //Updates the research holder with design data from the design disk. - wait_message = "Updating Database...." - spawn(50) - wait_message = 0 + add_wait_message("Updating Database...", DESIGN_UPDATE_DELAY) + spawn(DESIGN_UPDATE_DELAY) + clear_wait_message() files.AddDesign2Known(d_disk.blueprint) nanomanager.update_uis(src) griefProtection() //Update centcom too @@ -252,7 +276,7 @@ won't update every console in existence) but it's more of a hassle to do. Also, else if(href_list["copy_design"]) //Copy design data from the research holder to the design disk. // This href ALSO makes me very nervous var/datum/design/D = files.known_designs[href_list["copy_design_ID"]] - if(D) + if(D) // eeeeeep design datums are global be careful! var/autolathe_friendly = 1 for(var/x in D.materials) @@ -299,16 +323,16 @@ won't update every console in existence) but it's more of a hassle to do. Also, var/choice = input("Proceeding will destroy loaded item.") in list("Proceed", "Cancel") if(choice == "Cancel" || !linked_destroy) return linked_destroy.busy = 1 - wait_message = "Processing and Updating Database..." + add_wait_message("Processing and Updating Database...", DECONSTRUCT_DELAY) nanomanager.update_uis(src) flick("d_analyzer_process", linked_destroy) - spawn(24) + spawn(DECONSTRUCT_DELAY) + clear_wait_message() if(linked_destroy) linked_destroy.busy = 0 if(!linked_destroy.hacked) if(!linked_destroy.loaded_item) to_chat(usr, "The destructive analyzer appears to be empty.") - wait_message = 0 menu = 0 submenu = 0 return @@ -318,19 +342,16 @@ won't update every console in existence) but it's more of a hassle to do. Also, if(prob(linked_destroy.loaded_item.reliability)) //If deconstructed item is not reliable enough its just being wasted, else it is pocessed files.UpdateTech(T, temp_tech[T]) //Check if deconstructed item has research levels higher/same/one less than current ones files.UpdateDesigns(linked_destroy.loaded_item, temp_tech, src) //If if such reseach type found all the known designs are checked for having this research type in them - wait_message = 0 //If design have it it gains some reliability - menu = 0 + menu = 0 //If design have it it gains some reliability submenu = 0 else //Same design always gain quality - wait_message = 0 //Crit fail gives the same design a lot of reliability, like really a lot - menu = 2 + menu = 2 //Crit fail gives the same design a lot of reliability, like really a lot submenu = 0 if(linked_lathe) //Also sends salvaged materials to a linked protolathe, if any. for(var/material in linked_destroy.loaded_item.materials) linked_lathe.materials.insert_amount(min((linked_lathe.materials.max_amount - linked_lathe.materials.total_amount), (linked_destroy.loaded_item.materials[material]*(linked_destroy.decon_mod/10))), material) linked_destroy.loaded_item = null else - wait_message = 0 menu = 0 submenu = 0 for(var/obj/I in linked_destroy.contents) @@ -352,26 +373,26 @@ won't update every console in existence) but it's more of a hassle to do. Also, nanomanager.update_uis(src) else if(href_list["sync"]) //Sync the research holder with all the R&D consoles in the game that aren't sync protected. - wait_message = "Updating Database...." if(!sync) to_chat(usr, "You must connect to the network first!") else + add_wait_message("Updating Database...", SYNC_RESEARCH_DELAY) griefProtection() //Putting this here because I dont trust the sync process - spawn(30) + spawn(SYNC_RESEARCH_DELAY) + clear_wait_message() if(src) for(var/obj/machinery/r_n_d/server/S in world) var/server_processed = 0 if(S.disabled) continue - if((id in S.id_with_upload) || istype(S, /obj/machinery/r_n_d/server/centcom)) + if((id in S.id_with_upload) || istype(S, /obj/machinery/r_n_d/server/centcom)) files.push_data(S.files) server_processed = 1 - if(((id in S.id_with_download) && !istype(S, /obj/machinery/r_n_d/server/centcom)) || S.hacked) + if(((id in S.id_with_download) && !istype(S, /obj/machinery/r_n_d/server/centcom)) || S.hacked) S.files.push_data(files) server_processed = 1 if(!istype(S, /obj/machinery/r_n_d/server/centcom) && server_processed) S.produce_heat(100) - wait_message = 0 nanomanager.update_uis(src) else if(href_list["togglesync"]) //Prevents the console from being synced by other consoles. Can still send data. @@ -393,7 +414,6 @@ won't update every console in existence) but it's more of a hassle to do. Also, for(var/M in being_built.materials) power += round(being_built.materials[M] * amount / 5) power = max(2000, power) - wait_message = "Constructing Prototype. Please Wait..." if(linked_lathe.busy) g2g = 0 var/key = usr.key //so we don't lose the info during the spawn delay @@ -404,7 +424,11 @@ won't update every console in existence) but it's more of a hassle to do. Also, if(g2g) //If input is incorrect, nothing happens + var/time_to_construct = PROTOLATHE_CONSTRUCT_DELAY * amount / coeff var/enough_materials = 1 + + time_to_construct /= being_built.lathe_time_factor + add_wait_message("Constructing Prototype. Please Wait...", time_to_construct) linked_lathe.busy = 1 flick("protolathe_n",linked_lathe) use_power(power) @@ -432,9 +456,7 @@ won't update every console in existence) but it's more of a hassle to do. Also, var/P = being_built.build_path //lets save these values before the spawn() just in case. Nobody likes runtimes. var/O = being_built.locked - coeff *= being_built.lathe_time_factor - - spawn(32*amount/coeff) + spawn(time_to_construct) if(g2g) //And if we only fail the material requirements, we still spend time and power for(var/i = 0, i 2) - dat += "" - line_length = 1 - - dat += "[C]" - line_length++ - - dat += "" - return dat /obj/machinery/computer/rdconsole/core name = "core R&D console" @@ -891,3 +915,12 @@ won't update every console in existence) but it's more of a hassle to do. Also, id = 5 req_access = list() circuit = /obj/item/weapon/circuitboard/rdconsole/public + +#undef TECH_UPDATE_DELAY +#undef DESIGN_UPDATE_DELAY +#undef PROTOLATHE_CONSTRUCT_DELAY +#undef SYNC_RESEARCH_DELAY +#undef DECONSTRUCT_DELAY +#undef SYNC_DEVICE_DELAY +#undef RESET_RESEARCH_DELAY +#undef IMPRINTER_DELAY From 977950b1c22ecc63daef2476fcd954c0b414105b Mon Sep 17 00:00:00 2001 From: FalseIncarnate Date: Wed, 28 Sep 2016 18:57:43 -0400 Subject: [PATCH 29/52] type-check instead of variable check --- code/modules/arcade/arcade_base.dm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/code/modules/arcade/arcade_base.dm b/code/modules/arcade/arcade_base.dm index b40e935422a..3c68c7142f4 100644 --- a/code/modules/arcade/arcade_base.dm +++ b/code/modules/arcade/arcade_base.dm @@ -12,11 +12,11 @@ var/freeplay = 0 //for debugging and admin kindness var/token_price = 0 var/last_winner = null //for letting people who to hunt down and steal prizes from - var/window_name = "arcade" //the window name for arcade machines (also prevents New() from spawning a new machine, so make sure you change this for subtypes) + var/window_name = "arcade" //in case you want to change the window name for certain machines /obj/machinery/arcade/New() ..() - if(window_name == "arcade") //if the window_name is not changed, this will assume it is the base type and spawn a new subtype machine in its place. + if(type == /obj/machinery/arcade) //if you spawn the base-type, it will replace itself with a random subtype for randomness var/choice = pick(subtypesof(/obj/machinery/arcade)) new choice(loc) qdel(src) From 34b0a94763be2c562b94a0b1c57a6534c93a2d30 Mon Sep 17 00:00:00 2001 From: Isaac Erwin Date: Thu, 29 Sep 2016 15:16:12 -0400 Subject: [PATCH 30/52] Tossed out guardians are now respawnable --- code/game/gamemodes/miniantags/guardian/guardian.dm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/game/gamemodes/miniantags/guardian/guardian.dm b/code/game/gamemodes/miniantags/guardian/guardian.dm index 6de3308f75e..69d87a37b7f 100644 --- a/code/game/gamemodes/miniantags/guardian/guardian.dm +++ b/code/game/gamemodes/miniantags/guardian/guardian.dm @@ -195,7 +195,7 @@ to_chat(G, "Your user reset you, and your body was taken over by a ghost. Looks like they weren't happy with your performance.") to_chat(src, "Your guardian has been successfully reset.") message_admins("[key_name_admin(new_stand)] has taken control of ([key_name_admin(G)])") - G.ghostize(0) + G.ghostize() G.key = new_stand.key else to_chat(src, "There were no ghosts willing to take control. Looks like you're stuck with your Guardian for now.") From 0cc8a94d5ddf2fe295f3f05dce41663c2d0ef62c Mon Sep 17 00:00:00 2001 From: Isaac Erwin Date: Tue, 4 Oct 2016 17:49:42 -0400 Subject: [PATCH 31/52] Fine --- code/modules/client/preference/preferences.dm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/modules/client/preference/preferences.dm b/code/modules/client/preference/preferences.dm index 8094ef82966..82f76a04824 100644 --- a/code/modules/client/preference/preferences.dm +++ b/code/modules/client/preference/preferences.dm @@ -1148,7 +1148,7 @@ var/global/list/special_role_times = list( //minimum age (in days) for accounts if("name") var/raw_name = input(user, "Choose your character's name:", "Character Preference") as text|null if(!isnull(raw_name)) // Check to ensure that the user entered text (rather than cancel.) - var/new_name = reject_bad_name(raw_name) + var/new_name = reject_bad_name(raw_name, 1) if(new_name) real_name = new_name else From 176d6cffae0e308f300f6ebaae092d486570699e Mon Sep 17 00:00:00 2001 From: FlattestGuitar Date: Wed, 5 Oct 2016 15:44:01 +0200 Subject: [PATCH 32/52] no more nodrop spam --- code/modules/mob/living/carbon/human/human_organs.dm | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/code/modules/mob/living/carbon/human/human_organs.dm b/code/modules/mob/living/carbon/human/human_organs.dm index 96a23acf5c7..8288c2dbd8b 100644 --- a/code/modules/mob/living/carbon/human/human_organs.dm +++ b/code/modules/mob/living/carbon/human/human_organs.dm @@ -108,11 +108,13 @@ if((E.body_part == HAND_LEFT) || (E.body_part == ARM_LEFT)) if(!l_hand) continue - unEquip(l_hand) + if(!unEquip(l_hand)) + continue else if(!r_hand) continue - unEquip(r_hand) + if(!unEquip(r_hand)) + continue var/emote_scream = pick("screams in pain and ", "lets out a sharp cry and ", "cries out and ") custom_emote(1, "[(species.flags & NO_PAIN) ? "" : emote_scream ]drops what they were holding in their [E.name]!") @@ -122,11 +124,13 @@ if((E.body_part == HAND_LEFT) || (E.body_part == ARM_LEFT)) if(!l_hand) continue - unEquip(l_hand) + if(!unEquip(l_hand)) + continue else if(!r_hand) continue - unEquip(r_hand) + if(!unEquip(r_hand)) + continue custom_emote(1, "drops what they were holding, their [E.name] malfunctioning!") From f07f476a3c60e58195f593896b3bae5f607d8c49 Mon Sep 17 00:00:00 2001 From: FlattestGuitar Date: Fri, 7 Oct 2016 10:56:36 +0200 Subject: [PATCH 33/52] Fixes cluwnes forever --- code/modules/mob/mob_helpers.dm | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/code/modules/mob/mob_helpers.dm b/code/modules/mob/mob_helpers.dm index a8025091a05..1e00e6b31c4 100644 --- a/code/modules/mob/mob_helpers.dm +++ b/code/modules/mob/mob_helpers.dm @@ -510,10 +510,9 @@ var/list/intents = list(I_HELP,I_DISARM,I_GRAB,I_HARM) search_pda = 0 //Fixes renames not being reflected in objective text - var/list/O = subtypesof(/datum/objective) var/length var/pos - for(var/datum/objective/objective in O) + for(var/datum/objective/objective in all_objectives) if(objective.target != mind) continue length = lentext(oldname) pos = findtextEx(objective.explanation_text, oldname) From 7592c65fe09920d71e8194fb3931f8404e48daa4 Mon Sep 17 00:00:00 2001 From: FlattestGuitar Date: Fri, 7 Oct 2016 20:13:24 +0200 Subject: [PATCH 34/52] =?UTF-8?q?=E2=9D=84=EF=B8=8F=20=E2=9D=84=EF=B8=8F?= =?UTF-8?q?=20=E2=9D=84=EF=B8=8F=20=E2=9D=84=EF=B8=8F=20=E2=9D=84=EF=B8=8F?= =?UTF-8?q?=20=E2=9D=84=EF=B8=8F=20=E2=9D=84=EF=B8=8F=20=E2=9D=84=EF=B8=8F?= =?UTF-8?q?=20=E2=9D=84=EF=B8=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- code/datums/uplink_item.dm | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/code/datums/uplink_item.dm b/code/datums/uplink_item.dm index 5f7b5e8237a..11b013718a0 100644 --- a/code/datums/uplink_item.dm +++ b/code/datums/uplink_item.dm @@ -791,7 +791,7 @@ var/list/uplink_items = list() reference = "CHHUD" item = /obj/item/clothing/glasses/hud/security/chameleon cost = 2 - + /datum/uplink_item/stealthy_weapons/chameleonflag name = "Chameleon Flag" desc = "A flag that can be disguised as any other known flag. There is a heat sensitive bomb loaded into the pole that will be detonated if the flag is lit on fire." @@ -1181,6 +1181,9 @@ var/list/uplink_items = list() if(item) if(findtext(item, /obj/item/organ/internal/cyberimp)) return new /obj/item/weapon/storage/box/cyber_implants(loc, item) + U.uses -= max(cost, 0) + U.used_TC += cost + feedback_add_details("traitor_uplink_items_bought", name) //this one and the line before copypasted because snowflaek code else return ..() From 514222b6d7a8ce4598227cdd34d1f749d5a286d0 Mon Sep 17 00:00:00 2001 From: Markolie Date: Sun, 9 Oct 2016 16:36:09 +0200 Subject: [PATCH 35/52] Fixes silicons not having their antag powers/antagHUD removed properly. Fixes traitors/abductors not having their antagHUD added at roundstart. --- code/game/gamemodes/changeling/changeling.dm | 2 +- .../miniantags/abduction/abduction.dm | 17 ++++++- code/game/gamemodes/nuclear/nuclear.dm | 14 +++++- code/game/gamemodes/traitor/traitor.dm | 49 ++++++++++++------- code/game/gamemodes/vampire/vampire.dm | 16 ++++++ code/game/gamemodes/wizard/wizard.dm | 15 +++++- code/modules/mob/living/silicon/login.dm | 11 ++++- .../modules/mob/living/silicon/robot/login.dm | 6 --- 8 files changed, 101 insertions(+), 29 deletions(-) diff --git a/code/game/gamemodes/changeling/changeling.dm b/code/game/gamemodes/changeling/changeling.dm index 9fb2402f889..805db2be393 100644 --- a/code/game/gamemodes/changeling/changeling.dm +++ b/code/game/gamemodes/changeling/changeling.dm @@ -152,7 +152,7 @@ var/list/possible_changeling_IDs = list("Alpha","Beta","Gamma","Delta","Epsilon" changeling_mind.current.remove_changeling_powers() changeling_mind.memory = "" changeling_mind.special_role = null - if(issilicon(changeling_mind)) + if(issilicon(changeling_mind.current)) to_chat(changeling_mind.current, "You have been robotized!") to_chat(changeling_mind.current, "You must obey your silicon laws and master AI above all else. Your objectives will consider you to be dead.") else diff --git a/code/game/gamemodes/miniantags/abduction/abduction.dm b/code/game/gamemodes/miniantags/abduction/abduction.dm index 3e969af60c2..32e4b081e94 100644 --- a/code/game/gamemodes/miniantags/abduction/abduction.dm +++ b/code/game/gamemodes/miniantags/abduction/abduction.dm @@ -119,6 +119,7 @@ equip_common(H,team_number) equip_agent(H,team_number) greet_agent(agent,team_number) + update_abductor_icons_added(agent) scientist = scientists[team_number] H = scientist.current @@ -132,6 +133,8 @@ equip_common(H,team_number) equip_scientist(H,team_number) greet_scientist(scientist,team_number) + update_abductor_icons_added(scientist) + return ..() //Used for create antag buttons @@ -165,7 +168,7 @@ equip_common(H,team_number) equip_agent(H,team_number) greet_agent(agent,team_number) - + update_abductor_icons_added(agent) scientist = scientists[team_number] H = scientist.current @@ -179,6 +182,7 @@ equip_common(H,team_number) equip_scientist(H,team_number) greet_scientist(scientist,team_number) + update_abductor_icons_added(scientist) /datum/abductor //stores abductor's team and whether they're a scientist or agent; since species datums are global, we have to use this, instead. @@ -337,6 +341,17 @@ else return 0 return 0 + +/datum/game_mode/proc/remove_abductor(datum/mind/abductor_mind) + if(abductor_mind in abductors) + ticker.mode.abductors -= abductor_mind + abductor_mind.special_role = null + abductor_mind.current.attack_log += "\[[time_stamp()]\] No longer abductor" + if(issilicon(abductor_mind.current)) + to_chat(abductor_mind.current, "You have been turned into a robot! You are no longer an abductor.") + else + to_chat(abductor_mind.current, "You have been brainwashed! You are no longer an abductor.") + ticker.mode.update_abductor_icons_added(abductor_mind) /datum/game_mode/proc/update_abductor_icons_added(datum/mind/alien_mind) var/datum/atom_hud/antag/hud = huds[ANTAG_HUD_ABDUCTOR] diff --git a/code/game/gamemodes/nuclear/nuclear.dm b/code/game/gamemodes/nuclear/nuclear.dm index 1a607bea3ca..28a5ad2c922 100644 --- a/code/game/gamemodes/nuclear/nuclear.dm +++ b/code/game/gamemodes/nuclear/nuclear.dm @@ -57,7 +57,19 @@ proc/issyndicate(mob/living/M as mob) /datum/game_mode/nuclear/pre_setup() return 1 - +/datum/game_mode/proc/remove_operative(datum/mind/operative_mind) + if(operative_mind in syndicates) + ticker.mode.syndicates -= operative_mind + operative_mind.special_role = null + for(var/datum/objective/nuclear/O in operative_mind.objectives) + operative_mind.objectives -= O + operative_mind.current.attack_log += "\[[time_stamp()]\] No longer nuclear operative" + if(issilicon(operative_mind.current)) + to_chat(operative_mind.current, "You have been turned into a robot! You are no longer a Syndicate operative.") + else + to_chat(operative_mind.current, "You have been brainwashed! You are no longer a Syndicate operative.") + ticker.mode.update_synd_icons_removed(operative_mind) + //////////////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////////////// diff --git a/code/game/gamemodes/traitor/traitor.dm b/code/game/gamemodes/traitor/traitor.dm index 9474526655e..60a90b70638 100644 --- a/code/game/gamemodes/traitor/traitor.dm +++ b/code/game/gamemodes/traitor/traitor.dm @@ -63,6 +63,7 @@ /datum/game_mode/traitor/post_setup() for(var/datum/mind/traitor in traitors) forge_traitor_objectives(traitor) + update_traitor_icons_added(traitor) spawn(rand(10,100)) finalize_traitor(traitor) greet_traitor(traitor) @@ -345,9 +346,19 @@ to_chat(traitor_mob, "We have received credible reports that [M.real_name] might be willing to help our cause. If you need assistance, consider contacting them.") traitor_mob.mind.store_memory("Potential Collaborator: [M.real_name]") +/datum/game_mode/proc/remove_traitor(datum/mind/traitor_mind) + if(traitor_mind in traitors) + ticker.mode.traitors -= traitor_mind + traitor_mind.special_role = null + traitor_mind.current.attack_log += "\[[time_stamp()]\] De-traitored" + if(issilicon(traitor_mind.current)) + to_chat(traitor_mind.current, "You have been turned into a robot! You are no longer a traitor.") + else + to_chat(traitor_mind.current, "You have been brainwashed! You are no longer a traitor.") + ticker.mode.update_traitor_icons_removed(traitor_mind) + /datum/game_mode/proc/update_traitor_icons_added(datum/mind/traitor_mind) var/datum/atom_hud/antag/tatorhud = huds[ANTAG_HUD_TRAITOR] - //var/ref = "\ref[traitor_mind]" tatorhud.join_hud(traitor_mind.current) set_antag_hud(traitor_mind.current, "hudsyndicate") @@ -358,23 +369,27 @@ /datum/game_mode/proc/remove_traitor_mind(datum/mind/traitor_mind, datum/mind/head) - //var/list/removal - var/ref = "\ref[head]" - if(ref in implanter) - implanter[ref] -= traitor_mind - implanted -= traitor_mind - traitors -= traitor_mind - if(traitor_mind.som) - var/datum/mindslaves/slaved = traitor_mind.som - slaved.serv -= traitor_mind - traitor_mind.special_role = null - traitor_mind.som = null - slaved.leave_serv_hud(traitor_mind) - for(var/datum/objective/protect/mindslave/MS in traitor_mind.objectives) - traitor_mind.objectives -= MS + if(traitor_mind in implanted) + //var/list/removal + var/ref = "\ref[head]" + if(ref in implanter) + implanter[ref] -= traitor_mind + implanted -= traitor_mind + traitors -= traitor_mind + if(traitor_mind.som) + var/datum/mindslaves/slaved = traitor_mind.som + slaved.serv -= traitor_mind + traitor_mind.special_role = null + traitor_mind.som = null + slaved.leave_serv_hud(traitor_mind) + for(var/datum/objective/protect/mindslave/MS in traitor_mind.objectives) + traitor_mind.objectives -= MS - update_traitor_icons_removed(traitor_mind) - to_chat(traitor_mind.current, "You are no longer a mindslave; you have complete and free control of your own faculties, once more!") + update_traitor_icons_removed(traitor_mind) + if(issilicon(traitor_mind.current)) + to_chat(traitor_mind.current, "You have been turned into a robot! You are no longer a mindslave.") + else + to_chat(traitor_mind.current, "You are no longer a mindslave: you have complete and free control of your own faculties, once more!") /datum/game_mode/proc/assign_exchange_role(var/datum/mind/owner) //set faction diff --git a/code/game/gamemodes/vampire/vampire.dm b/code/game/gamemodes/vampire/vampire.dm index 5a78826ab0c..dd40a6817b6 100644 --- a/code/game/gamemodes/vampire/vampire.dm +++ b/code/game/gamemodes/vampire/vampire.dm @@ -325,6 +325,22 @@ You are weak to holy things and starlight. Don't go into space and avoid the Cha else if(istype(p, /datum/vampire_passive)) var/datum/vampire_passive/power = p to_chat(owner, "[power.gain_desc]") + + +/datum/game_mode/proc/remove_vampire(datum/mind/vampire_mind) + if(vampire_mind in vampires) + ticker.mode.vampires -= vampire_mind + vampire_mind.special_role = null + vampire_mind.current.attack_log += "\[[time_stamp()]\] De-vampired" + if(vampire_mind.vampire) + vampire_mind.vampire.remove_vampire_powers() + qdel(vampire_mind.vampire) + vampire_mind.vampire = null + if(issilicon(vampire_mind.current)) + to_chat(vampire_mind.current, "You have been turned into a robot! You can feel your powers fading away...") + else + to_chat(vampire_mind.current, "You have been brainwashed! You are no longer a vampire.") + ticker.mode.update_vampire_icons_removed(vampire_mind) //prepare for copypaste /datum/game_mode/proc/update_vampire_icons_added(datum/mind/vampire_mind) diff --git a/code/game/gamemodes/wizard/wizard.dm b/code/game/gamemodes/wizard/wizard.dm index b98d97d790e..a38e7dc5541 100644 --- a/code/game/gamemodes/wizard/wizard.dm +++ b/code/game/gamemodes/wizard/wizard.dm @@ -54,7 +54,20 @@ update_wiz_icons_added(wizard) ..() - + +/datum/game_mode/proc/remove_wizard(datum/mind/wizard_mind) + if(wizard_mind in wizards) + ticker.mode.wizards -= wizard_mind + wizard_mind.special_role = null + wizard_mind.current.attack_log += "\[[time_stamp()]\] De-wizarded" + wizard_mind.current.spellremove(wizard_mind.current) + wizard_mind.current.faction = list("Station") + if(issilicon(wizard_mind.current)) + to_chat(wizard_mind.current, "You have been turned into a robot! You can feel your magical powers fading away...") + else + to_chat(wizard_mind.current, "You have been brainwashed! You are no longer a wizard.") + ticker.mode.update_wiz_icons_removed(wizard_mind) + /datum/game_mode/proc/update_wiz_icons_added(datum/mind/wiz_mind) var/datum/atom_hud/antag/wizhud = huds[ANTAG_HUD_WIZ] wizhud.join_hud(wiz_mind.current) diff --git a/code/modules/mob/living/silicon/login.dm b/code/modules/mob/living/silicon/login.dm index cc2cb3e8435..fa71b48232e 100644 --- a/code/modules/mob/living/silicon/login.dm +++ b/code/modules/mob/living/silicon/login.dm @@ -1,8 +1,15 @@ /mob/living/silicon/Login() sleeping = 0 if(mind && ticker && ticker.mode) - ticker.mode.remove_cultist(mind, 1) + ticker.mode.remove_traitor(mind) + ticker.mode.remove_traitor_mind(mind) ticker.mode.remove_revolutionary(mind, 1) - ticker.mode.remove_thrall(mind,0) + ticker.mode.remove_cultist(mind, 1) + ticker.mode.remove_wizard(mind) + ticker.mode.remove_changeling(mind) + ticker.mode.remove_vampire(mind) + ticker.mode.remove_thrall(mind, 0) + ticker.mode.remove_operative(mind) ticker.mode.remove_shadowling(mind) + ticker.mode.remove_abductor(mind) ..() \ No newline at end of file diff --git a/code/modules/mob/living/silicon/robot/login.dm b/code/modules/mob/living/silicon/robot/login.dm index 84fcd64f849..2dd61d9a2ce 100644 --- a/code/modules/mob/living/silicon/robot/login.dm +++ b/code/modules/mob/living/silicon/robot/login.dm @@ -4,9 +4,3 @@ client.hotkeytype = "Cyborg" regenerate_icons() show_laws(0) - if(mind) ticker.mode.remove_cultist(mind) - if(mind) ticker.mode.remove_revolutionary(mind) - if(mind) ticker.mode.remove_thrall(mind,0) - if(mind) ticker.mode.remove_shadowling(mind) - if(mind) ticker.mode.remove_changeling(mind) - return From 8a2a9ee3b03051a340ec3d80b17168ddbbc4e2f0 Mon Sep 17 00:00:00 2001 From: Markolie Date: Sun, 9 Oct 2016 18:20:20 +0200 Subject: [PATCH 36/52] Fixes multiple holograms being active at the same time, fixes AI's being unable to set wanted status. --- code/game/machinery/hologram.dm | 5 ++++- code/modules/mob/living/carbon/human/human.dm | 14 ++------------ code/modules/mob/living/silicon/ai/ai.dm | 5 ----- code/modules/mob/living/silicon/robot/robot.dm | 7 ++----- 4 files changed, 8 insertions(+), 23 deletions(-) diff --git a/code/game/machinery/hologram.dm b/code/game/machinery/hologram.dm index 8120bae4216..41952adf355 100644 --- a/code/game/machinery/hologram.dm +++ b/code/game/machinery/hologram.dm @@ -90,12 +90,15 @@ var/const/HOLOPAD_MODE = 0 user.eyeobj.setLoc(get_turf(src)) else if(!hologram)//If there is no hologram, possibly make one. activate_holo(user) - else if(master==user)//If there is a hologram, remove it. But only if the user is the master. Otherwise do nothing. + else if(master == user)//If there is a hologram, remove it. But only if the user is the master. Otherwise do nothing. clear_holo() return /obj/machinery/hologram/holopad/proc/activate_holo(mob/living/silicon/ai/user) if(!(stat & NOPOWER) && user.eyeobj.loc == src.loc)//If the projector has power and client eye is on it. + if(user.holo) + var/obj/machinery/hologram/holopad/current = user.holo + current.clear_holo() if(!hologram)//If there is not already a hologram. create_holo(user)//Create one. src.visible_message("A holographic image of [user] flicks to life right before your eyes!") diff --git a/code/modules/mob/living/carbon/human/human.dm b/code/modules/mob/living/carbon/human/human.dm index 86232208e2e..ed48c229b89 100644 --- a/code/modules/mob/living/carbon/human/human.dm +++ b/code/modules/mob/living/carbon/human/human.dm @@ -854,12 +854,7 @@ modified = 1 spawn() - if(istype(usr,/mob/living/carbon/human)) - //var/mob/living/carbon/human/U = usr - sec_hud_set_security_status() - if(istype(usr,/mob/living/silicon/robot)) - //var/mob/living/silicon/robot/U = usr - sec_hud_set_security_status() + sec_hud_set_security_status() if(!modified) to_chat(usr, "\red Unable to locate a data core entry for this person.") @@ -984,12 +979,7 @@ PDA_Manifest.Cut() spawn() - if(istype(usr,/mob/living/carbon/human)) - //var/mob/living/carbon/human/U = usr - sec_hud_set_security_status() - if(istype(usr,/mob/living/silicon/robot)) - //var/mob/living/silicon/robot/U = usr - sec_hud_set_security_status() + sec_hud_set_security_status() if(!modified) to_chat(usr, "\red Unable to locate a data core entry for this person.") diff --git a/code/modules/mob/living/silicon/ai/ai.dm b/code/modules/mob/living/silicon/ai/ai.dm index c0800a2413d..95f9362684b 100644 --- a/code/modules/mob/living/silicon/ai/ai.dm +++ b/code/modules/mob/living/silicon/ai/ai.dm @@ -97,12 +97,7 @@ var/list/ai_verbs_default = list( var/obj/machinery/camera/portable/builtInCamera - //var/obj/item/borg/sight/hud/sec/sechud = null - //var/obj/item/borg/sight/hud/med/healthhud = null - var/arrivalmsg = "$name, $rank, has arrived on the station." - med_hud = DATA_HUD_MEDICAL_BASIC - sec_hud = DATA_HUD_SECURITY_BASIC /mob/living/silicon/ai/proc/add_ai_verbs() src.verbs |= ai_verbs_default diff --git a/code/modules/mob/living/silicon/robot/robot.dm b/code/modules/mob/living/silicon/robot/robot.dm index afae06678d2..7e771b2f372 100644 --- a/code/modules/mob/living/silicon/robot/robot.dm +++ b/code/modules/mob/living/silicon/robot/robot.dm @@ -78,16 +78,13 @@ var/list/robot_verbs_default = list( var/updating = 0 //portable camera camerachunk update - hud_possible = list(SPECIALROLE_HUD, DIAG_STAT_HUD, DIAG_HUD, DIAG_BATT_HUD,NATIONS_HUD) + hud_possible = list(SPECIALROLE_HUD, DIAG_STAT_HUD, DIAG_HUD, DIAG_BATT_HUD, NATIONS_HUD) var/magpulse = 0 var/ionpulse = 0 // Jetpack-like effect. var/ionpulse_on = 0 // Jetpack-like effect. var/datum/effect/system/ion_trail_follow/ion_trail // Ionpulse effect. - - var/obj/item/borg/sight/hud/sec/sechud = null - var/obj/item/borg/sight/hud/med/healthhud = null - + var/datum/action/item_action/toggle_research_scanner/scanner = null /mob/living/silicon/robot/New(loc,var/syndie = 0,var/unfinished = 0, var/alien = 0) From e0d9572107cea8a05d17907118744aa2629867d1 Mon Sep 17 00:00:00 2001 From: ParadiseSS13-Bot Date: Sun, 9 Oct 2016 12:41:10 -0400 Subject: [PATCH 37/52] Automatic changelog generation for PR #5744 --- html/changelogs/AutoChangeLog-pr-5744.yml | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 html/changelogs/AutoChangeLog-pr-5744.yml diff --git a/html/changelogs/AutoChangeLog-pr-5744.yml b/html/changelogs/AutoChangeLog-pr-5744.yml new file mode 100644 index 00000000000..982ede22fe8 --- /dev/null +++ b/html/changelogs/AutoChangeLog-pr-5744.yml @@ -0,0 +1,4 @@ +author: FlattestGuitar +delete-after: True +changes: + - bugfix: "NODROP items will no longer attempt to be dropped if your hand is broken" From 1b3cae082e8cdb32cfbf99e77f036a005eafe8e9 Mon Sep 17 00:00:00 2001 From: Markolie Date: Sun, 9 Oct 2016 19:06:42 +0200 Subject: [PATCH 38/52] Better nuke disk finish checking --- code/game/gamemodes/nuclear/nuclear.dm | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/code/game/gamemodes/nuclear/nuclear.dm b/code/game/gamemodes/nuclear/nuclear.dm index 1a607bea3ca..be1b4a12fcc 100644 --- a/code/game/gamemodes/nuclear/nuclear.dm +++ b/code/game/gamemodes/nuclear/nuclear.dm @@ -296,10 +296,7 @@ proc/issyndicate(mob/living/M as mob) /datum/game_mode/nuclear/declare_completion() var/disk_rescued = 1 for(var/obj/item/weapon/disk/nuclear/D in world) - var/disk_area = get_area(D) - if(!is_type_in_list(disk_area, centcom_areas)) - if(disk_area == shuttle_master.emergency.areaInstance && shuttle_master.emergency.mode >= SHUTTLE_ESCAPE) //snowflaked into objectives because shitty bay shuttles had areas to auto-determine this - break + if(!D.onCentcom()) disk_rescued = 0 break var/crew_evacuated = (shuttle_master.emergency.mode >= SHUTTLE_ESCAPE) From f7f1e493ed58c06db11ac1af42ed8377b82c1e7b Mon Sep 17 00:00:00 2001 From: Fox-McCloud Date: Sun, 9 Oct 2016 14:04:52 -0400 Subject: [PATCH 39/52] Fixes Dual Location Objects with Grinder and Biogenerator --- code/game/machinery/biogenerator.dm | 5 +++-- code/modules/reagents/Chemistry-Machinery.dm | 14 ++++++-------- 2 files changed, 9 insertions(+), 10 deletions(-) diff --git a/code/game/machinery/biogenerator.dm b/code/game/machinery/biogenerator.dm index fa285e5e457..e6ff40bc7d0 100644 --- a/code/game/machinery/biogenerator.dm +++ b/code/game/machinery/biogenerator.dm @@ -97,16 +97,17 @@ else if(processing) to_chat(user, "The biogenerator is currently processing.") else if(istype(O, /obj/item/weapon/storage/bag/plants)) + var/obj/item/weapon/storage/bag/plants/PB = O var/i = 0 for(var/obj/item/weapon/reagent_containers/food/snacks/grown/G in contents) i++ if(i >= max_items) to_chat(user, "The biogenerator is already full! Activate it.") else - for(var/obj/item/weapon/reagent_containers/food/snacks/grown/G in O.contents) + for(var/obj/item/weapon/reagent_containers/food/snacks/grown/G in PB.contents) if(i >= max_items) break - G.forceMove(src) + PB.remove_from_storage(G, src) i++ if(i < max_items) to_chat(user, "You empty the plant bag into the biogenerator.") diff --git a/code/modules/reagents/Chemistry-Machinery.dm b/code/modules/reagents/Chemistry-Machinery.dm index bf107eebd16..ddd53d98fdf 100644 --- a/code/modules/reagents/Chemistry-Machinery.dm +++ b/code/modules/reagents/Chemistry-Machinery.dm @@ -829,7 +829,6 @@ //All types that you can put into the grinder to transfer the reagents to the beaker. !Put all recipes above this.! - /obj/item/weapon/reagent_containers/food/pill = list(), /obj/item/weapon/reagent_containers/food = list(), /obj/item/weapon/reagent_containers/honeycomb = list() ) @@ -895,19 +894,18 @@ to_chat(usr, "The machine cannot hold anymore items.") return 1 - //Fill machine with the plantbag! + //Fill machine with a plantbag! if(istype(O, /obj/item/weapon/storage/bag/plants)) - - for(var/obj/item/weapon/reagent_containers/food/snacks/grown/G in O.contents) - O.contents -= G - G.forceMove(src) + var/obj/item/weapon/storage/bag/plants/PB = O + for(var/obj/item/weapon/reagent_containers/food/snacks/grown/G in PB.contents) + PB.remove_from_storage(G, src) holdingitems += G if(holdingitems && holdingitems.len >= limit) //Sanity checking so the blender doesn't overfill to_chat(user, "You empty the plant bag into the All-In-One grinder.") + if(!PB.contents.len) + to_chat(user, "You empty [PB] into the All-In-One grinder.") updateUsrDialog() return 0 From a64f1849c09115c007b66c6df1d870c7e25ce42f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mieszko=20J=C4=99drzejczak?= Date: Mon, 10 Oct 2016 12:51:56 +0200 Subject: [PATCH 40/52] Actually fixes the implants this time --- code/datums/uplink_item.dm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/datums/uplink_item.dm b/code/datums/uplink_item.dm index 713ddd59e90..1d57ffcfd2e 100644 --- a/code/datums/uplink_item.dm +++ b/code/datums/uplink_item.dm @@ -1201,10 +1201,10 @@ var/list/uplink_items = list() /datum/uplink_item/cyber_implants/spawn_item(turf/loc, obj/item/device/uplink/U) if(item) if(findtext(item, /obj/item/organ/internal/cyberimp)) - return new /obj/item/weapon/storage/box/cyber_implants(loc, item) U.uses -= max(cost, 0) U.used_TC += cost feedback_add_details("traitor_uplink_items_bought", name) //this one and the line before copypasted because snowflaek code + return new /obj/item/weapon/storage/box/cyber_implants(loc, item) else return ..() From 2e839794b14353fcadad86e8b81fb9b694c805c4 Mon Sep 17 00:00:00 2001 From: Isaac Erwin Date: Mon, 10 Oct 2016 07:08:00 -0400 Subject: [PATCH 41/52] Adds an APC to the APC-less Engineering foyer --- _maps/map_files/cyberiad/cyberiad.dmm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/_maps/map_files/cyberiad/cyberiad.dmm b/_maps/map_files/cyberiad/cyberiad.dmm index 9c606a4fbdd..b535dd748a6 100644 --- a/_maps/map_files/cyberiad/cyberiad.dmm +++ b/_maps/map_files/cyberiad/cyberiad.dmm @@ -6934,7 +6934,7 @@ "cDr" = (/obj/machinery/atmospherics/pipe/manifold/hidden/supply{dir = 1; level = 1},/turf/simulated/wall/r_wall,/area/engine/chiefs_office) "cDs" = (/obj/machinery/atmospherics/pipe/simple/hidden/supply{dir = 9; pixel_y = 0},/turf/simulated/wall/r_wall,/area/engine/chiefs_office) "cDt" = (/turf/simulated/wall/r_wall,/area/engine/chiefs_office) -"cDu" = (/obj/structure/cable{icon_state = "0-2"; pixel_y = 1; d2 = 2},/obj/structure/rack{dir = 8; layer = 2.9},/obj/item/clothing/suit/storage/hazardvest,/obj/item/weapon/tank/emergency_oxygen/engi,/obj/item/clothing/suit/storage/hazardvest,/obj/item/weapon/tank/emergency_oxygen/engi,/obj/item/clothing/mask/gas,/obj/item/clothing/mask/gas{pixel_x = -3; pixel_y = -3},/turf/simulated/floor/plasteel,/area/engine/break_room) +"cDu" = (/obj/structure/cable{icon_state = "0-2"; pixel_y = 1; d2 = 2},/obj/structure/rack{dir = 8; layer = 2.9},/obj/item/clothing/suit/storage/hazardvest,/obj/item/weapon/tank/emergency_oxygen/engi,/obj/item/clothing/suit/storage/hazardvest,/obj/item/weapon/tank/emergency_oxygen/engi,/obj/item/clothing/mask/gas,/obj/item/clothing/mask/gas{pixel_x = -3; pixel_y = -3},/obj/machinery/power/apc{dir = 8; name = "west bump Engineering"; pixel_x = -24; shock_proof = 1},/turf/simulated/floor/plasteel,/area/engine/break_room) "cDv" = (/obj/structure/cable{d1 = 1; d2 = 2; icon_state = "1-2"; tag = ""},/obj/structure/cable{d1 = 2; d2 = 8; icon_state = "2-8"; tag = ""},/turf/simulated/floor/plasteel,/area/engine/equipmentstorage) "cDw" = (/obj/structure/disposalpipe/segment,/turf/simulated/floor/plasteel,/area/engine/equipmentstorage) "cDx" = (/obj/machinery/camera{c_tag = "Engineering Equipment North"; network = list("SS13")},/obj/machinery/status_display{density = 0; layer = 4; pixel_x = 0; pixel_y = 32},/obj/machinery/vending/engivend,/turf/simulated/floor/plasteel,/area/engine/equipmentstorage) From 4528e4d469df3ddd44c72968196e4e09feda6685 Mon Sep 17 00:00:00 2001 From: Markolie Date: Mon, 10 Oct 2016 23:42:31 +0200 Subject: [PATCH 42/52] De-snowflakes Dronespeak --- code/modules/mob/language.dm | 11 +++++ .../mob/living/silicon/robot/drone/drone.dm | 7 ++- .../living/silicon/robot/drone/drone_say.dm | 48 ++++--------------- code/modules/mob/living/silicon/silicon.dm | 1 - 4 files changed, 24 insertions(+), 43 deletions(-) diff --git a/code/modules/mob/language.dm b/code/modules/mob/language.dm index fbb3c5edfd4..81b54bcc3a6 100644 --- a/code/modules/mob/language.dm +++ b/code/modules/mob/language.dm @@ -559,6 +559,17 @@ flags = RESTRICTED | HIVEMIND drone_only = 1 follow = 1 + +/datum/language/drone + name = "Drone" + desc = "An encrypted stream of data converted to speech patterns." + speech_verb = "states" + ask_verb = "queries" + exclaim_verb = "declares" + key = "]" + flags = RESTRICTED + follow = 1 + syllables = list ("beep", "boop") /datum/language/swarmer name = "Swarmer" diff --git a/code/modules/mob/living/silicon/robot/drone/drone.dm b/code/modules/mob/living/silicon/robot/drone/drone.dm index 1089e05862a..76dadd6533a 100644 --- a/code/modules/mob/living/silicon/robot/drone/drone.dm +++ b/code/modules/mob/living/silicon/robot/drone/drone.dm @@ -13,9 +13,10 @@ lawupdate = 0 density = 0 req_access = list(access_engine, access_robotics) - local_transmit = 1 ventcrawler = 2 magpulse = 1 + + default_language = "Drone" // We need to keep track of a few module items so we don't need to do list operations // every time we need them. These get set in New() after the module is chosen. @@ -39,7 +40,9 @@ ..() remove_language("Robot Talk") + remove_language("Galactic Common") add_language("Drone Talk", 1) + add_language("Drone", 1) if(camera && "Robots" in camera.network) camera.network.Add("Engineering") @@ -284,7 +287,7 @@ full_law_reset() to_chat(src, "
You are a maintenance drone, a tiny-brained robotic repair machine.") to_chat(src, "You have no individual will, no personality, and no drives or urges other than your laws.") - to_chat(src, "Use ; to talk to other drones, and say to speak silently to your nearby fellows.") + to_chat(src, "Use :d to talk to other drones, and say to speak silently in a language only your fellows understand.") to_chat(src, "Remember, you are lawed against interference with the crew. Also remember, you DO NOT take orders from the AI.") to_chat(src, "Don't invade their worksites, don't steal their resources, don't tell them about the changeling in the toilets.") to_chat(src, "Make sure crew members do not notice you..") diff --git a/code/modules/mob/living/silicon/robot/drone/drone_say.dm b/code/modules/mob/living/silicon/robot/drone/drone_say.dm index 5d00d45f97c..0a98e276c43 100644 --- a/code/modules/mob/living/silicon/robot/drone/drone_say.dm +++ b/code/modules/mob/living/silicon/robot/drone/drone_say.dm @@ -1,43 +1,11 @@ -/mob/living/silicon/robot/drone/say(var/message) - if(local_transmit) - if(src.client) - if(client.prefs.muted & MUTE_IC) - to_chat(src, "You cannot send IC messages (muted).") - return 0 - if(src.client.handle_spam_prevention(message,MUTE_IC)) - return 0 - - message = sanitize(message) - - if(stat == 2) - return say_dead(message) - - if(copytext(message,1,2) == "*") - return emote(copytext(message,2)) - - if(copytext(message,1,2) == ";") - var/datum/language/L = all_languages["Drone Talk"] - if(istype(L)) - return L.broadcast(src,trim(copytext(message,2))) - - //Must be concious to speak - if(stat) - return 0 - - var/list/listeners = hearers(5,src) - listeners |= src - - for(var/mob/living/silicon/D in listeners) - if(D.client && D.local_transmit) - to_chat(D, "[src] transmits, \"[message]\"") - - for(var/mob/M in player_list) - if(istype(M, /mob/new_player)) - continue - else if(M.stat == 2 && M.client && M.client.prefs.toggles & CHAT_GHOSTEARS) - to_chat(M, "[src] transmits, \"[message]\"") - return 1 - return ..(message, 0) +/mob/living/silicon/robot/drone/say(var/message, var/datum/language/speaking = null) + if(!speaking) + speaking = parse_language(message) + if(!speaking) + speaking = istype(get_default_language(), /datum/language) ? get_default_language() : all_languages[get_default_language()] + message = speaking.key + " " + message; // Prepend key to prevent the message from getting trimmed + if(speaking) + return ..() /mob/living/silicon/robot/drone/whisper_say(var/message, var/datum/language/speaking = null, var/alt_name="", var/verb="whispers") say(message) //drones do not get to whisper, only speak normally diff --git a/code/modules/mob/living/silicon/silicon.dm b/code/modules/mob/living/silicon/silicon.dm index fcc5c5dcbdd..75bbec89a1b 100644 --- a/code/modules/mob/living/silicon/silicon.dm +++ b/code/modules/mob/living/silicon/silicon.dm @@ -32,7 +32,6 @@ var/sec_hud = DATA_HUD_SECURITY_ADVANCED //Determines the sec hud to use var/d_hud = DATA_HUD_DIAGNOSTIC //There is only one kind of diag hud - var/local_transmit //If set, can only speak to others of the same type within a short range. var/obj/item/device/radio/common_radio /mob/living/silicon/New() From 92bc8350ad00f462e01b2f258e8685b8eee1a850 Mon Sep 17 00:00:00 2001 From: Markolie Date: Mon, 10 Oct 2016 23:54:16 +0200 Subject: [PATCH 43/52] Handle Drone radio --- code/modules/mob/living/silicon/robot/drone/drone.dm | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/code/modules/mob/living/silicon/robot/drone/drone.dm b/code/modules/mob/living/silicon/robot/drone/drone.dm index 76dadd6533a..0e354b4c4a6 100644 --- a/code/modules/mob/living/silicon/robot/drone/drone.dm +++ b/code/modules/mob/living/silicon/robot/drone/drone.dm @@ -43,6 +43,10 @@ remove_language("Galactic Common") add_language("Drone Talk", 1) add_language("Drone", 1) + + // Disable the microphone wire on Drones + if(radio) + radio.wires.CutWireIndex(WIRE_TRANSMIT) if(camera && "Robots" in camera.network) camera.network.Add("Engineering") From 0ad84c1ca19500e8dee932b453e976e1116f1090 Mon Sep 17 00:00:00 2001 From: ParadiseSS13-Bot Date: Mon, 10 Oct 2016 20:18:25 -0400 Subject: [PATCH 44/52] Automatic changelog generation for PR #5755 --- html/changelogs/AutoChangeLog-pr-5755.yml | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 html/changelogs/AutoChangeLog-pr-5755.yml diff --git a/html/changelogs/AutoChangeLog-pr-5755.yml b/html/changelogs/AutoChangeLog-pr-5755.yml new file mode 100644 index 00000000000..d1d10015a82 --- /dev/null +++ b/html/changelogs/AutoChangeLog-pr-5755.yml @@ -0,0 +1,4 @@ +author: Fox McCloud +delete-after: True +changes: + - bugfix: "Fixes items being in two locations at once when loading things into the bio-generator or reagent grinder." From ecbc140033a0a8114b4ffba81c7f6b19ce594556 Mon Sep 17 00:00:00 2001 From: ParadiseSS13-Bot Date: Mon, 10 Oct 2016 20:38:09 -0400 Subject: [PATCH 45/52] Automatic changelog generation for PR #5685 --- html/changelogs/AutoChangeLog-pr-5685.yml | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 html/changelogs/AutoChangeLog-pr-5685.yml diff --git a/html/changelogs/AutoChangeLog-pr-5685.yml b/html/changelogs/AutoChangeLog-pr-5685.yml new file mode 100644 index 00000000000..0fdc18d2454 --- /dev/null +++ b/html/changelogs/AutoChangeLog-pr-5685.yml @@ -0,0 +1,4 @@ +author: Fox McCloud +delete-after: True +changes: + - bugfix: "Fixes various ghost alerts having barely visible icons" From 729d33d0d32680656bbf600839234694792f5dbd Mon Sep 17 00:00:00 2001 From: ParadiseSS13-Bot Date: Mon, 10 Oct 2016 20:44:25 -0400 Subject: [PATCH 46/52] Automatic changelog generation for PR #5679 --- html/changelogs/AutoChangeLog-pr-5679.yml | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 html/changelogs/AutoChangeLog-pr-5679.yml diff --git a/html/changelogs/AutoChangeLog-pr-5679.yml b/html/changelogs/AutoChangeLog-pr-5679.yml new file mode 100644 index 00000000000..9292e91fee9 --- /dev/null +++ b/html/changelogs/AutoChangeLog-pr-5679.yml @@ -0,0 +1,4 @@ +author: Crazylemon64 +delete-after: True +changes: + - bugfix: "The R&D console should now no longer freeze on the \"Syncing Database\" message or whatever." From 54cb5f7749079a46c3fdd3cfca9f4230ba5e749f Mon Sep 17 00:00:00 2001 From: ParadiseSS13-Bot Date: Mon, 10 Oct 2016 20:53:11 -0400 Subject: [PATCH 47/52] Automatic changelog generation for PR #5649 --- html/changelogs/AutoChangeLog-pr-5649.yml | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 html/changelogs/AutoChangeLog-pr-5649.yml diff --git a/html/changelogs/AutoChangeLog-pr-5649.yml b/html/changelogs/AutoChangeLog-pr-5649.yml new file mode 100644 index 00000000000..5dddb44c4c3 --- /dev/null +++ b/html/changelogs/AutoChangeLog-pr-5649.yml @@ -0,0 +1,4 @@ +author: Fox McCloud +delete-after: True +changes: + - rscadd: "Mice now have sprites when worn" From 5219268adce6716689602333add377879d3ce47e Mon Sep 17 00:00:00 2001 From: ParadiseSS13-Bot Date: Mon, 10 Oct 2016 20:54:25 -0400 Subject: [PATCH 48/52] Automatic changelog generation for PR #5646 --- html/changelogs/AutoChangeLog-pr-5646.yml | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 html/changelogs/AutoChangeLog-pr-5646.yml diff --git a/html/changelogs/AutoChangeLog-pr-5646.yml b/html/changelogs/AutoChangeLog-pr-5646.yml new file mode 100644 index 00000000000..022b08350f1 --- /dev/null +++ b/html/changelogs/AutoChangeLog-pr-5646.yml @@ -0,0 +1,4 @@ +author: Fox McCloud +delete-after: True +changes: + - tweak: "Atmos grenades cost increased from 6 to 11" From 4df07bd3c3262aa53fc9413d00e002f95074c1cb Mon Sep 17 00:00:00 2001 From: Fox-McCloud Date: Tue, 11 Oct 2016 11:51:59 -0400 Subject: [PATCH 49/52] Power Gloves Sound Fix --- code/_onclick/click_override.dm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/code/_onclick/click_override.dm b/code/_onclick/click_override.dm index d37b7368b8f..df5cc6a4214 100644 --- a/code/_onclick/click_override.dm +++ b/code/_onclick/click_override.dm @@ -62,7 +62,7 @@ to_chat(user, "There is no cable here to power the gloves.") return user.visible_message("[user.name] fires an arc of electricity at [L]!", "You fire an arc of electricity at [L]!", "You hear the loud crackle of electricity!") - var/datum/powernet/PN = C.get_powernet() + playsound(user.loc, 'sound/effects/eleczap.ogg', 75, 1) user.Beam(L,icon_state="lightning[rand(1,12)]",icon='icons/effects/effects.dmi',time=5) - electrocute_mob(L, PN, user) + electrocute_mob(L, C, user) last_shocked = world.time From 88e283cb6dcd3029bb1ff45cc8034761c52d786b Mon Sep 17 00:00:00 2001 From: ParadiseSS13-Bot Date: Tue, 11 Oct 2016 16:51:40 -0400 Subject: [PATCH 50/52] Automatic changelog generation for PR #5581 --- html/changelogs/AutoChangeLog-pr-5581.yml | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 html/changelogs/AutoChangeLog-pr-5581.yml diff --git a/html/changelogs/AutoChangeLog-pr-5581.yml b/html/changelogs/AutoChangeLog-pr-5581.yml new file mode 100644 index 00000000000..f79c2493863 --- /dev/null +++ b/html/changelogs/AutoChangeLog-pr-5581.yml @@ -0,0 +1,6 @@ +author: Fox McCloud +delete-after: True +changes: + - tweak: "Cloners will now put you inside the cloned body when it is fully grown as opposed to initially created" + - tweak: "Examining a cloner will tell you the clone progress" + - rscadd: "Observers can now see a visual countdown of the cloning status progression" From 1d900c4cbece2516f89d32eb11c835db5d1042a8 Mon Sep 17 00:00:00 2001 From: ParadiseSS13-Bot Date: Tue, 11 Oct 2016 20:27:51 -0400 Subject: [PATCH 51/52] Automatic changelog generation for PR #5644 --- html/changelogs/AutoChangeLog-pr-5644.yml | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 html/changelogs/AutoChangeLog-pr-5644.yml diff --git a/html/changelogs/AutoChangeLog-pr-5644.yml b/html/changelogs/AutoChangeLog-pr-5644.yml new file mode 100644 index 00000000000..f336a56d07a --- /dev/null +++ b/html/changelogs/AutoChangeLog-pr-5644.yml @@ -0,0 +1,4 @@ +author: GeneralChaos81 +delete-after: True +changes: + - rscadd: "Ability to place and remove conveyor belts and levers." From 15684d4850a20996f3667c68b4a2d8d0f65d1149 Mon Sep 17 00:00:00 2001 From: FlattestGuitar Date: Wed, 12 Oct 2016 23:07:01 +0200 Subject: [PATCH 52/52] Only bullets now --- code/modules/projectiles/projectile/bullets.dm | 3 +++ 1 file changed, 3 insertions(+) diff --git a/code/modules/projectiles/projectile/bullets.dm b/code/modules/projectiles/projectile/bullets.dm index 88d5946742a..0ae9b10752e 100644 --- a/code/modules/projectiles/projectile/bullets.dm +++ b/code/modules/projectiles/projectile/bullets.dm @@ -9,6 +9,7 @@ hitsound_wall = "ricochet" /obj/item/projectile/bullet/weakbullet //beanbag, heavy stamina damage + name = "beanbag slug" damage = 5 stamina = 80 @@ -37,6 +38,7 @@ A.volume += 5 //Because we can /obj/item/projectile/bullet/weakbullet2 //detective revolver instastuns, but multiple shots are better for keeping punks down + name = "rubber bullet" damage = 5 weaken = 3 stamina = 60 @@ -130,6 +132,7 @@ damage = 35 /obj/item/projectile/bullet/rpellet + name = "rubber pellet" damage = 3 stamina = 25