AssignStartingPlots.GenerateLuxuryPlotListsAtCitySite (Civ5 API)

From Civilization Modding Wiki
Revision as of 13:58, 20 September 2012 by DonQuich (talk | contribs) (Bot update)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

This page is a part of the Lua and UI Reference (Civ5).


Function.png This function is a member of AssignStartingPlots.

This is an instance method, invoke it with a colon.


Usage

unknown AssignStartingPlots:GenerateLuxuryPlotListsAtCitySite(int x, int y, int radius, bool removeFeatureIce)


Returned Value

No description available.

Parameters

x: No description available.
y: No description available.
radius: No description available.
removeFeatureIce: No description available.


Source code samples

Redundant occurences have been removed.

AssignStartingPlots.lua (G&K)

DLC/Expansion/Gameplay/Lua/AssignStartingPlots.lua
3831
self:GenerateLuxuryPlotListsAtCitySite(x, y, 1, true)
3833
-- Set up Conditions checks.
3834
local alongOcean = false;
6631
self:GenerateLuxuryPlotListsAtCitySite(x, y, 1, true) -- Removes Feature Ice from coasts adjacent to the city state's new location
6632
self:PlaceResourceImpact(x, y, 5, 4) -- City State layer
6686
self:GenerateLuxuryPlotListsAtCitySite(cs_x, cs_y, 1, true) -- Removes Feature Ice from coasts adjacent to the city state's new location
6687
self:PlaceResourceImpact(cs_x, cs_y, 5, 4) -- City State layer
8527
luxury_plot_lists = self:GenerateLuxuryPlotListsAtCitySite(x, y, 2, false)
8529
-- First pass, checking only first two rings with a 50% ratio.
8530
shuf_list = GetShuffledCopyOfTable(luxury_plot_lists[primary])
8547
luxury_plot_lists = self:GenerateLuxuryPlotListsAtCitySite(x, y, 3, false)
8548
shuf_list = GetShuffledCopyOfTable(luxury_plot_lists[primary])
8677
luxury_plot_lists = self:GenerateLuxuryPlotListsAtCitySite(x, y, 2, false)
8678
shuf_list = GetShuffledCopyOfTable(luxury_plot_lists[primary])


Europe_Scenario.lua (G&K)

DLC/Expansion/Scenarios/MedievalScenario/Europe_Scenario.lua
1729
self:GenerateLuxuryPlotListsAtCitySite(x, y, 1, true) -- Removes Feature Ice from coasts adjacent to the city state's new location
1730
self:PlaceResourceImpact(x, y, 5, 3) -- City State layer *** Custom for Europe Scenario, down from 4 ***



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.