diff --git a/GainStation13/code/mechanics/fattening_trap.dm b/GainStation13/code/mechanics/fattening_trap.dm new file mode 100644 index 00000000..6a43ffe7 --- /dev/null +++ b/GainStation13/code/mechanics/fattening_trap.dm @@ -0,0 +1,27 @@ +/obj/structure/trap/fattening + name = "fattening trap" + desc = "A trap that ensures you won't be stepping around for much longer." + icon = 'GainStation13/icons/obj/structure/traps.dmi' + icon_state = "trap-fattening" + + var/fattening_amount = 250 // Using a variable incase we want to have a stronger version. + // This is at half of the power of the singe-use cannonshot fatray. + +/obj/structure/trap/fattening/trap_effect(mob/living/carbon/crosser) + if(ishuman(crosser)) + to_chat(crosser, "You feel heavier!") + crosser.adjust_fatness(fattening_amount, FATTENING_TYPE_MAGIC) + +/obj/structure/trap/belch + name = "belch trap" + desc = "A trap that forcefully releases all the air in your stomach." + icon = 'GainStation13/icons/obj/structure/traps.dmi' + icon_state = "trap-belching" + +/obj/structure/trap/belch/trap_effect(mob/living/crosser) + if(crosser?.client?.prefs.weight_gain_chems) + to_chat(crosser, "You feel all of the air leave your stomach!") + crosser.emote(pick("belch","burp")) + + crosser.Knockdown(500) + \ No newline at end of file diff --git a/GainStation13/code/mechanics/spells.dm b/GainStation13/code/mechanics/spells.dm index 2a6ba67c..198bc0bf 100644 --- a/GainStation13/code/mechanics/spells.dm +++ b/GainStation13/code/mechanics/spells.dm @@ -85,6 +85,27 @@ user.adjust_fatness(-weight_to_add, FATTENING_TYPE_MAGIC) +/obj/effect/proc_holder/spell/aoe_turf/conjure/the_traps/fat + name = "Fat Traps!" + desc = "Summon a number of traps to fatten your enemies." + action_icon = 'GainStation13/icons/obj/structure/traps.dmi' + action_icon_state = "trap-fattening" + + clothes_req = FALSE + summon_type = list( + /obj/structure/trap/fattening + ) + + summon_amt = 4 + +/obj/effect/proc_holder/spell/aoe_turf/conjure/the_traps/fat/belch + name = "Belch Traps!" + desc = "Summon a number of traps to force your enemies to belch." + action_icon_state = "trap-belching" + summon_type = list( + /obj/structure/trap/belch + ) + ///Spellbooks /obj/item/book/granter/spell/fattening name = "fattening tome" @@ -108,3 +129,13 @@ spellname = "weight steal" icon_state = "steal_weight" desc = "This book feels warm to the touch." + +/obj/item/book/granter/spell/fattening/traps + name = "fattening trap tome" + spell = /obj/effect/proc_holder/spell/aoe_turf/conjure/the_traps/fat + spellname = "fattening traps" + +/obj/item/book/granter/spell/fattening/belch + name = "belch trap tome" + spell = /obj/effect/proc_holder/spell/aoe_turf/conjure/the_traps/fat/belch + spellname = "belch traps" diff --git a/GainStation13/icons/obj/structure/traps.dmi b/GainStation13/icons/obj/structure/traps.dmi new file mode 100644 index 00000000..a6a3457e Binary files /dev/null and b/GainStation13/icons/obj/structure/traps.dmi differ diff --git a/tgstation.dme b/tgstation.dme index e9810c64..0bf94521 100644 --- a/tgstation.dme +++ b/tgstation.dme @@ -3090,6 +3090,7 @@ #include "GainStation13\code\machinery\fattening_turret.dm" #include "GainStation13\code\machinery\feeding_tube.dm" #include "GainStation13\code\mechanics\fatness.dm" +#include "GainStation13\code\mechanics\fattening_trap.dm" #include "GainStation13\code\mechanics\spells.dm" #include "GainStation13\code\mechanics\wand.dm" #include "GainStation13\code\mechanics\web_weaving.dm"