mirror of
https://github.com/KabKebab/GS13.git
synced 2026-07-10 15:36:56 +01:00
Merge pull request #690 from ArchieBeepBoop/lunarfix
Lunar Typo Fix + Cheese Prevention
This commit is contained in:
@@ -1,12 +1,17 @@
|
||||
/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?"
|
||||
desc = "Judging by the symbols, millenia ago, it seems that the creatures of this world used to offer 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 = "convertaltar-blue" //Placeholder.
|
||||
anchored = TRUE
|
||||
density = FALSE
|
||||
density = TRUE
|
||||
light_color = LIGHT_COLOR_FIRE
|
||||
var/used = FALSE
|
||||
|
||||
/obj/structure/lunaraltar/Initialize()
|
||||
. = ..()
|
||||
set_light(2)
|
||||
|
||||
/obj/structure/lunaraltar/attack_hand(mob/living/user)
|
||||
. = ..()
|
||||
if(.)
|
||||
@@ -15,18 +20,23 @@
|
||||
to_chat(user, "<span class='notice'>The altar seems shattered.</span>")
|
||||
return
|
||||
if(istype(user, /mob/living/carbon/human/))
|
||||
var/part = pick("1","2","3","4")
|
||||
var/part = pick("r_arm","l_arm","r_leg","l_leg")
|
||||
var/mob/living/carbon/human/H = user
|
||||
var/obj/item/bodypart/bodypart
|
||||
var/paralysistype
|
||||
switch(part)
|
||||
if("1")
|
||||
if("l_leg")
|
||||
bodypart = H.get_bodypart(BODY_ZONE_L_LEG)
|
||||
if("2")
|
||||
paralysistype = TRAIT_PARALYSIS_L_LEG
|
||||
if("r_leg")
|
||||
bodypart = H.get_bodypart(BODY_ZONE_R_LEG)
|
||||
if("3")
|
||||
paralysistype = TRAIT_PARALYSIS_R_LEG
|
||||
if("l_arm")
|
||||
bodypart = H.get_bodypart(BODY_ZONE_L_ARM)
|
||||
if("4")
|
||||
paralysistype = TRAIT_PARALYSIS_L_ARM
|
||||
if("r_arm")
|
||||
bodypart = H.get_bodypart(BODY_ZONE_R_ARM)
|
||||
paralysistype = TRAIT_PARALYSIS_R_ARM
|
||||
if(!bodypart)
|
||||
to_chat(user, "<span class='notice'>The altar does nothing.</span>")
|
||||
return
|
||||
@@ -39,12 +49,15 @@
|
||||
"<span class='userdanger'>Your [bodypart] is momentarily enveloped by shadows before it's gruesomely twisted and dismembered!</span>")
|
||||
bodypart.dismember()
|
||||
bodypart.Destroy()
|
||||
ADD_TRAIT(H, paralysistype, "trauma_paralysis")
|
||||
H.update_disabled_bodyparts()
|
||||
H.bleed_rate += 5
|
||||
H.emote("scream")
|
||||
new /obj/item/helfiretincture(src.loc) //Eventually a pick, with different items.
|
||||
visible_message("<span class='warning'>As you blink, cracks appear on the altar and a flash of lunar light reaches its surface. A gift?</span>")
|
||||
message_admins("[ADMIN_LOOKUPFLW(user)] has sacrificed their [bodypart] on the lunar altar at [AREACOORD(src)].")
|
||||
icon_state = "sacrificealtar-blue"
|
||||
set_light(0)
|
||||
update_icon()
|
||||
used = TRUE
|
||||
|
||||
@@ -52,7 +65,7 @@
|
||||
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?"
|
||||
desc = "Burn everyone nearby... Including you."
|
||||
var/cooldowntime = 45 SECONDS
|
||||
var/used = FALSE
|
||||
|
||||
|
||||
Reference in New Issue
Block a user