Online schizophrenia: The 1 throwforcening (#7941)

Co-authored-by: Kashargul <144968721+Kashargul@users.noreply.github.com>
This commit is contained in:
Reo Lozzot
2024-04-01 09:44:34 +02:00
committed by GitHub
co-authored by Kashargul
parent 2e8b280dd7
commit c481f415fa
13 changed files with 289 additions and 33 deletions
@@ -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