mirror of
https://github.com/PolarisSS13/Polaris.git
synced 2026-07-17 11:13:15 +01:00
Added ghost trap to living clientless nymphs.
This commit is contained in:
@@ -129,3 +129,17 @@ var/global/list/_nymph_default_emotes = list(
|
||||
|
||||
/mob/living/carbon/diona/death(gibbed)
|
||||
return ..(gibbed,death_msg)
|
||||
|
||||
|
||||
/mob/living/carbon/diona/attack_ghost(mob/observer/dead/user)
|
||||
if(client || key || ckey)
|
||||
to_chat(user, SPAN_WARNING("\The [src] already has a player."))
|
||||
if(alert(user, "Do you wish to take control of \the [src]?", "Chirp Time", "No", "Yes") == "No")
|
||||
return
|
||||
if(QDELETED(src) || QDELETED(user) || !user.client)
|
||||
return
|
||||
if(client || key || ckey)
|
||||
to_chat(user, SPAN_WARNING("\The [src] already has a player."))
|
||||
var/datum/ghosttrap/plant/P = get_ghost_trap("living plant")
|
||||
if(P.assess_candidate(user))
|
||||
P.transfer_personality(user, src)
|
||||
|
||||
Reference in New Issue
Block a user