/dports/games/wyrmsun/Wyrmsun-3.5.4/scripts/ |
H A D | triggers.lua | 30 …if (SyncRand(100) ~= 0) then -- 1% chance this will trigger every time it is checked (and 1% for e… 34 …if (GetPlayerData(i, "TotalNumUnitsConstructed") > 0 and SyncRand(100) == 0 and GetFactionClassUni… 64 …if (SyncRand(100) ~= 0) then -- 1% chance this will trigger every time it is checked (and 1% for e… 68 …if (GetPlayerData(i, "TotalNumUnitsConstructed") > 0 and SyncRand(100) == 0 and GetPlayerData(i, "… 98 …if (SyncRand(100) ~= 0) then -- 1% chance this will trigger every time it is checked (and 1% for e… 144 …if (SyncRand(100) ~= 0) then -- 1% chance this will trigger every time it is checked (and 1% for e… 178 …if (SyncRand(100) ~= 0) then -- 1% chance this will trigger every time it is checked (and 1% for e… 212 …if (SyncRand(100) ~= 0) then -- 1% chance this will trigger every time it is checked (and 1% for e… 246 …if (SyncRand(100) ~= 0) then -- 1% chance this will trigger every time it is checked (and 1% for e… 250 …if (GetPlayerData(i, "TotalNumUnitsConstructed") > 0 and SyncRand(100) == 0 and GetFactionClassUni… [all …]
|
H A D | campaigns.lua | 32 StartDate = {-3000, SyncRand(12) + 1, 1}, 42 StartDate = {-3000, SyncRand(12) + 1, 1}, 54 StartDate = {-2900, SyncRand(12) + 1, 1}, 64 StartDate = {-2800, SyncRand(12) + 1, 1}, 76 StartDate = {-2800, SyncRand(12) + 1, 1}, 102 …StartDate = {-1600, SyncRand(12) + 1, 1}, -- the introduction of stronger social differentiation o… 112 …StartDate = {-1101, SyncRand(12) + 1, 1}, -- 1100 BC was the first occupation of Gotland (by presu…
|
H A D | map_generation.lua | 307 RandomNumber = SyncRand(4) 1144 RandomNumber = SyncRand(6) 1218 RandomNumber = SyncRand(3) 1544 RandomNumber = SyncRand(5) 1557 RandomNumber = SyncRand(3) 1566 RandomNumber = SyncRand(3) 1575 RandomNumber = SyncRand(4) 3774 dx = SyncRand(3) - 1 3775 dy = SyncRand(3) - 1 3858 gold_mine_spawn_point = {x + SyncRand(14), y + SyncRand(14)} [all …]
|
/dports/games/wyrmsun/Wyrmsun-3.5.4/scripts/grand_strategy/ |
H A D | brazilian_events.lua | 36 and SyncRand(20) == 0 63 and SyncRand(20) == 0 90 and SyncRand(20) == 0 117 and SyncRand(20) == 0 144 and SyncRand(20) == 0 171 and SyncRand(20) == 0 199 and SyncRand(20) == 0 225 and SyncRand(20) == 0 253 and SyncRand(20) == 0 280 and SyncRand(20) == 0 [all …]
|
H A D | generic_events.lua | 32 …SyncRand(100) < math.min(5, math.floor(GetFactionResource(EventFaction.Civilization, EventFaction.… 37 …if (SyncRand(100) < 1 and ProvinceHasBuildingClass(WorldMapProvinces[province_key].Name, "lumber-m… 62 …SyncRand(100) < math.min(5, math.floor(GetFactionResource(EventFaction.Civilization, EventFaction.… 67 …if (SyncRand(100) < 1 and ProvinceHasBuildingClass(WorldMapProvinces[province_key].Name, "lumber-m… 95 …and SyncRand(100) == 0 -- 1% chance of a smallpox outbreak if bordering a smallpox-afflicted provi… 119 …and SyncRand(10) == 0 -- 10% chance of the smallpox outbreak ceasing (higher chance than the outbr…
|
H A D | norse_events.lua | 40 and SyncRand(100) < 10 63 and SyncRand(100) < 10 85 and SyncRand(100) < 50 112 and SyncRand(100) < 10 134 and SyncRand(100) < 10 207 and SyncRand(100) < 10 233 and SyncRand(100) < 10
|
H A D | germanic_events.lua | 124 and SyncRand(100) < 25 149 and SyncRand(100) < 25 246 and SyncRand(100) < 1 269 and SyncRand(100) < 1 444 and SyncRand(100) < 50
|
H A D | christianity_events_old.lua | 35 and SyncRand(100) < 80 59 and SyncRand(100) < 20 108 …and SyncRand(100) < 10 -- should take a bit until Patrick writes this hymn, as his mission began i… 558 and SyncRand(100) < 5
|
H A D | earth_events.lua | 63 and SyncRand(100) < 1 89 and SyncRand(100) < 33
|
/dports/games/wyrmsun/Wyrmsun-3.5.4/scripts/civilizations/germanic/ |
H A D | triggers.lua | 30 …if (SyncRand(10) ~= 0) then -- 10% chance this will trigger every time it is checked (and 10% for … 34 …if (GetPlayerData(i, "TotalNumUnitsConstructed") > 0 and SyncRand(10) == 0 and GetPlayerData(i, "R… 63 …if (SyncRand(10) ~= 0) then -- 10% chance this will trigger every time it is checked (and 10% for … 67 …if (GetPlayerData(i, "TotalNumUnitsConstructed") > 0 and SyncRand(10) == 0 and GetPlayerData(i, "R…
|
/dports/games/stratagus/stratagus-3.2.0/src/action/ |
H A D | action_explore.cpp | 60 dest.x = SyncRand(Map.Info.MapWidth - 1) + 1; in GetExplorationTarget() 61 dest.y = SyncRand(Map.Info.MapHeight - 1) + 1; in GetExplorationTarget() 67 dest.x = SyncRand(Map.Info.MapWidth - 1) + 1; in GetExplorationTarget() 68 dest.y = SyncRand(Map.Info.MapHeight - 1) + 1; in GetExplorationTarget()
|
H A D | action_still.cpp | 167 || ((SyncRand() % 100) > unit.Type->RandomMovementProbability)) { in MoveRandomly() 173 pos.x += SyncRand(unit.Type->RandomMovementDistance * 2 + 1) - unit.Type->RandomMovementDistance; in MoveRandomly() 174 pos.y += SyncRand(unit.Type->RandomMovementDistance * 2 + 1) - unit.Type->RandomMovementDistance; in MoveRandomly()
|
/dports/games/wyrmsun/Wyrmsun-3.5.4/scripts/civilizations/teuton/ |
H A D | triggers_austrian.lua | 30 …if (SyncRand(10) ~= 0) then -- 10% chance this will trigger every time it is checked (and 10% for … 36 and SyncRand(10) == 0
|
/dports/games/stratagus/stratagus-3.2.0/src/missile/ |
H A D | missile_whirlwind.cpp | 73 newPos.x = center.x + SyncRand() % 5 - 2; in Action() 74 newPos.y = center.y + SyncRand() % 5 - 2; in Action()
|
/dports/games/wyrmgus/Wyrmgus-3.5.4/src/missile/ |
H A D | missile_whirlwind.cpp | 77 newPos.x = center.x + SyncRand() % 5 - 2; in Action() 78 newPos.y = center.y + SyncRand() % 5 - 2; in Action()
|
/dports/games/stratagus/stratagus-3.2.0/src/include/ |
H A D | util.h | 49 extern int SyncRand(); /// Syncron rand 50 extern int SyncRand(int max); /// Syncron rand
|
/dports/games/wyrmgus/Wyrmgus-3.5.4/src/map/ |
H A D | mapfield.cpp | 195 this->OverlaySolidTile = terrain_type->SolidTiles[SyncRand(terrain_type->SolidTiles.size())]; in SetTerrain() 202 this->SolidTile = terrain_type->SolidTiles[SyncRand(terrain_type->SolidTiles.size())]; in SetTerrain() 214 this->OverlayAnimationFrame = SyncRand(terrain_type->SolidAnimationFrames); in SetTerrain() 216 this->AnimationFrame = SyncRand(terrain_type->SolidAnimationFrames); in SetTerrain() 322 …this->OverlaySolidTile = this->OverlayTerrain->DestroyedTiles[SyncRand(this->OverlayTerrain->Destr… in SetOverlayTerrainDestroyed() 326 …this->OverlaySolidTile = this->OverlayTerrain->SolidTiles[SyncRand(this->OverlayTerrain->SolidTile… in SetOverlayTerrainDestroyed() 341 …this->OverlaySolidTile = this->OverlayTerrain->DamagedTiles[SyncRand(this->OverlayTerrain->Damaged… in SetOverlayTerrainDamaged() 345 …this->OverlaySolidTile = this->OverlayTerrain->SolidTiles[SyncRand(this->OverlayTerrain->SolidTile… in SetOverlayTerrainDamaged()
|
/dports/games/stratagus/stratagus-3.2.0/src/spell/ |
H A D | spell_areabombardment.cpp | 101 dpos.x = goalPos.x + SyncRand() % 5 - 2; in Cast() 102 dpos.y = goalPos.y + SyncRand() % 5 - 2; in Cast()
|
/dports/games/wyrmgus/Wyrmgus-3.5.4/src/spell/ |
H A D | spell_areabombardment.cpp | 101 dpos.x = goalPos.x + SyncRand() % 5 - 2; in Cast() 102 dpos.y = goalPos.y + SyncRand() % 5 - 2; in Cast()
|
/dports/games/stratagus/stratagus-3.2.0/src/stratagus/ |
H A D | util.cpp | 80 int SyncRand() in SyncRand() function 101 int SyncRand(int max) in SyncRand() function 103 return SyncRand() % max; in SyncRand()
|
/dports/games/wyrmgus/Wyrmgus-3.5.4/src/include/ |
H A D | util.h | 52 extern int SyncRand(); /// Syncron rand 53 extern int SyncRand(int max); /// Syncron rand
|
/dports/games/stratagus/stratagus-3.2.0/src/tolua/ |
H A D | stratagus.pkg | 95 extern int SyncRand(void); 96 extern int SyncRand(int max);
|
/dports/games/wyrmsun/Wyrmsun-3.5.4/maps/random/ |
H A D | random-map-valley.sms | 1 if (SyncRand(2) == 0) then
|
/dports/games/stratagus/stratagus-3.2.0/src/animation/ |
H A D | animation_randomrotate.cpp | 47 if ((SyncRand() >> 8) & 1) { in Action()
|
/dports/games/wyrmgus/Wyrmgus-3.5.4/src/animation/ |
H A D | animation_randomrotate.cpp | 47 if ((SyncRand() >> 8) & 1) { in Action()
|