The recent changes to typesof seem to make it return incorrect types.
Code Snippet (if applicable) to Reproduce Problem:
datum/type
var/name = "default type"
datum/type/new1
name = "new1"
datum/type/new2
name = "new2"
datum/type/new3
name = "new3"
world/New()
..()
var/list/paths = typesof(/datum/type) -/datum/type
for(var/path in paths)
var/datum/type/new_type = new path
world.log << "[new_type.name]"
Expected Results:
new1
new2
new3
Actual Results:
new1
new1
new2
new3
Does the problem occur:
Every time? Or how often?
N/A
In other games?
Yes.
In other user accounts?
N/A
On other computers?
N/A
When does the problem NOT occur?
Always occurs.
Did the problem NOT occur in any earlier versions? If so, what was the last version that worked? (Visit http://www.byond.com/download/build to download old versions for testing.)
The previous version.
Workarounds:
N/A