The information about maps at wiki.kolmafia.us is spare, so I have the following question:
If I wish to create a map of maps, is the syntax: type [type] [type] or type [type,type]?
Example:
I wish to do this:
What should the declaration of the Disguises Map look like? The key to Disguises would be location, the key in each submap would be item, and the values would be throwaway ints.
If I wish to create a map of maps, is the syntax: type [type] [type] or type [type,type]?
Example:
I wish to do this:
Code:
boolean disguised;
if(count(Disguises[WorldState.CurrentGoal.area]) > 0) {
disguised = true;
} else {
diguised = false;
}
if(disguised) {
foreach Thing in Disguises[WorldState.CurrentGoal.area] {
if(!have_equipped(Thing) { disguised = false; }
}
}
What should the declaration of the Disguises Map look like? The key to Disguises would be location, the key in each submap would be item, and the values would be throwaway ints.