This page is about modding Deposits and Planet Modifiers.
Deposits[編輯 | 編輯原始碼]
Deposits are objects on Planets that can have its own resource production and upkeep and Modifiers to the planet.
There are two types of Deposits, one being the planetary features for the colonizable planets that can be inspected by the player, and another being the orbital deposits for the uncolonizable planets that usually can't be inspected by the player.
There are two types of planetary features, one being normally pure-benifitial and unremovable and another being normally pure-harmful and can be removed by spending resources, called blockers. Some blockers spawn with an additional planetary feature behind it, but the seemingly "blocked" planetary feature isn't actually added to the planet before the blocker to be cleared. Although vanilla unused, a blocker can also block a blocker behind it.
They are defined at "common/deposits/xxx.txt".
Data Structure[編輯 | 編輯原始碼]
Property | Planetary Features | Planetary Blockers | 合併Orbital Deposits |
---|---|---|---|
is_for_colonizable = <yes/no> | For habitable planets, is_for_colonizable = yes . Default is = no .
|
For mining station or research station collection, is_for_colonizable = no .
| |
station | ![]() |
Determines the type of orbital station required to mine this deposit. One of the following is allowed.
| |
icon = <deposit key> | This deposit will use the icon of another deposit instead.
The default icon path is |
Since orbital deposits can't be normally inspected, this property will normally not be useful. | |
use_for_min_max_adjustments = <yes/no> | If yes, this deposit is used to refresh the maximum districts on planet view. Vanilla have this toggled yes for each deposit that increases maximum number of a certain type of district. | ![]() | |
category = <deposit category> | For obvious reason the deposit category must NOT specify blocker = yes .
Vanilla use one of the following.
|
For obvious reason the deposit category must specify blocker = yes .
Vanilla use one of the folliwing.
| |
planet_modifier triggered_planet_modifier |
Blocks of Modifiers to be applied to the Planet. Modifiers that add maximum number of buildings / disctricts of a certain type go here. If this deposit is blocked behind a blocker, none of these effects apply. | Modifiers that affect ![]() | |
country_modifier | A block of Modifiers to be applied to the Empire that owns this Planet. | ![]() | |
blocked_modifier | Vanilla unused but mentioned it in the comments. Presumably Modifiers to be applied to the Planet for as long as this deposit remains blocked behind a blocker. | ||
should_swap_deposit_on_terraforming = <yes/no> terraforming_swap_types = { _key_of_deposit_ ...} all_terraforming_swap_types = <yes/no> use_weights_for_terraforming_swap_types = <yes/no> |
Some vanilla planetary features will swap into another of exactly same effect after terraforming. This is implemented through these properties.
If this deposit should swap on terraforming and it no longer mets its If "all terraforming swap types" is allowed, then ALL non-blocker deposits that meet their If "use weights for terraforming swap types", the swap is furtherly weighted by their |
![]() | |
blocker_swap_types = { _key_of_deposit_ ... } all_blocker_swap_types = <yes/no> use_weights_for_blocker_swap_types = <yes/no> |
![]() |
When this blocker is placed on a Planet, if it has any blocker swap type, a random deposit that meets its potential on this planet is chosen to be visibly "blocked" behind this blocker. Before this blocker to be cleared, the deposit isn't actually added to the planet and none of its effects will apply.
if "all blocker swap types" is allowed, then ALL non-blocker deposits that meet their If "use weights for blocker swap types", the swap is furtherly weighted by their | |
resources | An Economy Unit of this deposit to determine its resource production, upkeep and blocker removal cost. | ||
Vanilla use planet_deposits for the economy category, although it's quite rare for a normal deposit to directly produce resources itself.
|
Vanilla use deposit_blockers for the economy category.
|
Vanilla use orbital_mining_deposits and orbital_research_deposits for the economy category.
| |
can_be_cleared | ![]() |
A block of Conditions to check can this blocker be cleared. (Planet scope) | ![]() |
on_cleared | A block of Effects to be executed after this blocker is cleared. (Planet scope) | ||
time = <int> | Days it takes to clear this blocker. | ||
prerequisites = { <tech key> ...} | A list of Technologies to be researched before this blocker can be cleared. | ||
potential | A block of Conditions to check can this deposit be spawned on a Planet. This block is neglected if the deposit is added via script. (Planet scope) | ||
drop_weight | Determines how likely this deposit is spawned on a Planet. If drop weight is multiplied by 0 this deposit can't be spawned on this Planet. (Planet scope) |
Deposit Categories[編輯 | 編輯原始碼]
The Null Orbital Deposit[編輯 | 編輯原始碼]
potential
of the null deposit will always have an orbital deposit.Examples[編輯 | 編輯原始碼]
Planet Modifiers[編輯 | 編輯原始碼]
Planet Modifiers are additional modifiers given to planets upon planet generation. They are linked to Static Modifiers but not equivalent to them. They are defined at "common/planet_modifiers/xxx.txt".
Data Structure[編輯 | 編輯原始碼]
Property | 合併Description |
---|---|
modifier = <static modifier> | Relative Static Modifier to be added to the planet. |
spawn_chance
|
Modifies the weights of this Planet Modifier to spawn. |
The Null Planet Modifier[編輯 | 編輯原始碼]
帝國 | 帝國 • 思潮 • 政府 • 國民理念 • 起源 • 承諾 • 議程 • 傳統 • 飛升天賦 • 法令 • 政策 • 遺珍 • 科技 • 自定義帝國 |
人口 | 崗位 • 派系 |
領袖 | 領袖 • 領袖特質 |
物種 | 物種 • 物種特質 |
行星 | 行星 • 行星特徵 • 軌道礦藏 • 建築 • 區劃 • 行星決議 |
星系 | 星系 • 恆星基地 • 巨型結構 • 蟲洞 • 星門 • 地圖 |
艦隊 | 艦隊 • 艦船 • 部件 |
地面戰 | 陸軍 • 轟炸姿態 |
外交 | 外交 • 聯邦 • 星海共同體 • 評價修正 • 宣戰理由 • 戰爭目標 |
事件 | 事件 • 異常現象 • 特殊項目 • 考古遺址 |
遊玩 | 遊玩 • 定義 • 研究 • 經濟 • 遊戲開局 |
動態修改 | 動態 • 指令效果 • 觸發條件 • 作用域 • 修正 • 變量 • AI |
媒體/本地化 | Maya 導出器 • 圖形 • 肖像 • 旗幟 • 事件圖片 • 界面 • 圖標 • 音樂 • 本地化 |
Other | 控制台命令 • 存檔編輯 • Steam 創意工坊 • 模組製作教程 |