ID:148343
Mar 23 2003, 11:46 am (Edited on Mar 23 2003, 12:00 pm)
|
|
nevermind fixed it
|
Copyright © 2024 BYOND Software.
All rights reserved.
Nope, it shouldn't be doing that at all. Nothing in your code shows it to be changing the var of any turf besides T, which is just one specific turf.
A lot of this code could be vastly improved though. For one thing, setting T.density=1 is redundant. The icon_state for when T.dig==0 is the same for every turf. The various icon_state settings could be made into a formula. T.dig==3 is a case that will never even happen. (Think about it; if T.dig starts at 3, and you subtract 1 before checking it each time, the highest it'll be when you check is 2.) And finally, you should really check for T being null in case the mob tries to dig out the side of the map.
Lummox JR