AssignStartingPlots.ProcessResourceList (Civ5 API)
This page is a part of the Lua and UI Reference (Civ5).
This function is a member of AssignStartingPlots. This is an instance method, invoke it with a colon. |
Usage
void AssignStartingPlots:ProcessResourceList(int frequency, int impact_table_number, table(int => int) plot_list, table(int => table(int => ResourceType)) resources_to_place)
Parameters
frequency: No description available. impact_table_number: No description available. plot_list: No description available. resources_to_place: No description available.
Source code samples
Too many occurences. Only 50 out of 146 are listed.
Amazon_XP.lua (G&K)
DLC/Expansion/Maps/Amazon_XP.lua
1442
|
self:ProcessResourceList(10, 1, self.marsh_list, resources_to_place) |
1444
|
local resources_to_place = { |
1447
|
self:ProcessResourceList(13, 1, self.desert_flat_no_feature, resources_to_place) |
1449
|
local resources_to_place = { |
1453
|
self:ProcessResourceList(22, 1, self.hills_list, resources_to_place) |
1455
|
local resources_to_place = { |
1458
|
self:ProcessResourceList(75, 1, self.jungle_flat_list, resources_to_place) |
1460
|
self:AddModernMinorStrategicsToCityStates() |
1471
|
self:ProcessResourceList(99999, 1, self.hills_list, resources_to_place) -- 99999 means one per that many tiles: a single instance. |
1472
|
end |
1476
|
self:ProcessResourceList(99999, 1, self.land_list, resources_to_place) |
1477
|
end |
1481
|
self:ProcessResourceList(99999, 1, self.hills_list, resources_to_place) |
1482
|
end |
1513
|
self:ProcessResourceList(10, 3, self.desert_wheat_list, resources_to_place) |
1515
|
local resources_to_place = { |
1517
|
self:ProcessResourceList(17, 3, self.banana_list, resources_to_place) |
1519
|
local resources_to_place = { |
1521
|
self:ProcessResourceList(17, 3, self.plains_flat_no_feature, resources_to_place) |
1523
|
local resources_to_place = { |
1525
|
self:ProcessResourceList(20, 3, self.grass_flat_no_feature, resources_to_place) |
1527
|
local resources_to_place = { |
1529
|
self:ProcessResourceList(20, 3, self.dry_grass_flat_no_feature, resources_to_place) |
1531
|
local resources_to_place = { |
1533
|
self:ProcessResourceList(11, 3, self.hills_open_list, resources_to_place) |
1535
|
local resources_to_place = { |
1537
|
self:ProcessResourceList(19, 3, self.desert_flat_no_feature, resources_to_place) |
1539
|
local resources_to_place = { |
1541
|
self:ProcessResourceList(20, 3, self.forest_flat_that_are_not_tundra, resources_to_place) |
1543
|
end |
AssignStartingPlots.lua (G&K)
DLC/Expansion/Gameplay/Lua/AssignStartingPlots.lua
9406
|
self:ProcessResourceList(9 / infertility_quotient, 3, dry_hills, resources_to_place) |
9407
|
end |
9411
|
self:ProcessResourceList(14 / infertility_quotient, 3, jungles, resources_to_place) |
9412
|
end |
9416
|
self:ProcessResourceList(14 / infertility_quotient, 3, flat_tundra, resources_to_place) |
9417
|
end |
9421
|
self:ProcessResourceList(18 / infertility_quotient, 3, flat_plains, resources_to_place) |
9422
|
end |
9426
|
self:ProcessResourceList(20 / infertility_quotient, 3, flat_grass, resources_to_place) |
9427
|
end |
9431
|
self:ProcessResourceList(24 / infertility_quotient, 3, forests, resources_to_place) |
9432
|
end |
9670
|
self:ProcessResourceList(9, 1, self.marsh_list, resources_to_place) |
9672
|
local resources_to_place = { |
9676
|
self:ProcessResourceList(16, 1, self.tundra_flat_no_feature, resources_to_place) |
9678
|
local resources_to_place = { |
9682
|
self:ProcessResourceList(17, 1, self.snow_flat_list, resources_to_place) |
9684
|
local resources_to_place = { |
9698
|
self:ProcessResourceList(33, 1, self.jungle_flat_list, resources_to_place) |
9699
|
local resources_to_place = { |
9702
|
self:ProcessResourceList(39, 1, self.forest_flat_list, resources_to_place) |
9704
|
local resources_to_place = { |
9706
|
self:ProcessResourceList(33, 1, self.dry_grass_flat_no_feature, resources_to_place) |
9707
|
local resources_to_place = { |
9709
|
self:ProcessResourceList(33, 1, self.plains_flat_no_feature, resources_to_place) |
9711
|
self:AddModernMinorStrategicsToCityStates() -- Added spring 2011 |
9732
|
self:ProcessResourceList(99999, 1, self.plains_flat_no_feature, resources_to_place) |
9733
|
end |
9737
|
self:ProcessResourceList(99999, 1, self.dry_grass_flat_no_feature, resources_to_place) |
9738
|
end |
9774
|
self:ProcessResourceList(8 * bonus_multiplier, 3, self.extra_deer_list, resources_to_place) |
9776
|
local resources_to_place = { |
9778
|
self:ProcessResourceList(10 * bonus_multiplier, 3, self.desert_wheat_list, resources_to_place) |
9780
|
local resources_to_place = { |
9782
|
self:ProcessResourceList(12 * bonus_multiplier, 3, self.tundra_flat_no_feature, resources_to_place) |
9784
|
local resources_to_place = { |
9786
|
self:ProcessResourceList(14 * bonus_multiplier, 3, self.banana_list, resources_to_place) |
9788
|
local resources_to_place = { |
9790
|
self:ProcessResourceList(27 * bonus_multiplier, 3, self.plains_flat_no_feature, resources_to_place) |
9792
|
local resources_to_place = { |
9794
|
self:ProcessResourceList(18 * bonus_multiplier, 3, self.grass_flat_no_feature, resources_to_place) |
9796
|
local resources_to_place = { |
9798
|
self:ProcessResourceList(20 * bonus_multiplier, 3, self.dry_grass_flat_no_feature, resources_to_place) |
9800
|
local resources_to_place = { |
9802
|
self:ProcessResourceList(13 * bonus_multiplier, 3, self.hills_open_list, resources_to_place) |
9804
|
local resources_to_place = { |
9806
|
self:ProcessResourceList(15 * bonus_multiplier, 3, self.tundra_flat_no_feature, resources_to_place) |
9808
|
local resources_to_place = { |
9810
|
self:ProcessResourceList(19 * bonus_multiplier, 3, self.desert_flat_no_feature, resources_to_place) |
9812
|
local resources_to_place = { |
9814
|
self:ProcessResourceList(25 * bonus_multiplier, 3, self.forest_flat_that_are_not_tundra, resources_to_place) |
9815
|
end |
Great_Plains.lua
Maps/Great_Plains.lua
1422
|
self:ProcessResourceList(40, 1, self.dry_grass_flat_no_feature, resources_to_place) |
1423
|
local resources_to_place = { |
1425
|
self:ProcessResourceList(67, 1, self.plains_flat_no_feature, resources_to_place) |
1427
|
self:AddModernMinorStrategicsToCityStates() |
1546
|
self:ProcessResourceList(39, 3, self.plains_flat_no_feature, resources_to_place) |
1548
|
local resources_to_place = { |
1550
|
self:ProcessResourceList(13, 3, self.desert_wheat_list, resources_to_place) |
1552
|
local resources_to_place = { |
1554
|
self:ProcessResourceList(37, 3, self.plains_flat_no_feature, resources_to_place) |
1556
|
local resources_to_place = { |
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.