Changeset View
Changeset View
Standalone View
Standalone View
binaries/data/mods/public/gui/gamesettings/attributes/Seeds.js
Show All 20 Lines | fromInitAttributes(attribs) | ||||
if (this.getLegacySetting(attribs, "AISeed") !== undefined) | if (this.getLegacySetting(attribs, "AISeed") !== undefined) | ||||
this.AIseed = this.getLegacySetting(attribs, "AISeed"); | this.AIseed = this.getLegacySetting(attribs, "AISeed"); | ||||
} | } | ||||
pickRandomItems() | pickRandomItems() | ||||
{ | { | ||||
this.seed = randIntExclusive(0, Math.pow(2, 32)); | this.seed = randIntExclusive(0, Math.pow(2, 32)); | ||||
this.AIseed = randIntExclusive(0, Math.pow(2, 32)); | this.AIseed = randIntExclusive(0, Math.pow(2, 32)); | ||||
return { "picked": true, "hasValue": true }; | |||||
} | } | ||||
}; | }; |
Wildfire Games · Phabricator