Home
last modified time | relevance | path

Searched refs:SyncRand (Results 1 – 25 of 100) sorted by relevance

1234

/dports/games/wyrmsun/Wyrmsun-3.5.4/scripts/
H A Dtriggers.lua30 …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 Dcampaigns.lua32 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 Dmap_generation.lua307 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 Dbrazilian_events.lua36 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 Dgeneric_events.lua32SyncRand(100) < math.min(5, math.floor(GetFactionResource(EventFaction.Civilization, EventFaction.…
37 …if (SyncRand(100) < 1 and ProvinceHasBuildingClass(WorldMapProvinces[province_key].Name, "lumber-m…
62SyncRand(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 Dnorse_events.lua40 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 Dgermanic_events.lua124 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 Dchristianity_events_old.lua35 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 Dearth_events.lua63 and SyncRand(100) < 1
89 and SyncRand(100) < 33
/dports/games/wyrmsun/Wyrmsun-3.5.4/scripts/civilizations/germanic/
H A Dtriggers.lua30 …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 Daction_explore.cpp60 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 Daction_still.cpp167 || ((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 Dtriggers_austrian.lua30 …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 Dmissile_whirlwind.cpp73 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 Dmissile_whirlwind.cpp77 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 Dutil.h49 extern int SyncRand(); /// Syncron rand
50 extern int SyncRand(int max); /// Syncron rand
/dports/games/wyrmgus/Wyrmgus-3.5.4/src/map/
H A Dmapfield.cpp195 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 Dspell_areabombardment.cpp101 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 Dspell_areabombardment.cpp101 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 Dutil.cpp80 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 Dutil.h52 extern int SyncRand(); /// Syncron rand
53 extern int SyncRand(int max); /// Syncron rand
/dports/games/stratagus/stratagus-3.2.0/src/tolua/
H A Dstratagus.pkg95 extern int SyncRand(void);
96 extern int SyncRand(int max);
/dports/games/wyrmsun/Wyrmsun-3.5.4/maps/random/
H A Drandom-map-valley.sms1 if (SyncRand(2) == 0) then
/dports/games/stratagus/stratagus-3.2.0/src/animation/
H A Danimation_randomrotate.cpp47 if ((SyncRand() >> 8) & 1) { in Action()
/dports/games/wyrmgus/Wyrmgus-3.5.4/src/animation/
H A Danimation_randomrotate.cpp47 if ((SyncRand() >> 8) & 1) { in Action()

1234