Module:Decree/List

编辑说明文档

This module is a list of decrees for use with Module:Decree.

To add a new entry to this list, copy the template below and fill in the information. Note that single or double quotes must be used as in the template

p['<name>'] = {
 reqs = {
  tech = { '<tech>' },
  state = { '<trigger string>', '<trigger string>' },
  owner = { '<trigger string>' }
 },
 desc = "<desc string>",
 modifiers = {
  { '<color>', '<amount>', '<text>', <icon> },
  { '<color>', '<amount>', '<text>', <icon> }
 }
}
Template element Description/Use
<name> The English localized decree name in lowercase; this must match a wiki file with the prefix Decree, see Category:Decree icons
<tech> An unlocking technology; omit block if none
<desc string> Decree's flavor text/description. If omitting, leave as an empty string, i.e. ""
<trigger string> A description of the trigger in state or country scope. Multiple trigger strings can be defined in the same block, which are then prefixed with 'Any of:' in output
modifiers <color> Color effect for the <amount>: use "green", "red", or "inherit" for good, bad, or neutral effects respectively
modifiers <amount> Size of the modifier effect, include + − and % as well as the number
modifiers <text> Localized modifier effect text. Images can be included by including wikitext such as [[File:State status construction.png|link=Construction|24px]].
modifiers <icon> Image or text prefixed before modifier amount. Images can be included by including wikitext such as [[File:State status construction.png|link=Construction|24px]].

Unused reqs can be omitted. The modifier effects can also be entered as a simple string for direct output.


--------------------
-- List of decrees
--------------------
local p = {};

p['emergency relief'] = {
 cost = 50,
 reqs = {
  tech = { 'centralization' },
  state = {
   'State has 20% or more starving pops',
   'State has a [[File:State status famine.png|24px|link=Famine]] famine',
   'State has more than 20% [[File:State status devastation.png|24px|link=Devastation]] devastation',
   'State has a <span class="tooltip" title="Disease Outbreak, Drought, Extreme Winds, Flood, Wildfire">negative</span> [[harvest condition]]'
  }
 },
 desc = "Promote charitable support and care for the state's most unfortunate",
 modifiers = {
  { 'inherit', '−50%', 'Tax collection' },
  { 'green', '+10%', "Infrastructure", "[[File:State status infrastructure.png|24px|link=Infrastructure]]" },
  { 'green', '+5%', 'Market access price impact' },
  { 'green', '+5%', 'Food security' },
 }
}

p['encourage agricultural industry'] = {
 reqs = {
  tech = { 'enclosure' },
  state = { [[State does <span style="color:red; font-weight:bold;">not</span> have another ''Encourage __ Industry'' decree]] }
 },
 desc = "Increase Agricultural and Plantation sector throughput",
 modifiers = {
  { 'green', '+20%', 'Agriculture throughput' },
  { 'green', '+20%', 'Ranches throughput' },
  { 'green', '+20%', 'Plantations throughput' },
 }
}

p['encourage manufacturing industry'] = {
 reqs = {
  tech = { 'manufacturies' },
  state = { [[State does <span style="color:red; font-weight:bold;">not</span> have another ''Encourage __ Industry'' decree]] }
 },
 desc = "Increase Manufacturing and Service sector throughput",
 modifiers = {
  { 'green', '+20%', 'Manufacturing Industries throughput' },
  { 'green', '+20%', 'Service Industries throughput' },
 }
}

p['encourage resource industry'] = {
 reqs = {
  tech = { 'shaft mining' },
  state = { [[State does <span style="color:red; font-weight:bold;">not</span> have another ''Encourage __ Industry'' decree]] }
 },
 desc = "Increase Resource sector throughput",
 modifiers = {
  { 'green', '+20%', 'Mines throughput' },
  { 'green', '+20%', 'Logging Camps throughput' },
  { 'green', '+20%', 'Fishing Wharves throughput' },
  { 'green', '+20%', 'Whaling Stations throughput' },
  { 'green', '+20%', 'Oil Rigs throughput' },
  { 'green', '+20%', 'Rubber Plantations throughput' },
 }
}

p['enlistment efforts'] = {
 reqs = { tech = { 'mandatory service' } },
 desc = "Incentivizing recruitment and training of local troops through financial incentives and preferential treatment",
 modifiers = {
  { 'green', '+5%', 'Conscription rate', '[[File:Military conscripts.png|24px|link=Conscription]]' },
  { 'green', '+25%', 'Training rate' }
 }
}

p['greener grass campaign'] = {
 reqs = {
  tech = { 'romanticism' },
  state = { 'State is <span style="color:red; font-weight:bold;">not</span> isolated' }
 },
 desc = "Promote the state as a desirable place to migrate to",
 modifiers = {
  { 'green', '+20', 'Migration attraction' },
  { 'green', '+25%', 'Migration attraction' }
 }
}

p['promote national values'] = {
 reqs = {
  tech = { 'centralization' },
  state = { 'State has any assimilating or converting pops' }
 },
 desc = "Increase cultural assimilation and religious conversion rates",
 modifiers = {
  { 'green', '+100%', "Assimilation", "[[File:Assimilation.png|24px|link=Assimilation]]" },
  { 'green', '+100%', "Conversion", "[[File:Conversion.png|24px|link=Conversion]]" }
 }
}

p['promote social mobility'] = {
 desc = "Encourage the population to strive for higher job qualifications",
 reqs = {
  state = {
   "State has less than 30% [[File:Religion hindu.png|24px|link=Hindu]] Hindu pops",
   'Owner does <span style="color:red; font-weight:bold;">not</span> have [[File:Law caste system enforced.png|24px|link=Caste System Enforced]] Caste System Enforced or [[File:Law caste system codified.png|24px|link=Caste System Codified]] Caste System Codified'
  }
 },
 modifiers = {
  { 'green', '+25%', 'Education access' },
  { 'green', '+25%', 'Qualifications' }
 }
}

p['road maintenance'] = {
 reqs = { tech = { 'centralization' } },
 desc = "Expand and maintain road networks",
 modifiers = {
  { 'green', '+1', 'Infrastructure per 100K population', '[[File:State status infrastructure.png|24px|link=Infrastructure]]' },
  { 'green', '+20', 'Maximum infrastructure per 100K population', '[[File:State status infrastructure.png|24px|link=Infrastructure]]' },
  { 'green', '+10%', 'State construction efficiency', '[[File:State status construction.png|24px|link=Construction]]' }
 }
}

p['violent suppression'] = {
 reqs = {
  tech = { 'standing army' },
  state = { '[[File:State status turmoil.png|24px|link=Turmoil]] Turmoil in state is at least <span style="color:red; font-weight:bold;">25%</span>' },
  owner = { 'Owner does <span style="color:red; font-weight:bold;">not</span> have the law [[File:Law guaranteed liberties.png|24px|link=Guaranteed Liberties]] Guaranteed Liberties' }
 },
 desc = "Use the nation's national guard to control the angry mobs",
 modifiers = {
  { 'green', '−50%', 'State penalties from turmoil', '[[File:State status turmoil.png|24px|link=Turmoil]]' },
  { 'red', '+2%', 'Mortality per turmoil', '[[File:State status turmoil.png|24px|link=Turmoil]]' }
 }
}

return p