AssignStartingPlots.PlaceResourceImpact (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:PlaceResourceImpact(int x, int y, int impact_table_number, int radius)
Parameters
x: No description available. y: No description available. impact_table_number: No description available. radius: No description available.
Source code samples
Too many occurences. Only 50 out of 176 are listed.
Amazon_XP.lua (G&K)
DLC/Expansion/Maps/Amazon_XP.lua
1422
|
self:PlaceResourceImpact(x, y, 1, strat_radius); |
AssignStartingPlots.lua
Gameplay/Lua/AssignStartingPlots.lua
5648
|
self:PlaceResourceImpact(x, y, 6, math.floor(iH / 5)) -- Natural Wonders layer |
5649
|
self:PlaceResourceImpact(x, y, 1, 0) -- Strategic layer |
5650
|
self:PlaceResourceImpact(x, y, 2, 0) -- Luxury layer |
5651
|
self:PlaceResourceImpact(x, y, 3, 0) -- Bonus layer |
5652
|
self:PlaceResourceImpact(x, y, 5, 0) -- City State layer |
5653
|
self:PlaceResourceImpact(x, y, 7, 1) -- Marble layer |
5765
|
self:PlaceResourceImpact(x, y, 3, 1) -- Bonus layer |
5766
|
self:PlaceResourceImpact(x, y, 4, 1) -- Fish layer |
5767
|
self:PlaceResourceImpact(x, y, 5, 1) -- City State layer |
AssignStartingPlots.lua (G&K)
DLC/Expansion/Gameplay/Lua/AssignStartingPlots.lua
2113
|
self:PlaceResourceImpact(x, y, 1, 0) -- Strategic layer, at impact site only. |
2114
|
self:PlaceResourceImpact(x, y, 2, 3) -- Luxury layer, set all plots within this civ start as off limits. |
2115
|
self:PlaceResourceImpact(x, y, 3, 3) -- Bonus layer |
2116
|
self:PlaceResourceImpact(x, y, 4, 3) -- Fish layer |
2117
|
self:PlaceResourceImpact(x, y, 6, 4) -- Natural Wonders layer, set a minimum distance of 5 plots (4 ripples) away. |
2118
|
-- Now the main data layer, for start points themselves, and the City State data layer. |
2119
|
-- Place Impact! |
2120
|
local impactPlotIndex = y * iW + x + 1; |
4297
|
self:PlaceResourceImpact(conv_x, conv_y, 1, 0) -- Disallow strategic resources at this plot, to keep it a farm plot. |
4298
|
end |
5974
|
self:PlaceResourceImpact(x, y, 6, math.floor(iH / 5)) -- Natural Wonders layer |
5975
|
self:PlaceResourceImpact(x, y, 1, 1) -- Strategic layer |
5976
|
self:PlaceResourceImpact(x, y, 2, 1) -- Luxury layer |
5977
|
self:PlaceResourceImpact(x, y, 3, 1) -- Bonus layer |
5978
|
self:PlaceResourceImpact(x, y, 5, 1) -- City State layer |
5979
|
self:PlaceResourceImpact(x, y, 7, 1) -- Marble layer |
5980
|
local plotIndex = y * iW + x + 1; |
6632
|
self:PlaceResourceImpact(x, y, 5, 4) -- City State layer |
6633
|
self:PlaceResourceImpact(x, y, 2, 3) -- Luxury layer |
6634
|
self:PlaceResourceImpact(x, y, 1, 0) -- Strategic layer, at start point only. |
6635
|
self:PlaceResourceImpact(x, y, 3, 3) -- Bonus layer |
6636
|
self:PlaceResourceImpact(x, y, 4, 3) -- Fish layer |
6637
|
self:PlaceResourceImpact(x, y, 7, 3) -- Marble layer |
6638
|
local impactPlotIndex = y * iW + x + 1; |
6687
|
self:PlaceResourceImpact(cs_x, cs_y, 5, 4) -- City State layer |
6688
|
self:PlaceResourceImpact(cs_x, cs_y, 2, 3) -- Luxury layer |
6689
|
self:PlaceResourceImpact(cs_x, cs_y, 1, 0) -- Strategic layer, at start point only. |
6690
|
self:PlaceResourceImpact(cs_x, cs_y, 3, 3) -- Bonus layer |
6691
|
self:PlaceResourceImpact(cs_x, cs_y, 4, 3) -- Fish layer |
6692
|
self:PlaceResourceImpact(cs_x, cs_y, 7, 3) -- Marble layer |
6693
|
local impactPlotIndex = cs_y * iW + cs_x + 1; |
7510
|
self:PlaceResourceImpact(x, y, impact_table_number, res_min[use_this_res_index] + res_addition); |
7674
|
self:PlaceResourceImpact(x, y, impact_table_number, rad) |
7675
|
end |
8936
|
self:PlaceResourceImpact(x, y, 2, 1) |
8937
|
self:PlaceResourceImpact(x, y, 7, 6) |
8938
|
break |
9147
|
self:PlaceResourceImpact(x, y, 4, fish_radius); |
Europe_Scenario.lua (G&K)
DLC/Expansion/Scenarios/MedievalScenario/Europe_Scenario.lua
1730
|
self:PlaceResourceImpact(x, y, 5, 3) -- City State layer *** Custom for Europe Scenario, down from 4 *** |
1731
|
self:PlaceResourceImpact(x, y, 2, 3) -- Luxury layer |
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.