GetShuffledCopyOfTable (Civ5 API)
This page is a part of the Lua and UI Reference (Civ5).
This function is a global function. Use: include("MapmakerUtilities.lua")
|
Usage
table(int => PlayerID) GetShuffledCopyOfTable(table(int => int) incoming_table)
Returned Value
- No description available.
Parameters
incoming_table: No description available.
Source code samples
Too many occurences. Only 50 out of 322 are listed.
Amazon_XP.lua (G&K)
DLC/Expansion/Maps/Amazon_XP.lua
1233
|
local randomized_version = GetShuffledCopyOfTable(remaining_resource_IDs) |
1234
|
local countdown = math.min(self.iNumTypesUnassigned, maxToDisable); |
AssignStartingPlots.lua
Gameplay/Lua/AssignStartingPlots.lua
5525
|
local candidate_plot_list = GetShuffledCopyOfTable(self.geyser_list) |
5526
|
for loop, plotIndex in ipairs(candidate_plot_list) do |
5781
|
local candidate_plot_list = GetShuffledCopyOfTable(self.krakatoa_list) |
5782
|
for loop, plotIndex in ipairs(candidate_plot_list) do |
5822
|
local candidate_plot_list = GetShuffledCopyOfTable(self.mystical_list) |
5823
|
for loop, plotIndex in ipairs(candidate_plot_list) do |
AssignStartingPlots.lua (G&K)
DLC/Expansion/Gameplay/Lua/AssignStartingPlots.lua
3750
|
shuf_list = GetShuffledCopyOfTable(oil_list) |
3751
|
iNumLeftToPlace = self:PlaceSpecificNumberOfResources(self.oil_ID, oil_amt, 1, 1, -1, 0, 0, shuf_list); |
3757
|
shuf_list = GetShuffledCopyOfTable(iron_fallback) |
3758
|
iNumLeftToPlace = self:PlaceSpecificNumberOfResources(self.iron_ID, iron_amt, 1, 1, -1, 0, 0, shuf_list); |
3761
|
shuf_list = GetShuffledCopyOfTable(horse_fallback) |
3762
|
iNumLeftToPlace = self:PlaceSpecificNumberOfResources(self.horse_ID, horse_amt, 1, 1, -1, 0, 0, shuf_list); |
4181
|
randomized_second_ring_adjustments = GetShuffledCopyOfTable(self.secondRingYIsEven); |
4313
|
randomized_third_ring_adjustments = GetShuffledCopyOfTable(self.thirdRingYIsEven); |
4715
|
local shuffled_coastal_civs = GetShuffledCopyOfTable(civs_needing_coastal_start); |
4719
|
shuffled_coastal_regions = GetShuffledCopyOfTable(regions_with_coastal_start); |
4805
|
local shuffled_river_civs = GetShuffledCopyOfTable(civs_needing_river_start); |
4808
|
shuffled_river_regions = GetShuffledCopyOfTable(regions_with_river_start); |
4811
|
shuffled_near_river_regions = GetShuffledCopyOfTable(regions_with_near_river_start); |
6478
|
local randomized_inland = GetShuffledCopyOfTable(inland_plot_list); |
7236
|
self.coast_next_to_land_list = GetShuffledCopyOfTable(temp_coast_next_to_land_list) |
7237
|
self.marsh_list = GetShuffledCopyOfTable(temp_marsh_list) |
7238
|
self.flood_plains_list = GetShuffledCopyOfTable(temp_flood_plains_list) |
7239
|
self.hills_open_list = GetShuffledCopyOfTable(temp_hills_open_list) |
7240
|
self.hills_covered_list = GetShuffledCopyOfTable(temp_hills_covered_list) |
7241
|
self.hills_jungle_list = GetShuffledCopyOfTable(temp_hills_jungle_list) |
7242
|
self.hills_forest_list = GetShuffledCopyOfTable(temp_hills_forest_list) |
7246
|
self.plains_flat_no_feature = GetShuffledCopyOfTable(temp_plains_flat_no_feature) |
7247
|
self.dry_grass_flat_no_feature = GetShuffledCopyOfTable(temp_dry_grass_flat_no_feature) |
7249
|
self.tundra_flat_including_forests = GetShuffledCopyOfTable(temp_tundra_flat_including_forests) |
7250
|
self.forest_flat_that_are_not_tundra = GetShuffledCopyOfTable(temp_forest_flat_that_are_not_tundra) |
7252
|
self.grass_flat_no_feature = GetShuffledCopyOfTable(temp_grass_flat_no_feature) |
7253
|
self.tundra_flat_no_feature = GetShuffledCopyOfTable(temp_tundra_flat_no_feature) |
7256
|
self.land_list = GetShuffledCopyOfTable(temp_land_list) |
7257
|
self.coast_list = GetShuffledCopyOfTable(temp_coast_list) |
7260
|
self.desert_wheat_list = GetShuffledCopyOfTable(temp_desert_wheat_list) |
7261
|
self.banana_list = GetShuffledCopyOfTable(temp_banana_list) |
8548
|
shuf_list = GetShuffledCopyOfTable(luxury_plot_lists[primary]) |
8549
|
iNumLeftToPlace = self:PlaceSpecificNumberOfResources(this_region_luxury, 1, iNumLeftToPlace, 1, -1, 0, 0, shuf_list); |
8551
|
shuf_list = GetShuffledCopyOfTable(luxury_plot_lists[secondary]) |
8552
|
iNumLeftToPlace = self:PlaceSpecificNumberOfResources(this_region_luxury, 1, iNumLeftToPlace, 1, -1, 0, 0, shuf_list); |
8559
|
shuf_list = GetShuffledCopyOfTable(luxury_plot_lists[quaternary]) |
8560
|
iNumLeftToPlace = self:PlaceSpecificNumberOfResources(this_region_luxury, 1, iNumLeftToPlace, 1, -1, 0, 0, shuf_list); |
8581
|
shuf_list = GetShuffledCopyOfTable(luxury_plot_lists[secondary]) |
8582
|
randoms_to_place = self:PlaceSpecificNumberOfResources(random_res, 1, 1, 1, -1, 0, 0, shuf_list); |
8585
|
shuf_list = GetShuffledCopyOfTable(luxury_plot_lists[tertiary]) |
8586
|
randoms_to_place = self:PlaceSpecificNumberOfResources(random_res, 1, 1, 1, -1, 0, 0, shuf_list); |
8589
|
shuf_list = GetShuffledCopyOfTable(luxury_plot_lists[quaternary]) |
8590
|
randoms_to_place = self:PlaceSpecificNumberOfResources(random_res, 1, 1, 1, -1, 0, 0, shuf_list); |
8678
|
shuf_list = GetShuffledCopyOfTable(luxury_plot_lists[primary]) |
8679
|
local iNumLeftToPlace = self:PlaceSpecificNumberOfResources(use_this_ID, 1, 1, 1, -1, 0, 0, shuf_list); |
8685
|
shuf_list = GetShuffledCopyOfTable(luxury_plot_lists[tertiary]) |
8686
|
iNumLeftToPlace = self:PlaceSpecificNumberOfResources(use_this_ID, 1, 1, 1, -1, 0, 0, shuf_list); |
8728
|
shuf_list = GetShuffledCopyOfTable(luxury_plot_lists[secondary]) |
8729
|
iNumLeftToPlace = self:PlaceSpecificNumberOfResources(res_ID, 1, iNumLeftToPlace, 0.3, 2, 0, 3, shuf_list); |
8732
|
shuf_list = GetShuffledCopyOfTable(luxury_plot_lists[tertiary]) |
8733
|
iNumLeftToPlace = self:PlaceSpecificNumberOfResources(res_ID, 1, iNumLeftToPlace, 0.4, 2, 0, 2, shuf_list); |
8736
|
shuf_list = GetShuffledCopyOfTable(luxury_plot_lists[quaternary]) |
8737
|
iNumLeftToPlace = self:PlaceSpecificNumberOfResources(res_ID, 1, iNumLeftToPlace, 0.5, 2, 0, 2, shuf_list); |
9273
|
local shuf_list = GetShuffledCopyOfTable(fish_list) |
9274
|
local iNumLeftToPlace = self:PlaceSpecificNumberOfResources(self.fish_ID, 1, 1, 1, -1, 0, 0, shuf_list); |
9298
|
local shuffled_hills_regions = GetShuffledCopyOfTable(hills_regions) |
9299
|
for loop, region_number in ipairs(shuffled_hills_regions) do |
Europe.lua (G&K)
DLC/Expansion/Maps/Europe.lua
1157
|
local candidate_plot_list = GetShuffledCopyOfTable(self.sinai_list) |
1158
|
for loop, plotIndex in ipairs(candidate_plot_list) do |
1215
|
local NW_shuffled_order = GetShuffledCopyOfTable(NW_eligibility_order); |
FeatureGenerator.lua (G&K)
DLC/Expansion/Gameplay/Lua/FeatureGenerator.lua
0418
|
local beta_list = GetShuffledCopyOfTable(temp_beta_list) |
0419
|
local gamma_list = GetShuffledCopyOfTable(temp_gamma_list) |
0420
|
local delta_list = GetShuffledCopyOfTable(temp_delta_list) |
Hemispheres.lua (G&K)
DLC/Expansion/Maps/Hemispheres.lua
1149
|
local westListShuffled = GetShuffledCopyOfTable(westList) |
1150
|
local eastListShuffled = GetShuffledCopyOfTable(eastList) |
North_vs_South.lua
Maps/North_vs_South.lua
0622
|
local northListShuffled = GetShuffledCopyOfTable(northList) |
0623
|
local southListShuffled = GetShuffledCopyOfTable(southList) |
0624
|
for region_number, player_ID in ipairs(southListShuffled) do |
Skirmish.lua
Maps/Skirmish.lua
0206
|
local east_shuffled = GetShuffledCopyOfTable(east_half) |
0207
|
local iNumMountainsPerColumn = math.max(math.floor(iH * 0.225), math.floor((iH / 4) - 1)); |
1180
|
shuf_list = GetShuffledCopyOfTable(luxury_plot_lists[primary]) |
1181
|
iNumLeftToPlace = self:PlaceSpecificNumberOfResources(res_ID, res_amt, iNumThisLuxToPlace, 0.3, 1, 1, 1, shuf_list); |
1199
|
shuf_list = GetShuffledCopyOfTable(luxury_plot_lists[secondary]) |
1200
|
iNumLeftToPlace = self:PlaceSpecificNumberOfResources(res_ID, res_sm, iNumLeftToPlace, 0.3, 1, 0, 0, shuf_list); |
1203
|
shuf_list = GetShuffledCopyOfTable(luxury_plot_lists[tertiary]) |
1204
|
iNumLeftToPlace = self:PlaceSpecificNumberOfResources(res_ID, res_sm, iNumLeftToPlace, 0.4, 1, 0, 0, shuf_list); |
1207
|
shuf_list = GetShuffledCopyOfTable(luxury_plot_lists[quaternary]) |
1208
|
iNumLeftToPlace = self:PlaceSpecificNumberOfResources(res_ID, res_sm, iNumLeftToPlace, 0.5, 1, 0, 0, shuf_list); |
The initial version of this page was created by the Civ5 API Bot, see the Civ5 API Reference FAQ. Some of the texts come from the 2kgames' wiki and most of code samples are copyrighted to Firaxis.
Functions' signatures were either copied from the 2kgames' wiki, or infered from the Lua source files and the binaries. Errors are possible.
Contributors may find help in the Contributors guide to the Civ5 API.