From 68cd01606794625b8e5be604436d45de2f3837f9 Mon Sep 17 00:00:00 2001
From: Ghom <42542238+Ghommie@users.noreply.github.com>
Date: Mon, 18 May 2020 02:06:05 +0200
Subject: [PATCH] Demodularizing wishgranter, some helpers, and removing unused
files. (#12291)
---
code/__HELPERS/_lists.dm | 10 ++
code/__HELPERS/type2type.dm | 42 ++++++
code/game/machinery/wishgranter.dm | 119 +++++++++++++++--
.../objects/structures/beds_chairs/chair.dm | 4 +-
modular_citadel/code/__HELPERS/list2list.dm | 12 --
modular_citadel/code/__HELPERS/lists.dm | 9 --
modular_citadel/code/__HELPERS/mobs.dm | 28 ----
.../code/game/machinery/wishgranter.dm | 122 ------------------
.../items/devices/radio/shockcollar.dm | 83 ------------
.../objects/structures/beds_chairs/chair.dm | 21 ---
tgstation.dme | 4 -
11 files changed, 160 insertions(+), 294 deletions(-)
delete mode 100644 modular_citadel/code/__HELPERS/list2list.dm
delete mode 100644 modular_citadel/code/__HELPERS/lists.dm
delete mode 100644 modular_citadel/code/__HELPERS/mobs.dm
delete mode 100644 modular_citadel/code/game/machinery/wishgranter.dm
delete mode 100644 modular_citadel/code/game/objects/items/devices/radio/shockcollar.dm
delete mode 100644 modular_citadel/code/game/objects/structures/beds_chairs/chair.dm
diff --git a/code/__HELPERS/_lists.dm b/code/__HELPERS/_lists.dm
index e7b8560569..ba29205452 100644
--- a/code/__HELPERS/_lists.dm
+++ b/code/__HELPERS/_lists.dm
@@ -671,3 +671,13 @@
for(var/key in input)
ret += key
return ret
+
+/proc/is_type_in_ref_list(path, list/L)
+ if(!ispath(path))//not a path
+ return
+ for(var/i in L)
+ var/datum/D = i
+ if(!istype(D))//not an usable reference
+ continue
+ if(istype(D, path))
+ return TRUE
diff --git a/code/__HELPERS/type2type.dm b/code/__HELPERS/type2type.dm
index 09047d32bf..2c8497d5ed 100644
--- a/code/__HELPERS/type2type.dm
+++ b/code/__HELPERS/type2type.dm
@@ -629,3 +629,45 @@
return null
r += ascii2text(c)
return r
+
+/proc/slot_to_string(slot)
+ switch(slot)
+ if(SLOT_BACK)
+ return "Backpack"
+ if(SLOT_WEAR_MASK)
+ return "Mask"
+ if(SLOT_HANDS)
+ return "Hands"
+ if(SLOT_BELT)
+ return "Belt"
+ if(SLOT_EARS)
+ return "Ears"
+ if(SLOT_GLASSES)
+ return "Glasses"
+ if(SLOT_GLOVES)
+ return "Gloves"
+ if(SLOT_NECK)
+ return "Neck"
+ if(SLOT_HEAD)
+ return "Head"
+ if(SLOT_SHOES)
+ return "Shoes"
+ if(SLOT_WEAR_SUIT)
+ return "Suit"
+ if(SLOT_W_UNIFORM)
+ return "Uniform"
+ if(SLOT_IN_BACKPACK)
+ return "In backpack"
+
+/proc/tg_ui_icon_to_cit_ui(ui_style)
+ switch(ui_style)
+ if('icons/mob/screen_plasmafire.dmi')
+ return 'modular_citadel/icons/ui/screen_plasmafire.dmi'
+ if('icons/mob/screen_slimecore.dmi')
+ return 'modular_citadel/icons/ui/screen_slimecore.dmi'
+ if('icons/mob/screen_operative.dmi')
+ return 'modular_citadel/icons/ui/screen_operative.dmi'
+ if('icons/mob/screen_clockwork.dmi')
+ return 'modular_citadel/icons/ui/screen_clockwork.dmi'
+ else
+ return 'modular_citadel/icons/ui/screen_midnight.dmi'
diff --git a/code/game/machinery/wishgranter.dm b/code/game/machinery/wishgranter.dm
index f618888d98..ee28f118fa 100644
--- a/code/game/machinery/wishgranter.dm
+++ b/code/game/machinery/wishgranter.dm
@@ -11,9 +11,6 @@
var/insisting = 0
/obj/machinery/wish_granter/attack_hand(mob/living/carbon/user)
- . = ..()
- if(.)
- return
if(charges <= 0)
to_chat(user, "The Wish Granter lies silent.")
return
@@ -22,22 +19,116 @@
to_chat(user, "You feel a dark stirring inside of the Wish Granter, something you want nothing of. Your instincts are better than any man's.")
return
- else if(is_special_character(user))
- to_chat(user, "Even to a heart as dark as yours, you know nothing good will come of this. Something instinctual makes you pull away.")
-
else if (!insisting)
to_chat(user, "Your first touch makes the Wish Granter stir, listening to you. Are you really sure you want to do this?")
insisting++
else
- to_chat(user, "You speak. [pick("I want the station to disappear","Humanity is corrupt, mankind must be destroyed","I want to be rich", "I want to rule the world","I want immortality.")]. The Wish Granter answers.")
- to_chat(user, "Your head pounds for a moment, before your vision clears. You are the avatar of the Wish Granter, and your power is LIMITLESS! And it's all yours. You need to make sure no one can take it from you. No one can know, first.")
+ if(is_special_character(user))
+ to_chat(user, "You speak. [pick("I want power","Humanity is corrupt, mankind must be destroyed", "I want to rule the world","I want immortality")]. The Wish Granter answers.")
+ to_chat(user, "Your head pounds for a moment, before your vision clears. The Wish Granter, sensing the darkness in your heart, has given you limitless power, and it's all yours!")
+ user.dna.add_mutation(HULK)
+ user.dna.add_mutation(XRAY)
+ user.dna.add_mutation(SPACEMUT)
+ user.dna.add_mutation(TK)
+ user.next_move_modifier *= 0.5 //half the delay between attacks!
+ to_chat(user, "Things around you feel slower!")
+ charges--
+ insisting = FALSE
+ to_chat(user, "You have a very great feeling about this!")
+ else
+ to_chat(user, "The Wish Granter awaits your wish.")
+ var/wish = input("You want...","Wish") as null|anything in list("Power","Wealth","The Station To Disappear","To Kill","Nothing")
+ switch(wish)
+ if("Power") //Gives infinite power in exchange for infinite power going off in your face!
+ if(charges <= 0)
+ return
+ to_chat(user, "Your wish is granted, but at a terrible cost...")
+ to_chat(user, "The Wish Granter punishes you for your selfishness, warping itself into a delaminating supermatter shard!")
+ var/obj/item/stock_parts/cell/infinite/powah = new /obj/item/stock_parts/cell/infinite(get_turf(user))
+ if(user.put_in_hands(powah))
+ to_chat(user, "[powah] materializes into your hands!")
+ else
+ to_chat(user, "[powah] materializes onto the floor.")
+ var/obj/machinery/power/supermatter_crystal/powerwish = new /obj/machinery/power/supermatter_crystal(loc)
+ powerwish.damage = 700 //right at the emergency threshold
+ powerwish.produces_gas = FALSE
+ charges--
+ insisting = FALSE
+ if(!charges)
+ qdel(src)
+ if("Wealth") //Gives 1 million space bucks in exchange for being turned into gold!
+ if(charges <= 0)
+ return
+ to_chat(user, "Your wish is granted, but at a cost...")
+ to_chat(user, "The Wish Granter punishes you for your selfishness, warping your body to match the greed in your heart.")
+ new /obj/structure/closet/crate/trashcart/moneywish(loc)
+ new /obj/structure/closet/crate/trashcart/moneywish(loc)
+ user.set_species(/datum/species/golem/gold)
+ charges--
+ insisting = FALSE
+ if(!charges)
+ qdel(src)
+ if("The Station To Disappear") //teleports you to the station and makes you blind, making the station disappear for you!
+ if(charges <= 0)
+ return
+ to_chat(user, "Your wish is 'granted', but at a terrible cost...")
+ to_chat(user, "The Wish Granter punishes you for your selfishness, claiming your soul and warping your eyes to match the darkness in your heart.")
+ user.dna.add_mutation(BLINDMUT)
+ var/obj/item/organ/eyes/eyes = user.getorganslot(ORGAN_SLOT_EYES)
+ if(eyes)
+ eyes.applyOrganDamage(eyes.maxHealth)
+ var/list/destinations = list()
+ for(var/obj/item/beacon/B in GLOB.teleportbeacons)
+ var/turf/T = get_turf(B)
+ if(is_station_level(T.z))
+ destinations += B
+ var/chosen_beacon = pick(destinations)
+ var/obj/effect/portal/jaunt_tunnel/J = new (get_turf(src), src, 100, null, FALSE, get_turf(chosen_beacon))
+ try_move_adjacent(J)
+ playsound(src,'sound/effects/sparks4.ogg',50,1)
+ charges--
+ insisting = FALSE
+ if(!charges)
+ qdel(src)
+ if("To Kill") //Makes you kill things in exchange for rewards!
+ if(charges <= 0)
+ return
+ to_chat(user, "Your wish is granted, but at a terrible cost...")
+ to_chat(user, "The Wish Granter punishes you for your wickedness, warping itself into a dastardly creature for you to kill! ...but it almost seems to reward you for this.")
+ var/obj/item/melee/transforming/energy/sword/cx/killreward = new /obj/item/melee/transforming/energy/sword/cx(get_turf(user))
+ if(user.put_in_hands(killreward))
+ to_chat(user, "[killreward] materializes into your hands!")
+ else
+ to_chat(user, "[killreward] materializes onto the floor.")
+ user.next_move_modifier *= 0.8 //20% less delay between attacks!
+ to_chat(user, "Things around you feel slightly slower!")
+ var/mob/living/simple_animal/hostile/venus_human_trap/killwish = new /mob/living/simple_animal/hostile/venus_human_trap(loc)
+ killwish.maxHealth = 1500
+ killwish.health = killwish.maxHealth
+ killwish.vine_grab_distance = 6
+ killwish.melee_damage_upper = 30
+ killwish.loot = list(/obj/item/twohanded/dualsaber/hypereutactic)
+ charges--
+ insisting = FALSE
+ if(!charges)
+ qdel(src)
+ if("Nothing") //Makes the wish granter disappear
+ if(charges <= 0)
+ return
+ to_chat(user, "The Wish Granter vanishes from sight!")
+ to_chat(user, "You feel as if you just narrowly avoided a terrible fate...")
+ charges--
+ insisting = FALSE
+ qdel(src)
- charges--
- insisting = 0
+//ITEMS THAT IT USES
- user.mind.add_antag_datum(/datum/antagonist/wishgranter)
+/obj/structure/closet/crate/trashcart/moneywish
+ desc = "A heavy, metal trashcart with wheels. Filled with cash."
+ name = "loaded trash cart"
- to_chat(user, "You have a very bad feeling about this.")
-
- return
+/obj/structure/closet/crate/trashcart/moneywish/PopulateContents() //25*20*1000=500,000
+ for(var/i in 1 to 25)
+ var/obj/item/stack/spacecash/c1000/lodsamoney = new /obj/item/stack/spacecash/c1000(src)
+ lodsamoney.amount = lodsamoney.max_amount
diff --git a/code/game/objects/structures/beds_chairs/chair.dm b/code/game/objects/structures/beds_chairs/chair.dm
index d3e8ecf0a6..2225c4c0c2 100644
--- a/code/game/objects/structures/beds_chairs/chair.dm
+++ b/code/game/objects/structures/beds_chairs/chair.dm
@@ -108,7 +108,9 @@
if(!istype(poordude))
return TRUE
user.visible_message("[user] pulls [src] out from under [poordude].", "You pull [src] out from under [poordude].")
- var/C = new item_chair(loc)
+ var/obj/item/chair/C = new item_chair(loc)
+ C.set_custom_materials(custom_materials)
+ TransferComponents(C)
user.put_in_hands(C)
poordude.DefaultCombatKnockdown(20)//rip in peace
user.adjustStaminaLoss(5)
diff --git a/modular_citadel/code/__HELPERS/list2list.dm b/modular_citadel/code/__HELPERS/list2list.dm
deleted file mode 100644
index e812b3a1e9..0000000000
--- a/modular_citadel/code/__HELPERS/list2list.dm
+++ /dev/null
@@ -1,12 +0,0 @@
-/proc/tg_ui_icon_to_cit_ui(ui_style)
- switch(ui_style)
- if('icons/mob/screen_plasmafire.dmi')
- return 'modular_citadel/icons/ui/screen_plasmafire.dmi'
- if('icons/mob/screen_slimecore.dmi')
- return 'modular_citadel/icons/ui/screen_slimecore.dmi'
- if('icons/mob/screen_operative.dmi')
- return 'modular_citadel/icons/ui/screen_operative.dmi'
- if('icons/mob/screen_clockwork.dmi')
- return 'modular_citadel/icons/ui/screen_clockwork.dmi'
- else
- return 'modular_citadel/icons/ui/screen_midnight.dmi'
diff --git a/modular_citadel/code/__HELPERS/lists.dm b/modular_citadel/code/__HELPERS/lists.dm
deleted file mode 100644
index b249dfc554..0000000000
--- a/modular_citadel/code/__HELPERS/lists.dm
+++ /dev/null
@@ -1,9 +0,0 @@
-/proc/is_type_in_ref_list(path, list/L)
- if(!ispath(path))//not a path
- return
- for(var/i in L)
- var/datum/D = i
- if(!istype(D))//not an usable reference
- continue
- if(istype(D, path))
- return TRUE
\ No newline at end of file
diff --git a/modular_citadel/code/__HELPERS/mobs.dm b/modular_citadel/code/__HELPERS/mobs.dm
deleted file mode 100644
index 2666696564..0000000000
--- a/modular_citadel/code/__HELPERS/mobs.dm
+++ /dev/null
@@ -1,28 +0,0 @@
-/proc/slot_to_string(slot)
- switch(slot)
- if(SLOT_BACK)
- return "Backpack"
- if(SLOT_WEAR_MASK)
- return "Mask"
- if(SLOT_HANDS)
- return "Hands"
- if(SLOT_BELT)
- return "Belt"
- if(SLOT_EARS)
- return "Ears"
- if(SLOT_GLASSES)
- return "Glasses"
- if(SLOT_GLOVES)
- return "Gloves"
- if(SLOT_NECK)
- return "Neck"
- if(SLOT_HEAD)
- return "Head"
- if(SLOT_SHOES)
- return "Shoes"
- if(SLOT_WEAR_SUIT)
- return "Suit"
- if(SLOT_W_UNIFORM)
- return "Uniform"
- if(SLOT_IN_BACKPACK)
- return "In backpack"
diff --git a/modular_citadel/code/game/machinery/wishgranter.dm b/modular_citadel/code/game/machinery/wishgranter.dm
deleted file mode 100644
index 6cfe07b7a0..0000000000
--- a/modular_citadel/code/game/machinery/wishgranter.dm
+++ /dev/null
@@ -1,122 +0,0 @@
-/obj/machinery/wish_granter/attack_hand(mob/living/carbon/user)
- if(charges <= 0)
- to_chat(user, "The Wish Granter lies silent.")
- return
-
- else if(!ishuman(user))
- to_chat(user, "You feel a dark stirring inside of the Wish Granter, something you want nothing of. Your instincts are better than any man's.")
- return
-
- else if (!insisting)
- to_chat(user, "Your first touch makes the Wish Granter stir, listening to you. Are you really sure you want to do this?")
- insisting++
-
- else
- if(is_special_character(user))
- to_chat(user, "You speak. [pick("I want power","Humanity is corrupt, mankind must be destroyed", "I want to rule the world","I want immortality")]. The Wish Granter answers.")
- to_chat(user, "Your head pounds for a moment, before your vision clears. The Wish Granter, sensing the darkness in your heart, has given you limitless power, and it's all yours!")
- user.dna.add_mutation(HULK)
- user.dna.add_mutation(XRAY)
- user.dna.add_mutation(SPACEMUT)
- user.dna.add_mutation(TK)
- user.next_move_modifier *= 0.5 //half the delay between attacks!
- to_chat(user, "Things around you feel slower!")
- charges--
- insisting = FALSE
- to_chat(user, "You have a very great feeling about this!")
- else
- to_chat(user, "The Wish Granter awaits your wish.")
- var/wish = input("You want...","Wish") as null|anything in list("Power","Wealth","The Station To Disappear","To Kill","Nothing")
- switch(wish)
- if("Power") //Gives infinite power in exchange for infinite power going off in your face!
- if(charges <= 0)
- return
- to_chat(user, "Your wish is granted, but at a terrible cost...")
- to_chat(user, "The Wish Granter punishes you for your selfishness, warping itself into a delaminating supermatter shard!")
- var/obj/item/stock_parts/cell/infinite/powah = new /obj/item/stock_parts/cell/infinite(get_turf(user))
- if(user.put_in_hands(powah))
- to_chat(user, "[powah] materializes into your hands!")
- else
- to_chat(user, "[powah] materializes onto the floor.")
- var/obj/machinery/power/supermatter_crystal/powerwish = new /obj/machinery/power/supermatter_crystal(loc)
- powerwish.damage = 700 //right at the emergency threshold
- powerwish.produces_gas = FALSE
- charges--
- insisting = FALSE
- if(!charges)
- qdel(src)
- if("Wealth") //Gives 1 million space bucks in exchange for being turned into gold!
- if(charges <= 0)
- return
- to_chat(user, "Your wish is granted, but at a cost...")
- to_chat(user, "The Wish Granter punishes you for your selfishness, warping your body to match the greed in your heart.")
- new /obj/structure/closet/crate/trashcart/moneywish(loc)
- new /obj/structure/closet/crate/trashcart/moneywish(loc)
- user.set_species(/datum/species/golem/gold)
- charges--
- insisting = FALSE
- if(!charges)
- qdel(src)
- if("The Station To Disappear") //teleports you to the station and makes you blind, making the station disappear for you!
- if(charges <= 0)
- return
- to_chat(user, "Your wish is 'granted', but at a terrible cost...")
- to_chat(user, "The Wish Granter punishes you for your selfishness, claiming your soul and warping your eyes to match the darkness in your heart.")
- user.dna.add_mutation(BLINDMUT)
- var/obj/item/organ/eyes/eyes = user.getorganslot(ORGAN_SLOT_EYES)
- if(eyes)
- eyes.applyOrganDamage(eyes.maxHealth)
- var/list/destinations = list()
- for(var/obj/item/beacon/B in GLOB.teleportbeacons)
- var/turf/T = get_turf(B)
- if(is_station_level(T.z))
- destinations += B
- var/chosen_beacon = pick(destinations)
- var/obj/effect/portal/jaunt_tunnel/J = new (get_turf(src), src, 100, null, FALSE, get_turf(chosen_beacon))
- try_move_adjacent(J)
- playsound(src,'sound/effects/sparks4.ogg',50,1)
- charges--
- insisting = FALSE
- if(!charges)
- qdel(src)
- if("To Kill") //Makes you kill things in exchange for rewards!
- if(charges <= 0)
- return
- to_chat(user, "Your wish is granted, but at a terrible cost...")
- to_chat(user, "The Wish Granter punishes you for your wickedness, warping itself into a dastardly creature for you to kill! ...but it almost seems to reward you for this.")
- var/obj/item/melee/transforming/energy/sword/cx/killreward = new /obj/item/melee/transforming/energy/sword/cx(get_turf(user))
- if(user.put_in_hands(killreward))
- to_chat(user, "[killreward] materializes into your hands!")
- else
- to_chat(user, "[killreward] materializes onto the floor.")
- user.next_move_modifier *= 0.8 //20% less delay between attacks!
- to_chat(user, "Things around you feel slightly slower!")
- var/mob/living/simple_animal/hostile/venus_human_trap/killwish = new /mob/living/simple_animal/hostile/venus_human_trap(loc)
- killwish.maxHealth = 1500
- killwish.health = killwish.maxHealth
- killwish.vine_grab_distance = 6
- killwish.melee_damage_upper = 30
- killwish.loot = list(/obj/item/twohanded/dualsaber/hypereutactic)
- charges--
- insisting = FALSE
- if(!charges)
- qdel(src)
- if("Nothing") //Makes the wish granter disappear
- if(charges <= 0)
- return
- to_chat(user, "The Wish Granter vanishes from sight!")
- to_chat(user, "You feel as if you just narrowly avoided a terrible fate...")
- charges--
- insisting = FALSE
- qdel(src)
-
-//ITEMS THAT IT USES
-
-/obj/structure/closet/crate/trashcart/moneywish
- desc = "A heavy, metal trashcart with wheels. Filled with cash."
- name = "loaded trash cart"
-
-/obj/structure/closet/crate/trashcart/moneywish/PopulateContents() //25*20*1000=500,000
- for(var/i = 0, i < 25, i++)
- var/obj/item/stack/spacecash/c1000/lodsamoney = new /obj/item/stack/spacecash/c1000(src)
- lodsamoney.amount = lodsamoney.max_amount
diff --git a/modular_citadel/code/game/objects/items/devices/radio/shockcollar.dm b/modular_citadel/code/game/objects/items/devices/radio/shockcollar.dm
deleted file mode 100644
index 6c9f12a852..0000000000
--- a/modular_citadel/code/game/objects/items/devices/radio/shockcollar.dm
+++ /dev/null
@@ -1,83 +0,0 @@
-/obj/item/electropack/shockcollar
- name = "shock collar"
- desc = "A reinforced metal collar. It seems to have some form of wiring near the front. Strange.."
- icon = 'modular_citadel/icons/obj/clothing/cit_neck.dmi'
- mob_overlay_icon = 'modular_citadel/icons/mob/citadel/neck.dmi'
- icon_state = "shockcollar"
- item_state = "shockcollar"
- body_parts_covered = NECK
- slot_flags = ITEM_SLOT_NECK | ITEM_SLOT_DENYPOCKET //no more pocket shockers
- w_class = WEIGHT_CLASS_SMALL
- strip_delay = 60
- equip_delay_other = 60
- materials = list(MAT_METAL=5000, MAT_GLASS=2000)
- var/tagname = null
-
-/datum/design/electropack/shockcollar
- name = "Shockcollar"
- id = "shockcollar"
- build_type = AUTOLATHE
- build_path = /obj/item/electropack/shockcollar
- materials = list(MAT_METAL=5000, MAT_GLASS=2000)
- category = list("hacked", "Misc")
-
-/obj/item/electropack/shockcollar/attack_hand(mob/user)
- if(loc == user && user.get_item_by_slot(SLOT_NECK))
- to_chat(user, "The collar is fastened tight! You'll need help taking this off!")
- return
- ..()
-
-/obj/item/electropack/shockcollar/receive_signal(datum/signal/signal)
- if(!signal || signal.data["code"] != code)
- return
-
- if(isliving(loc) && on)
- if(shock_cooldown != 0)
- return
- shock_cooldown = 1
- spawn(100)
- shock_cooldown = 0
- var/mob/living/L = loc
- step(L, pick(GLOB.cardinals))
-
- to_chat(L, "You feel a sharp shock from the collar!")
- var/datum/effect_system/spark_spread/s = new /datum/effect_system/spark_spread
- s.set_up(3, 1, L)
- s.start()
-
- L.DefaultCombatKnockdown(100)
-
- if(master)
- master.receive_signal()
- return
-
-/obj/item/electropack/shockcollar/attack_self(mob/user) //Turns out can't fully source this from the parent item, spritepath gets confused if power toggled. Will come back to this when I know how to code better and readd powertoggle..
- var/option = "Change Name"
- option = input(user, "What do you want to do?", "[src]", option) as null|anything in list("Change Name", "Change Frequency")
- switch(option)
- if("Change Name")
- var/t = input(user, "Would you like to change the name on the tag?", "Name your new pet", tagname ? tagname : "Spot") as null|text
- if(t)
- tagname = copytext(sanitize(t), 1, MAX_NAME_LEN)
- name = "[initial(name)] - [tagname]"
- if("Change Frequency")
- if(!ishuman(user))
- return
- user.set_machine(src)
- var/dat = {"
- Frequency/Code for shock collar:
- Frequency:
- -
- - [format_frequency(frequency)]
- +
- +
- Code:
- -
- - [code]
- +
- +
- "}
-
- user << browse(dat, "window=radio")
- onclose(user, "radio")
- return
diff --git a/modular_citadel/code/game/objects/structures/beds_chairs/chair.dm b/modular_citadel/code/game/objects/structures/beds_chairs/chair.dm
deleted file mode 100644
index 5b20fe048b..0000000000
--- a/modular_citadel/code/game/objects/structures/beds_chairs/chair.dm
+++ /dev/null
@@ -1,21 +0,0 @@
-/obj/structure/chair/alt_attack_hand(mob/living/user)
- if(Adjacent(user) && istype(user))
- if(!item_chair || !user.can_hold_items() || !has_buckled_mobs() || buckled_mobs.len > 1 || dir != user.dir || flags_1 & NODECONSTRUCT_1)
- return TRUE
- if(!user.canUseTopic(src, BE_CLOSE, ismonkey(user)))
- to_chat(user, "You can't do that right now!")
- return TRUE
- if(user.getStaminaLoss() >= STAMINA_SOFTCRIT)
- to_chat(user, "You're too exhausted for that.")
- return TRUE
- var/mob/living/poordude = buckled_mobs[1]
- if(!istype(poordude))
- return TRUE
- user.visible_message("[user] pulls [src] out from under [poordude].", "You pull [src] out from under [poordude].")
- var/C = new item_chair(loc)
- user.put_in_hands(C)
- poordude.DefaultCombatKnockdown(20)//rip in peace
- user.adjustStaminaLoss(5)
- unbuckle_all_mobs(TRUE)
- qdel(src)
- return TRUE
diff --git a/tgstation.dme b/tgstation.dme
index 619f6767bb..0f6a1fb1fe 100755
--- a/tgstation.dme
+++ b/tgstation.dme
@@ -3329,9 +3329,6 @@
#include "interface\menu.dm"
#include "interface\stylesheet.dm"
#include "interface\skin.dmf"
-#include "modular_citadel\code\__HELPERS\list2list.dm"
-#include "modular_citadel\code\__HELPERS\lists.dm"
-#include "modular_citadel\code\__HELPERS\mobs.dm"
#include "modular_citadel\code\_onclick\click.dm"
#include "modular_citadel\code\_onclick\item_attack.dm"
#include "modular_citadel\code\_onclick\other_mobs.dm"
@@ -3340,7 +3337,6 @@
#include "modular_citadel\code\_onclick\hud\stamina.dm"
#include "modular_citadel\code\datums\components\souldeath.dm"
#include "modular_citadel\code\datums\status_effects\chems.dm"
-#include "modular_citadel\code\game\machinery\wishgranter.dm"
#include "modular_citadel\code\game\objects\cit_screenshake.dm"
#include "modular_citadel\code\game\objects\effects\temporary_visuals\souldeath.dm"
#include "modular_citadel\code\modules\admin\chat_commands.dm"