mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-07-18 02:24:11 +01:00
fix angled walls icons, remove golem rune code
This commit is contained in:
@@ -389,81 +389,6 @@
|
||||
if(!uses)
|
||||
qdel(src)
|
||||
|
||||
////////Adamantine Golem stuff I dunno where else to put it
|
||||
/*
|
||||
/obj/effect/golemrune
|
||||
anchored = 1
|
||||
desc = "a strange rune used to create golems. It glows when spirits are nearby."
|
||||
name = "rune"
|
||||
icon = 'icons/obj/rune.dmi'
|
||||
icon_state = "golem"
|
||||
unacidable = 1
|
||||
layer = TURF_LAYER
|
||||
var/list/mob/dead/observer/ghosts[0]
|
||||
|
||||
/obj/effect/golemrune/New()
|
||||
..()
|
||||
processing_objects.Add(src)
|
||||
|
||||
/obj/effect/golemrune/process()
|
||||
if(ghosts.len>0)
|
||||
icon_state = "golem2"
|
||||
else
|
||||
icon_state = "golem"
|
||||
|
||||
/obj/effect/golemrune/attack_hand(mob/living/user)
|
||||
var/mob/dead/observer/ghost
|
||||
for(var/mob/dead/observer/O in loc)
|
||||
if(!check_observer(O))
|
||||
to_chat(O, "<span class='warning'>You are not eligible to become a golem.</span>")
|
||||
continue
|
||||
ghost = O
|
||||
break
|
||||
if(!ghost)
|
||||
to_chat(user, "The rune fizzles uselessly. There is no spirit nearby.")
|
||||
return
|
||||
var/mob/living/carbon/human/golem/G = new /mob/living/carbon/human/golem
|
||||
G.change_gender(pick(MALE,FEMALE))
|
||||
G.loc = src.loc
|
||||
G.key = ghost.key
|
||||
add_attack_logs(user, G, "Summoned as a golem")
|
||||
to_chat(G, "You are an adamantine golem. You move slowly, but are highly resistant to heat and cold as well as blunt trauma. You are unable to wear clothes, but can still use most tools. Serve [user], and assist [user.p_them()] in completing [user.p_their()] goals at any cost.")
|
||||
qdel(src)
|
||||
|
||||
/obj/effect/golemrune/Topic(href,href_list)
|
||||
if("signup" in href_list)
|
||||
var/mob/dead/observer/O = locate(href_list["signup"])
|
||||
volunteer(O)
|
||||
|
||||
/obj/effect/golemrune/attack_ghost(var/mob/dead/observer/O)
|
||||
if(!O)
|
||||
return
|
||||
volunteer(O)
|
||||
|
||||
/obj/effect/golemrune/proc/check_observer(var/mob/dead/observer/O)
|
||||
if(!O)
|
||||
return FALSE
|
||||
if(!O.client)
|
||||
return FALSE
|
||||
if(O.mind && O.mind.current && O.mind.current.stat != DEAD)
|
||||
return FALSE
|
||||
if(!O.can_reenter_corpse)
|
||||
return FALSE
|
||||
if(cannotPossess(O))
|
||||
return FALSE
|
||||
return TRUE
|
||||
|
||||
/obj/effect/golemrune/proc/volunteer(var/mob/dead/observer/O)
|
||||
if(O in ghosts)
|
||||
ghosts.Remove(O)
|
||||
to_chat(O, "<span class='warning'>You are no longer signed up to be a golem.</span>")
|
||||
else
|
||||
if(!check_observer(O))
|
||||
to_chat(O, "<span class='warning'>You are not eligible to become a golem.</span>")
|
||||
return
|
||||
ghosts.Add(O)
|
||||
to_chat(O, "<span class='notice'>You are signed up to be a golem.</span>")
|
||||
*/
|
||||
/obj/effect/timestop
|
||||
anchored = 1
|
||||
name = "chronofield"
|
||||
|
||||
Reference in New Issue
Block a user