When using initial on the appearance_flags variable, it will always return the value 0, regardless of the compile time value.
Code Snippet (if applicable) to Reproduce Problem:
world
fps = 25 // 25 frames per second
icon_size = 32 // 32x32 icon size by default
view = 6 // show up to 6 tiles outward from center (13x13 view)
maxx = 30
maxy = 30
loop_checks = 0
// Make objects move 8 pixels per tick when walking
mob
step_size = 8
obj
step_size = 8
/obj/thing
appearance_flags = NO_CLIENT_COLOR
client/verb/test_appearance_flags()
var/obj/thing/test = new()
world << "appearance flags using initial, [initial(test.appearance_flags)]"
world << "appearance flags of new'd object [test.appearance_flags]"
Expected Results:
In my test case both should return NO_CLIENT_COLOR (works the same with any other flag)
Actual Results:
Initial returns 0, the new'd object has NO_CLIENT_COLOR
Does the problem occur:
Every time? Or how often?
Yes every time