mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-11 18:53:06 +00:00
Small code change
git-svn-id: http://tgstation13.googlecode.com/svn/trunk@1001 316c924e-a436-60f5-8080-3fe189b3f50e
This commit is contained in:
@@ -3,7 +3,7 @@
|
|||||||
desc = "Small things moving very fast."
|
desc = "Small things moving very fast."
|
||||||
icon = 'particle_accelerator.dmi'
|
icon = 'particle_accelerator.dmi'
|
||||||
icon_state = "particle"//Need a new icon for this
|
icon_state = "particle"//Need a new icon for this
|
||||||
anchored = 0
|
anchored = 1
|
||||||
density = 1
|
density = 1
|
||||||
var
|
var
|
||||||
movement_range = 10
|
movement_range = 10
|
||||||
|
|||||||
@@ -79,7 +79,7 @@ var/global/list/uneatable = list(
|
|||||||
eat()
|
eat()
|
||||||
dissipate()
|
dissipate()
|
||||||
check_energy()
|
check_energy()
|
||||||
if(current_size >= 3)
|
if(current_size >= 5)
|
||||||
move()
|
move()
|
||||||
if(current_size <= 7)
|
if(current_size <= 7)
|
||||||
pulse()
|
pulse()
|
||||||
@@ -99,8 +99,11 @@ var/global/list/uneatable = list(
|
|||||||
dissipate_track++
|
dissipate_track++
|
||||||
|
|
||||||
|
|
||||||
expand()
|
expand(var/force_size = 0)
|
||||||
switch(src.allowed_size)
|
var/temp_allowed_size = src.allowed_size
|
||||||
|
if(force_size)
|
||||||
|
temp_allowed_size = force_size
|
||||||
|
switch(temp_allowed_size)
|
||||||
if(1)
|
if(1)
|
||||||
current_size = 1
|
current_size = 1
|
||||||
icon = 'singularity.dmi'
|
icon = 'singularity.dmi'
|
||||||
@@ -158,6 +161,8 @@ var/global/list/uneatable = list(
|
|||||||
dissipate = 0 //It cant go smaller due to e loss
|
dissipate = 0 //It cant go smaller due to e loss
|
||||||
if(current_size == allowed_size)
|
if(current_size == allowed_size)
|
||||||
return 1
|
return 1
|
||||||
|
else if(current_size < (--temp_allowed_size))
|
||||||
|
expand(temp_allowed_size)
|
||||||
else
|
else
|
||||||
return 0
|
return 0
|
||||||
|
|
||||||
@@ -261,7 +266,7 @@ var/global/list/uneatable = list(
|
|||||||
if(1)
|
if(1)
|
||||||
steps = 1
|
steps = 1
|
||||||
if(3)
|
if(3)
|
||||||
steps = 2
|
steps = 3//Yes this is right
|
||||||
if(5)
|
if(5)
|
||||||
steps = 3
|
steps = 3
|
||||||
if(7)
|
if(7)
|
||||||
|
|||||||
Reference in New Issue
Block a user