diff --git a/hyperstation/code/obj/lunaritems.dm b/hyperstation/code/obj/lunaritems.dm new file mode 100644 index 00000000..17838e1d --- /dev/null +++ b/hyperstation/code/obj/lunaritems.dm @@ -0,0 +1,74 @@ +/obj/structure/lunaraltar + name = "lunar altar" + desc = "Judging by the symbols, millenia ago, it seems that the creatures of this world used something precious to the icy moon that orbits this hellish planet. You... Wouldn't do that, would you?" + icon = 'icons/obj/hand_of_god_structures.dmi' //Placeholder. + icon_state = "sacrificealtar" //Placeholder. + anchored = TRUE + density = FALSE + var/used = FALSE + +/obj/structure/lunaraltar/attack_hand(mob/living/user) + . = ..() + if(.) + return + if(used) + return + if(istype(user, /mob/living/carbon/human/)) + var/part = pick("1","2","3","4") + var/mob/living/carbon/human/H = user + var/obj/item/bodypart/bodypart + switch(part) + if("1") + bodypart = H.get_bodypart(BODY_ZONE_L_LEG) + if("2") + bodypart = H.get_bodypart(BODY_ZONE_R_LEG) + if("3") + bodypart = H.get_bodypart(BODY_ZONE_L_ARM) + if("4") + bodypart = H.get_bodypart(BODY_ZONE_R_ARM) + if(!bodypart || used) + to_chat(user, "The altar does nothing.") + return + to_chat(user,"You begin placing your hand on the altar.") + playsound(src, 'sound/weapons/slice.ogg', 50, 1, 5) + if(do_after(user, 50, target=src)) + if(used) + return + visible_message("[user]'s [bodypart] is momentarily enveloped by shadows before they are gruesomely twisted and dismembered!", \ + "Your [bodypart] is momentarily enveloped by shadows before it's gruesomely twisted and dismembered!") + bodypart.dismember() + bodypart.Destroy() + H.bleed_rate += 5 + H.emote("scream") + new /obj/item/helfiretincture(src.loc) //Eventually a pick, with different items. + visible_message("As you blink, cracks appear on the altar and a flash of lunar light reaches its surface. A gift?") + message_admins("[ADMIN_LOOKUPFLW(user)] has sacrificed their [bodypart] on the lunar altar at [AREACOORD(src)].") + used = TRUE + +/obj/item/helfiretincture + name = "helfire tincture" //"Hel" not Hell. Intended. + icon = 'hyperstation/icons/obj/lunar.dmi' + icon_state = "helfire_tincture" + desc = "Burn everyone nearby... including you. You wouldn't do that on the shuttle now, would you?" + var/cooldowntime = 45 SECONDS + var/used = FALSE + +/obj/item/helfiretincture/attack_self(mob/user) + if(!used) + used = TRUE + visible_message("[user] draws from the power of a Hellfire Tincture!", \ + "You draw the power of the Hellfire Tincture!") + for(var/mob/living/H in spiral_range(8, user)) + H.adjustFireLoss(10) + H.adjust_fire_stacks(5) + H.IgniteMob() + playsound(src.loc, 'hyperstation/sound/misc/helfire_use.ogg', 100, 1, extrarange = 8) + icon_state = "helfire_tincture_used" + update_icon() + addtimer(CALLBACK(src, .proc/restore, user), cooldowntime) + +/obj/item/helfiretincture/proc/restore(mob/user) + used = FALSE + icon_state = "helfire_tincture" + update_icon() + to_chat(user, "The tincture vibrates with power once again.") diff --git a/hyperstation/icons/obj/lunar.dmi b/hyperstation/icons/obj/lunar.dmi new file mode 100644 index 00000000..8254574e Binary files /dev/null and b/hyperstation/icons/obj/lunar.dmi differ diff --git a/hyperstation/sound/misc/helfire_use.ogg b/hyperstation/sound/misc/helfire_use.ogg new file mode 100644 index 00000000..d1489bcf Binary files /dev/null and b/hyperstation/sound/misc/helfire_use.ogg differ diff --git a/tgstation.dme b/tgstation.dme index cf7c2cfd..e44ed7f4 100644 --- a/tgstation.dme +++ b/tgstation.dme @@ -3004,6 +3004,7 @@ #include "hyperstation\code\obj\fluff.dm" #include "hyperstation\code\obj\kinkyclothes.dm" #include "hyperstation\code\obj\leash.dm" +#include "hyperstation\code\obj\lunaritems.dm" #include "hyperstation\code\obj\milking machine.dm" #include "hyperstation\code\obj\plushes.dm" #include "hyperstation\code\obj\pregnancytester.dm"