Skip to content

Instantly share code, notes, and snippets.

@mariogeiger
Created July 29, 2015 13:07
Show Gist options
  • Save mariogeiger/dbc6a7155f396fc38cfb to your computer and use it in GitHub Desktop.
Save mariogeiger/dbc6a7155f396fc38cfb to your computer and use it in GitHub Desktop.
getMessages() plante
global DATA;
DATA = [];
for (var message in getMessages()) { // à cette ligne : Interruption IA : Erreur d'execution : Trop d'opérations éxécutées pour ce tour
var author = getMessageAuthor(message);
if (getFarmerID(author) !== getFarmerID()) continue;
if (getMessageType(message) !== MESSAGE_CUSTOM) continue;
var content = getMessageParams(message);
if (typeOf(content) !== TYPE_ARRAY or count(content) !== 2) continue;
DATA[content[0]] = content[1];
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment