parent
2254028365
commit
77eea722af
35 changed files with 471 additions and 17 deletions
|
@ -704,6 +704,7 @@ void Script::addActions(uint16 hotspotId, uint16 actions, uint16 v3) {
|
|||
|
||||
void Script::randomToGeneral(uint16 maxVal, uint16 minVal, uint16 v3) {
|
||||
Common::RandomSource rnd;
|
||||
g_system->getEventManager()->registerRandomSource(rnd, "lureScripts");
|
||||
uint16 v = minVal + rnd.getRandomNumber(maxVal - minVal);
|
||||
Resources::getReference().fieldList().setField(GENERAL, v);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue