Fixed a small mapping mistake. Also, the locker is still chef-access only. Whoops.
 Singularity
Singularities now can "target" something, which makes them aim towards it instead of wandering around.
Added an adminspawnable singularity beacon which automatically targets all singularities on itself.

git-svn-id: http://tgstation13.googlecode.com/svn/trunk@1612 316c924e-a436-60f5-8080-3fe189b3f50e
This commit is contained in:
uporotiy
2011-05-23 17:42:17 +00:00
parent 1db532ec38
commit a80286a584
3 changed files with 22 additions and 1 deletions

View File

@@ -26,6 +26,7 @@ var/global/list/uneatable = list(
grav_pull = 4 //How many tiles out do we pull?
consume_range = 0 //How many tiles out do we eat
event_chance = 15 //Prob for event each tick
target = null //its target. moves towards the target if it has one
New(loc, var/starting_energy = 50, var/temp = 0)
@@ -34,6 +35,9 @@ var/global/list/uneatable = list(
spawn(temp)
del(src)
..()
for(var/obj/machinery/singularity_beacon/singubeacon in world)
target = singubeacon
break
return
@@ -252,6 +256,8 @@ var/global/list/uneatable = list(
return 0
if(!(movement_dir in cardinal))
movement_dir = pick(NORTH, SOUTH, EAST, WEST)
if(target)
movement_dir = get_dir(src,target) //moves to a singulo beacon, if there is one
if(current_size >= 9)//The superlarge one does not care about things in its way
spawn(0)
step(src, movement_dir)