mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2026-08-25 14:16:58 +01:00
Online schizophrenia: The 1 throwforcening (#7941)
Co-authored-by: Kashargul <144968721+Kashargul@users.noreply.github.com>
This commit is contained in:
@@ -36,9 +36,12 @@
|
||||
if(vac_owner && user != vac_owner)
|
||||
to_chat(user, "<span class='warning'>Only designated owner can change this setting.</span>")
|
||||
return
|
||||
var/set_output = tgui_input_list(user, "Set your vacuum attachment's connection port", "Vac Settings", list("Vore Belly", "Borg Belly", "Trash Bag"))
|
||||
if(set_output)
|
||||
if(set_output == "Borg Belly")
|
||||
var/vac_options = list("Vore Belly", "Trash Bag") //Dont show option for borg belly if the user isnt even a borg. QOL!
|
||||
if(isrobot(user))
|
||||
vac_options = list("Vore Belly", "Borg Belly", "Trash Bag")
|
||||
var/set_output = tgui_input_list(user, "Set your vacuum attachment's connection port", "Vac Settings", vac_options)
|
||||
switch(set_output)
|
||||
if("Borg Belly")
|
||||
if(isrobot(user))
|
||||
var/mob/living/silicon/robot/R = user
|
||||
var/obj/item/weapon/robot_module/M = R.module
|
||||
@@ -47,7 +50,7 @@
|
||||
output_dest = S
|
||||
return
|
||||
to_chat(user, "<span class='warning'>Borg belly not found.</span>")
|
||||
if(set_output == "Trash Bag")
|
||||
if("Trash Bag")
|
||||
if(isrobot(user))
|
||||
var/mob/living/silicon/robot/R = user
|
||||
var/obj/item/weapon/robot_module/M = R.module
|
||||
@@ -60,7 +63,7 @@
|
||||
output_dest = T
|
||||
return
|
||||
to_chat(user, "<span class='warning'>Trash bag not found.</span>")
|
||||
if(set_output == "Vore Belly")
|
||||
if("Vore Belly")
|
||||
if(user.vore_selected)
|
||||
output_dest = user.vore_selected
|
||||
return
|
||||
@@ -172,6 +175,8 @@
|
||||
if(is_type_in_list(F,item_vore_blacklist) || F.loc != target)
|
||||
continue
|
||||
if(istype(F,/obj/effect/decal/cleanable))
|
||||
if(isbelly(output_dest))
|
||||
user.adjust_nutrition(1)
|
||||
qdel(F)
|
||||
continue
|
||||
if(istype(output_dest,/obj/item/weapon/storage/bag/trash))
|
||||
@@ -195,6 +200,8 @@
|
||||
F.forceMove(output_dest)
|
||||
if(istype(target, /turf/simulated))
|
||||
var/turf/simulated/T = target
|
||||
if(isbelly(output_dest) && T.dirt > 50)
|
||||
user.adjust_nutrition((T.dirt - 50) / 10) //Max tile dirt is 101. so about 5 nutrition from a disgusting floor, I think that's okay.
|
||||
T.dirt = 0
|
||||
T.clean_blood()
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user