Merge pull request #693 from jack-fractal/holodeck_carp

Holodeck carp
This commit is contained in:
SoundScopes
2015-08-24 14:04:41 +01:00
2 changed files with 34 additions and 2 deletions
@@ -66,4 +66,36 @@
icon_state = "critter"
icon_living = "critter"
icon_dead = "critter_dead"
attackv = "swoops"
attackv = "swoops"
// Holographic carp for the holodeck
/mob/living/simple_animal/hostile/carp/hologram
name = "space carp"
desc = "A solid light image of a ferocious, fang-bearing creature resembling a fish. It flickers inconsistently but appears to be able to affect solid matter."
icon_state = "holocarp"
icon_living = "holocarp"
icon_dead = "carp_dead"
icon_gib = "carp_gib"
meat_type = null
var/datum/effect/effect/system/spark_spread/spark_system // for when they die
/mob/living/simple_animal/hostile/carp/hologram/New(loc)
. = ..(loc)
spark_system = new /datum/effect/effect/system/spark_spread()
spark_system.set_up(5, 0, src)
spark_system.attach(src)
/mob/living/simple_animal/hostile/carp/hologram/death()
src.spark_system.start() // sparks for holograms! Hurray!
stat = DEAD
density = 0
. = ..()
src.visible_message("[src] sparks and then flickers out of existence.")
del(src)
/mob/living/simple_animal/hostile/carp/hologram/gib()
return death()