Fancy Alt-Clicking for blob and others

This commit is contained in:
ZomgPonies
2013-09-24 20:12:12 -04:00
parent 6b90da203f
commit e3556791a7
5 changed files with 91 additions and 2 deletions

View File

@@ -8,10 +8,12 @@
var/overmind_get_delay = 0 // we don't want to constantly try to find an overmind, do it every 30 seconds
var/resource_delay = 0
var/point_rate = 2
var/mob/camera/blob/creator = null
New(loc, var/h = 200, var/client/new_overmind = null, var/new_rate = 2)
New(loc, var/h = 200, var/client/new_overmind = null, var/new_rate = 2, var/mob/camera/blob/C = null)
blob_cores += src
processing_objects.Add(src)
creator = C
if(!overmind)
create_overmind(new_overmind)
point_rate = new_rate
@@ -84,6 +86,11 @@
B.key = C.key
B.blob_core = src
src.overmind = B
if(!B.blob_core.creator)
B.verbs += /mob/camera/blob/proc/create_core
if(istype(ticker.mode, /datum/game_mode/blob))
var/datum/game_mode/blob/mode = ticker.mode
mode.infected_crew += B.mind
return 1
return 0