Follow up to f42c2ff

Fixes some missing randoms

Thanks to @aleos89
This commit is contained in:
Lemongrass3110 2017-10-15 02:19:58 +02:00
parent 2606cf977f
commit b196b46bd5

View File

@ -2304,13 +2304,13 @@ end;
OnStart:
initnpctimer;
for ( .@i = 11; .@i <= 20; .@i++ ) {
specialeffect .effect[getarraysize(.effect)], AREA, instance_npcname("#fireworks_" +.@i);
specialeffect .effect[rand(getarraysize(.effect))], AREA, instance_npcname("#fireworks_" +.@i);
}
end;
OnTimer6000:
initnpctimer;
for ( .@i = 0; .@i < 5; .@i++) {
specialeffect .effect[getarraysize(.effect)], AREA, instance_npcname("#fireworks_" + rand(11,20));
specialeffect .effect[rand(getarraysize(.effect))], AREA, instance_npcname("#fireworks_" + rand(11,20));
}
end;