mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-13 11:43:31 +00:00
Conveyor will now move only 10 items per cycle. Realism can kiss my ass, I'm tired of miners dumping a million pieces of ore on it and then turning it on, thus grinding the entire server to a near halt.
git-svn-id: http://tgstation13.googlecode.com/svn/trunk@2114 316c924e-a436-60f5-8080-3fe189b3f50e
This commit is contained in:
@@ -67,6 +67,7 @@
|
|||||||
|
|
||||||
affecting = loc.contents - src // moved items will be all in loc
|
affecting = loc.contents - src // moved items will be all in loc
|
||||||
spawn(1) // slight delay to prevent infinite propagation due to map order
|
spawn(1) // slight delay to prevent infinite propagation due to map order
|
||||||
|
var/items_moved = 0
|
||||||
for(var/atom/movable/A in affecting)
|
for(var/atom/movable/A in affecting)
|
||||||
if(!A.anchored)
|
if(!A.anchored)
|
||||||
if(isturf(A.loc)) // this is to prevent an ugly bug that forces a player to drop what they're holding if they recently pick it up from the conveyer belt
|
if(isturf(A.loc)) // this is to prevent an ugly bug that forces a player to drop what they're holding if they recently pick it up from the conveyer belt
|
||||||
@@ -84,6 +85,9 @@
|
|||||||
step(M,movedir)
|
step(M,movedir)
|
||||||
else
|
else
|
||||||
step(A,movedir)
|
step(A,movedir)
|
||||||
|
items_moved++
|
||||||
|
if(items_moved >= 10)
|
||||||
|
break
|
||||||
|
|
||||||
// attack with item, place item on conveyor
|
// attack with item, place item on conveyor
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user