Numbered Steps to Reproduce Problem:
Code Snippet (if applicable) to Reproduce Problem:
/mob/var/list/gender_list = list(MALE = "Male")
/mob/verb/test()
world << "gender: [gender], gender list key: [gender_list[gender]]"
Expected Results:
gender: male, gender list key: Male
Actual Results:
gender: male, gender list key:
Does the problem occur:
The problem occurs everytime.
When does the problem NOT occur?
When using "male" instead of MALE.
Workarounds:
Use the string version ("male") instead of the constant (MALE).
This can be resolved by adding the gender constants (which are global constants) as #define macros:
Since macros are replaced before compilation, it's as if you used the text literals in the first place.