Added diona gestalt preset.

This commit is contained in:
Zuhayr
2015-08-04 18:53:50 +09:30
parent 15d20d0801
commit f6df7df714
11 changed files with 202 additions and 7 deletions
+5 -5
View File
@@ -1,5 +1,5 @@
/proc/spawn_diona_nymph_from_organ(var/obj/item/organ/organ)
if(!istype(organ))
/proc/spawn_diona_nymph(var/turf/target)
if(!istype(target))
return 0
//This is a terrible hack and I should be ashamed.
@@ -8,7 +8,7 @@
return 0
spawn(1) // So it has time to be thrown about by the gib() proc.
var/mob/living/carbon/alien/diona/D = new(get_turf(organ))
var/mob/living/carbon/alien/diona/D = new(target)
var/datum/ghosttrap/plant/P = get_ghost_trap("living plant")
P.request_player(D, "A diona nymph has split off from its gestalt. ")
spawn(60)
@@ -144,7 +144,7 @@
..()
if(!istype(H) || !H.organs || !H.organs.len)
H.death()
if(prob(50) && spawn_diona_nymph_from_organ(src))
if(prob(50) && spawn_diona_nymph(get_turf(src)))
qdel(src)
/obj/item/organ/diona/process()
@@ -185,7 +185,7 @@
..()
if(!istype(H) || !H.organs || !H.organs.len)
H.death()
if(prob(50) && spawn_diona_nymph_from_organ(src))
if(prob(50) && spawn_diona_nymph(get_turf(src)))
qdel(src)
// These are different to the standard diona organs as they have a purpose in other