mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-08-25 04:57:47 +01:00
prot rig (#17369)
* prot rig * . * . * , * . * Rig qdel fix * no more ? needed --------- Co-authored-by: C.L. <killer65311@gmail.com>
This commit is contained in:
@@ -274,14 +274,17 @@
|
||||
toggle_piece("chest", loc, ONLY_RETRACT, TRUE)
|
||||
update_icon(1)
|
||||
|
||||
/obj/item/rig/proc/toggle_seals(var/mob/living/carbon/human/M,var/instant)
|
||||
/obj/item/rig/proc/toggle_seals(mob/living/carbon/human/M, instant, destructive)
|
||||
|
||||
if(sealing) return
|
||||
|
||||
if(!check_power_cost(M))
|
||||
return 0
|
||||
|
||||
deploy(M,instant)
|
||||
//NOTE: DESTRUCTIVE SHOULD ONLY BE CALLED ONCE (DURING THE INITIAL DEPLOYMENT)
|
||||
//DESTRUCTIVE WILL DELETE ANY CLOTHING THAT WOULD OTHERWISE BE BLOCKING IT.
|
||||
//IF DESTRUCTIVE IS CALLED WHILE THE RIG IS ALREADY DEPLOYED, THE RIG WILL DELETE ITSELF.
|
||||
deploy(M,destructive)
|
||||
|
||||
var/seal_target = !canremove
|
||||
var/failed_to_seal
|
||||
@@ -754,7 +757,7 @@
|
||||
if(piece == "helmet" && helmet?.light_system == STATIC_LIGHT)
|
||||
helmet.update_light()
|
||||
|
||||
/obj/item/rig/proc/deploy(mob/M,var/sealed)
|
||||
/obj/item/rig/proc/deploy(mob/M,destructive)
|
||||
|
||||
var/mob/living/carbon/human/H = M
|
||||
|
||||
@@ -763,7 +766,7 @@
|
||||
if(H.back != src && H.belt != src)
|
||||
return
|
||||
|
||||
if(sealed)
|
||||
if(destructive)
|
||||
if(H.head)
|
||||
var/obj/item/garbage = H.head
|
||||
H.drop_from_inventory(garbage)
|
||||
|
||||
@@ -23,8 +23,8 @@
|
||||
return ..()
|
||||
|
||||
/obj/item/electronic_assembly/Destroy()
|
||||
battery = null // It will be qdel'd by ..() if still in our contents
|
||||
STOP_PROCESSING(SSobj, src)
|
||||
battery = null // It will be qdel'd by ..() if still in our contents
|
||||
return ..()
|
||||
|
||||
/obj/item/electronic_assembly/process()
|
||||
|
||||
@@ -246,7 +246,7 @@
|
||||
if(dead)
|
||||
switch(dead)
|
||||
if(1)
|
||||
if(W.is_screwdriver())
|
||||
if(W.has_tool_quality(TOOL_SCREWDRIVER))
|
||||
playsound(src, W.usesound, 50, 1)
|
||||
if(do_after(user,50,src,exclusive = TASK_ALL_EXCLUSIVE))
|
||||
to_chat(user, span_notice("You unscrew the maintenace panel on the [src]."))
|
||||
@@ -321,7 +321,7 @@
|
||||
mod.installed(src)
|
||||
update_icon()
|
||||
return 1
|
||||
else if(W.is_wrench())
|
||||
else if(W.has_tool_quality(TOOL_WRENCH))
|
||||
if(!air_supply)
|
||||
to_chat(user, "There is no tank to remove.")
|
||||
return
|
||||
@@ -333,7 +333,7 @@
|
||||
to_chat(user, "You detach and remove \the [air_supply].")
|
||||
air_supply = null
|
||||
return
|
||||
else if(W.is_screwdriver())
|
||||
else if(W.has_tool_quality(TOOL_SCREWDRIVER))
|
||||
var/list/possible_removals = list()
|
||||
for(var/obj/item/rig_module/module in installed_modules)
|
||||
if(module.permanent)
|
||||
@@ -365,7 +365,6 @@
|
||||
else
|
||||
if(istype(W,/obj/item/storage/backpack))
|
||||
AssimilateBag(user,0,W)
|
||||
..()
|
||||
|
||||
/obj/item/rig/protean/proc/make_alive(var/mob/living/carbon/human/H, var/partial)
|
||||
if(H)
|
||||
|
||||
@@ -668,7 +668,7 @@ GLOBAL_VAR_INIT(teppi_count, 0) // How mant teppi DO we have?
|
||||
|
||||
/mob/living/simple_mob/vore/alienanimals/teppi/Life()
|
||||
. =..()
|
||||
if(!.)
|
||||
if(!. || QDELETED(src))
|
||||
return
|
||||
wantpet += rand(0,2) * affection_factor
|
||||
amount_grown += rand(1,5)
|
||||
|
||||
@@ -159,7 +159,7 @@
|
||||
//If they have these values, apply them
|
||||
if(isliving(M))
|
||||
var/mob/living/L = M
|
||||
brainmob.dna = L.dna
|
||||
brainmob.dna = L.dna.Clone()
|
||||
brainmob.ooc_notes = L.ooc_notes
|
||||
brainmob.ooc_notes_likes = L.ooc_notes_likes
|
||||
brainmob.ooc_notes_dislikes = L.ooc_notes_dislikes
|
||||
|
||||
Reference in New Issue
Block a user