mirror of
https://github.com/goonstation/goonstation-2016.git
synced 2026-08-25 06:56:22 +01:00
33 lines
804 B
Plaintext
33 lines
804 B
Plaintext
// ----------------------------------
|
|
// Grow into a bigger form of critter
|
|
// ----------------------------------
|
|
/datum/targetable/critter/grow
|
|
name = "Grow"
|
|
desc = "Use this to grow into a bigger, better, robuster form."
|
|
var/newtype = null
|
|
cooldown = 6000
|
|
start_on_cooldown = 1
|
|
|
|
cast(atom/target)
|
|
if (..())
|
|
return 1
|
|
if (!newtype)
|
|
return 1
|
|
var/mob/ow = holder.owner
|
|
if (!ow.mind && !ow.client)
|
|
return 1
|
|
var/mob/nw = new newtype(get_turf(ow))
|
|
if (ow.mind)
|
|
ow.mind.transfer_to(nw)
|
|
else if (ow.client)
|
|
var/client/cli = ow.client
|
|
cli.mob = nw
|
|
nw.mind = new /datum/mind()
|
|
ticker.minds += nw.mind
|
|
nw.mind.key = cli.key
|
|
nw.mind.current = nw
|
|
boutput(nw, __blue("You grow into <b>[nw]</b>!"))
|
|
qdel(ow)
|
|
|
|
// spiderbaby
|
|
// newtype = /mob/living/critter/spider |