Module:HabModuleSpecial/data: Difference between revisions
From Terra Invicta Official Wiki
Created page with "-- This converts an HabModuleSpecial name into readable text, in parts. local IconModule = require('Module:Icon') return { ['DropTroops']={IconModule.Icon({args={'marine'}}) .. 'Marine strength can be used offensively.',''}, ['Cost_Scales_With_Gravity']={'Build cost and ' .. IconModule.Icon({args={'power consumption'}}) .. 'scale with escape velocity and distance from home space body.',''}, ['Shipyard']={'Builds Ships with ','× [[Spaceships#Constructi..." |
No edit summary |
||
| Line 1: | Line 1: | ||
-- This converts an HabModuleSpecial name into readable text, in parts. | -- This converts an HabModuleSpecial name into readable text, in parts, and maybe a special value indicating what type of value it wants inserted. | ||
local IconModule = require('Module:Icon') | local IconModule = require('Module:Icon') | ||
| Line 5: | Line 5: | ||
['DropTroops']={IconModule.Icon({args={'marine'}}) .. 'Marine strength can be used offensively.',''}, | ['DropTroops']={IconModule.Icon({args={'marine'}}) .. 'Marine strength can be used offensively.',''}, | ||
['Cost_Scales_With_Gravity']={'Build cost and ' .. IconModule.Icon({args={'power consumption'}}) .. 'scale with escape velocity and distance from home space body.',''}, | ['Cost_Scales_With_Gravity']={'Build cost and ' .. IconModule.Icon({args={'power consumption'}}) .. 'scale with escape velocity and distance from home space body.',''}, | ||
['Shipyard']={'Builds [[Spaceships|Ships]] with ','× [[Spaceships#Construction|base time modifier]].'}, | ['Shipyard']={'Builds [[Spaceships|Ships]] with ','× [[Spaceships#Construction|base time modifier]].','constructionTimeModifier'}, | ||
['Requires_Colonized_Body']={'Need ≥10000 system ' .. IconModule.Icon({args={'pop'}}) .. 'population.',''}, | ['Requires_Colonized_Body']={'Need ≥10000 system ' .. IconModule.Icon({args={'pop'}}) .. 'population.',''}, | ||
['Requires_Inhabited_Body']={'Need ≥50000 system ' .. IconModule.Icon({args={'pop'}}) .. 'population.',''}, | ['Requires_Inhabited_Body']={'Need ≥50000 system ' .. IconModule.Icon({args={'pop'}}) .. 'population.',''}, | ||
| Line 14: | Line 14: | ||
['CanFoundTier2Habs']={'Can build new T2 [[Habs]] in System.',''}, | ['CanFoundTier2Habs']={'Can build new T2 [[Habs]] in System.',''}, | ||
['CanFoundTier3Habs']={'Can build new T3 [[Habs]] in System.',''}, | ['CanFoundTier3Habs']={'Can build new T3 [[Habs]] in System.',''}, | ||
['MarinePlatoon']={'Add ', IconModule.Icon({args={'marine'}}) .. 'marine strength as T1 Marines.'}, | ['MarinePlatoon']={'Add ', IconModule.Icon({args={'marine'}}) .. 'marine strength as T1 Marines.','specialRulesValue'}, | ||
['MarineCompany']={'Add ', IconModule.Icon({args={'marine'}}) .. 'marine strength as T2 Marines.'}, | ['MarineCompany']={'Add ', IconModule.Icon({args={'marine'}}) .. 'marine strength as T2 Marines.','specialRulesValue'}, | ||
['MarineBattalion']={'Add ', IconModule.Icon({args={'marine'}}) .. 'marine strength as T3 Marines.'}, | ['MarineBattalion']={'Add ', IconModule.Icon({args={'marine'}}) .. 'marine strength as T3 Marines.','specialRulesValue'}, | ||
['Griffins']={'Add ', IconModule.Icon({args={'marine'}}) .. 'marine strength as Griffins.'}, | ['Griffins']={'Add ', IconModule.Icon({args={'marine'}}) .. 'marine strength as Griffins.','specialRulesValue'}, | ||
['WarDogs']={'Add ', IconModule.Icon({args={'marine'}}) .. 'marine strength as War Dogs.'}, | ['WarDogs']={'Add ', IconModule.Icon({args={'marine'}}) .. 'marine strength as War Dogs.','specialRulesValue'}, | ||
['Salamanders']={'Add ', IconModule.Icon({args={'marine'}}) .. 'marine strength as Salamanders.'}, | ['Salamanders']={'Add ', IconModule.Icon({args={'marine'}}) .. 'marine strength as Salamanders.','specialRulesValue'}, | ||
['PowerFirst']={'Cannot depower.',''}, | ['PowerFirst']={'Cannot depower.',''}, | ||
['SentinelModule']={'Enables the [[Dominate Nation]] mission.',''}, | ['SentinelModule']={'Enables the [[Dominate Nation]] mission.',''}, | ||
['InterstellarLaunchModule']={'Victory module for ' .. IconModule.Icon({args={'escape'}}) .. '[[Project Exodus]].',''}, | ['InterstellarLaunchModule']={'Victory module for ' .. IconModule.Icon({args={'escape'}}) .. '[[Project Exodus]].',''}, | ||
['EarthLEOOnly']={'Need [[Earth]] interface orbit.',''}, | ['EarthLEOOnly']={'Need [[Earth]] interface orbit.',''}, | ||
['HarvestAntimatter']={'Harvests ', ' | ['HarvestAntimatter']={'Harvests ', ' ' .. IconModule.Icon({args={'antimatter'}, bgcolor='DarkSlateGray'}) .. ' of Orbit. Max one per orbit.','specialRulesValue%'}, | ||
['Farm']={'Removes [[Habs|Hab]] ' .. IconModule.Icon({args={'water'}}) .. IconModule.Icon({args={'volatiles'}}) .. ' upkeep for up to ', ' crew.'}, | ['Farm']={'Removes [[Habs|Hab]] ' .. IconModule.Icon({args={'water'}}) .. IconModule.Icon({args={'volatiles'}}) .. ' upkeep for up to ', ' crew.','specialRulesValue'}, | ||
['AlienWormhole']={'Alien Wormhole. Cannot be destroyed.',''}, | ['AlienWormhole']={'Alien Wormhole. Cannot be destroyed.',''}, | ||
['MoneyIfNotBuilding']={'Produces ' .. IconModule.Icon({args={'money'}}) .. ' if no modules under construction. Otherwise ', '× base time modifier to hab module construction.'}, | ['MoneyIfNotBuilding']={'Produces ' .. IconModule.Icon({args={'money'}}) .. ' if no modules under construction. Otherwise ', '× base time modifier to hab module construction.','constructionTimeModifier'}, | ||
['NotInIrradiated']={'Cannot be built in irradiated locations.',''}, | ['NotInIrradiated']={'Cannot be built in irradiated locations.',''}, | ||
['ConsumesMCWhenUnpowered']={'Has ' .. IconModule.Icon({args={'mc'}}) .. ' upkeep even when unpowered.',''}, | ['ConsumesMCWhenUnpowered']={'Has ' .. IconModule.Icon({args={'mc'}}) .. ' upkeep even when unpowered.',''}, | ||
['TechBonusDiminishingReturns']={'Adds ', ' research bonus.'}, | ['TechBonusDiminishingReturns']={'Adds ', ' research bonus.','techBonus'}, | ||
['LEOBonusArmyCombatValue']={'Adds +', ' to the {{icon|miltech}}[[Nations#Miltech|Miltech]] to our armies if in [[Earth]] interface orbit. Capped at +0.3.'}, | ['LEOBonusArmyCombatValue']={'Adds +', ' to the {{icon|miltech}}[[Nations#Miltech|Miltech]] to our armies if in [[Earth]] interface orbit. Capped at +0.3.','specialRulesValue'}, | ||
['LEOBonusPropagandaStrength']={'Adds +', ' [[Nations#Changing_Public_Opinion|strength]] to our [[Public Campaign]]s if in [[Earth]] interface orbit. Capped at +9.'}, | ['LEOBonusPropagandaStrength']={'Adds +', ' [[Nations#Changing_Public_Opinion|strength]] to our [[Public Campaign]]s if in [[Earth]] interface orbit. Capped at +9.','specialRulesValue'}, | ||
['LEOBonusAlienDetection']={'Add +', ' bonus to [[Aliens#Alien_Agents|alien]] [[Councilors#Detection|detection]] on [[Earth]] if in [[Earth]] interface orbit. Capped at +9.'}, | ['LEOBonusAlienDetection']={'Add +', ' bonus to [[Aliens#Alien_Agents|alien]] [[Councilors#Detection|detection]] on [[Earth]] if in [[Earth]] interface orbit. Capped at +9.','specialRulesValue'}, | ||
['LEOBonusMiltech']={'Add +', ' | ['LEOBonusMiltech']={'Add +', ' bonus to the {{icon|military priority}}Military priority if in [[Earth]] interface orbit. Capped at +30%.','specialRulesValue%'}, | ||
['LEOBonusWelfare']={'Add +', ' | ['LEOBonusWelfare']={'Add +', ' bonus to the {{icon|welfare}}Welfare priority if in [[Earth]] interface orbit. Capped at +30%.','specialRulesValue%'}, | ||
['LEOBonusLaunchFacilities']={'Add +', ' | ['LEOBonusLaunchFacilities']={'Add +', ' bonus to the {{icon|boost priority}}Boost priority if in [[Earth]] interface orbit. Capped at +30%.','specialRulesValue%'}, | ||
['LEOBonusKnowledge']={'Add +', ' | ['LEOBonusKnowledge']={'Add +', ' bonus to the {{icon|knowledge}}Knowledge priority if in [[Earth]] interface orbit. Capped at +30%.','specialRulesValue%'}, | ||
['LEOBonusMissionControl']={'Add +', ' | ['LEOBonusMissionControl']={'Add +', ' bonus to the {{icon|mission control priority}}Mission Control priority if in [[Earth]] interface orbit. Capped at +30%.','specialRulesValue%'}, | ||
['LEOBonusEconomy']={'Add +', ' | ['LEOBonusEconomy']={'Add +', ' bonus to the {{icon|economy}}Economy priority if in [[Earth]] interface orbit. Capped at +30%.','specialRulesValue%'}, | ||
['LEOBonusUnity']={'Add +', ' | ['LEOBonusUnity']={'Add +', ' bonus to the {{icon|unity}}Unity priority if in [[Earth]] interface orbit. Capped at +30%.','specialRulesValue%'}, | ||
['LEOBonusOppression']={'Add +', ' | ['LEOBonusOppression']={'Add +', ' bonus to the {{icon|oppression}}Oppression priority if in [[Earth]] interface orbit. Capped at +30%.','specialRulesValue%'}, | ||
['LEOBonusEnvironment']={'Add +', ' | ['LEOBonusEnvironment']={'Add +', ' bonus to the {{icon|environment}}Environment priority if in [[Earth]] interface orbit. Capped at +30%.','specialRulesValue%'}, | ||
['LEOBonusGovernment']={'Add +', ' | ['LEOBonusGovernment']={'Add +', ' bonus to the {{icon|government}}Government priority if in [[Earth]] interface orbit. Capped at +30%.','specialRulesValue%'}, | ||
['LEOControlPointCapacity']={'Add ', IconModule.Icon({args={'cp'}}) .. 'Control Point capacity if in [[Earth]] interface orbit.'}, | ['LEOControlPointCapacity']={'Add ', IconModule.Icon({args={'cp'}}) .. 'Control Point capacity if in [[Earth]] interface orbit.','specialRulesValue'}, | ||
['AtrocityToKill']={'Destroyer commits an [[Factions#Atrocity|Atrocity]].',''}, | ['AtrocityToKill']={'Destroyer commits an [[Factions#Atrocity|Atrocity]].',''}, | ||
['AtrocityToKill_Populous']={'Destroyer commits an [[Factions#Atrocity|Atrocity]] if ≥50000 system ' .. IconModule.Icon({args={'pop'}}) .. 'population.',''}, | ['AtrocityToKill_Populous']={'Destroyer commits an [[Factions#Atrocity|Atrocity]] if ≥50000 system ' .. IconModule.Icon({args={'pop'}}) .. 'population.',''}, | ||
['Stability']={'Add ',' defense against [[Control Space Asset]] and crew of module has no ' .. IconModule.Icon({args={'money'}}) .. ' upkeep.'}, | ['Stability']={'Add ',' defense against [[Control Space Asset]] and crew of module has no ' .. IconModule.Icon({args={'money'}}) .. ' upkeep.','specialRulesValue'}, | ||
['Efficiency']={'Add +', ' | ['Efficiency']={'Add +', ' bonus to [[Habs|Hab]] ' .. IconModule.Icon({args={'money'}}) .. IconModule.Icon({args={'influence'}}) .. IconModule.Icon({args={'ops'}}) .. IconModule.Icon({args={'research'}}) .. IconModule.Icon({args={'water'}}) .. IconModule.Icon({args={'volatiles'}}) .. IconModule.Icon({args={'metals'}}) .. IconModule.Icon({args={'nobles'}}) .. IconModule.Icon({args={'fissiles'}}) .. ' income.','specialRulesValue%'}, | ||
['HarvestHelium3']={'Harvest He3.',''}, | ['HarvestHelium3']={'Harvest He3.',''}, | ||
['UsesHelium3']={'If Faction is harvesting He3, then change ' .. IconModule.Icon({args={'fissiles'}}) .. ' build cost and upkeep into ' .. IconModule.Icon({args={'water'}}) .. '.',''}, | ['UsesHelium3']={'If Faction is harvesting He3, then change ' .. IconModule.Icon({args={'fissiles'}}) .. ' build cost and upkeep into ' .. IconModule.Icon({args={'water'}}) .. '.',''}, | ||
Revision as of 03:03, 22 September 2025
Documentation for this module may be created at Module:HabModuleSpecial/data/doc
-- This converts an HabModuleSpecial name into readable text, in parts, and maybe a special value indicating what type of value it wants inserted.
local IconModule = require('Module:Icon')
return {
['DropTroops']={IconModule.Icon({args={'marine'}}) .. 'Marine strength can be used offensively.',''},
['Cost_Scales_With_Gravity']={'Build cost and ' .. IconModule.Icon({args={'power consumption'}}) .. 'scale with escape velocity and distance from home space body.',''},
['Shipyard']={'Builds [[Spaceships|Ships]] with ','× [[Spaceships#Construction|base time modifier]].','constructionTimeModifier'},
['Requires_Colonized_Body']={'Need ≥10000 system ' .. IconModule.Icon({args={'pop'}}) .. 'population.',''},
['Requires_Inhabited_Body']={'Need ≥50000 system ' .. IconModule.Icon({args={'pop'}}) .. 'population.',''},
['Requires_GasGiant_Orbit']={'Need gas giant orbit.',''},
['Requires_Interface_Orbit']={'Need interface orbit.',''},
['Solar_Power_Variable_Output']={IconModule.Icon({args={'power consumption', bgcolor='DarkSlateGray'}}) .. 'Power scales with proximity to Sun.',''},
['CanFoundTier1Habs']={'Can build new T1 [[Habs]] in System.',''},
['CanFoundTier2Habs']={'Can build new T2 [[Habs]] in System.',''},
['CanFoundTier3Habs']={'Can build new T3 [[Habs]] in System.',''},
['MarinePlatoon']={'Add ', IconModule.Icon({args={'marine'}}) .. 'marine strength as T1 Marines.','specialRulesValue'},
['MarineCompany']={'Add ', IconModule.Icon({args={'marine'}}) .. 'marine strength as T2 Marines.','specialRulesValue'},
['MarineBattalion']={'Add ', IconModule.Icon({args={'marine'}}) .. 'marine strength as T3 Marines.','specialRulesValue'},
['Griffins']={'Add ', IconModule.Icon({args={'marine'}}) .. 'marine strength as Griffins.','specialRulesValue'},
['WarDogs']={'Add ', IconModule.Icon({args={'marine'}}) .. 'marine strength as War Dogs.','specialRulesValue'},
['Salamanders']={'Add ', IconModule.Icon({args={'marine'}}) .. 'marine strength as Salamanders.','specialRulesValue'},
['PowerFirst']={'Cannot depower.',''},
['SentinelModule']={'Enables the [[Dominate Nation]] mission.',''},
['InterstellarLaunchModule']={'Victory module for ' .. IconModule.Icon({args={'escape'}}) .. '[[Project Exodus]].',''},
['EarthLEOOnly']={'Need [[Earth]] interface orbit.',''},
['HarvestAntimatter']={'Harvests ', ' ' .. IconModule.Icon({args={'antimatter'}, bgcolor='DarkSlateGray'}) .. ' of Orbit. Max one per orbit.','specialRulesValue%'},
['Farm']={'Removes [[Habs|Hab]] ' .. IconModule.Icon({args={'water'}}) .. IconModule.Icon({args={'volatiles'}}) .. ' upkeep for up to ', ' crew.','specialRulesValue'},
['AlienWormhole']={'Alien Wormhole. Cannot be destroyed.',''},
['MoneyIfNotBuilding']={'Produces ' .. IconModule.Icon({args={'money'}}) .. ' if no modules under construction. Otherwise ', '× base time modifier to hab module construction.','constructionTimeModifier'},
['NotInIrradiated']={'Cannot be built in irradiated locations.',''},
['ConsumesMCWhenUnpowered']={'Has ' .. IconModule.Icon({args={'mc'}}) .. ' upkeep even when unpowered.',''},
['TechBonusDiminishingReturns']={'Adds ', ' research bonus.','techBonus'},
['LEOBonusArmyCombatValue']={'Adds +', ' to the {{icon|miltech}}[[Nations#Miltech|Miltech]] to our armies if in [[Earth]] interface orbit. Capped at +0.3.','specialRulesValue'},
['LEOBonusPropagandaStrength']={'Adds +', ' [[Nations#Changing_Public_Opinion|strength]] to our [[Public Campaign]]s if in [[Earth]] interface orbit. Capped at +9.','specialRulesValue'},
['LEOBonusAlienDetection']={'Add +', ' bonus to [[Aliens#Alien_Agents|alien]] [[Councilors#Detection|detection]] on [[Earth]] if in [[Earth]] interface orbit. Capped at +9.','specialRulesValue'},
['LEOBonusMiltech']={'Add +', ' bonus to the {{icon|military priority}}Military priority if in [[Earth]] interface orbit. Capped at +30%.','specialRulesValue%'},
['LEOBonusWelfare']={'Add +', ' bonus to the {{icon|welfare}}Welfare priority if in [[Earth]] interface orbit. Capped at +30%.','specialRulesValue%'},
['LEOBonusLaunchFacilities']={'Add +', ' bonus to the {{icon|boost priority}}Boost priority if in [[Earth]] interface orbit. Capped at +30%.','specialRulesValue%'},
['LEOBonusKnowledge']={'Add +', ' bonus to the {{icon|knowledge}}Knowledge priority if in [[Earth]] interface orbit. Capped at +30%.','specialRulesValue%'},
['LEOBonusMissionControl']={'Add +', ' bonus to the {{icon|mission control priority}}Mission Control priority if in [[Earth]] interface orbit. Capped at +30%.','specialRulesValue%'},
['LEOBonusEconomy']={'Add +', ' bonus to the {{icon|economy}}Economy priority if in [[Earth]] interface orbit. Capped at +30%.','specialRulesValue%'},
['LEOBonusUnity']={'Add +', ' bonus to the {{icon|unity}}Unity priority if in [[Earth]] interface orbit. Capped at +30%.','specialRulesValue%'},
['LEOBonusOppression']={'Add +', ' bonus to the {{icon|oppression}}Oppression priority if in [[Earth]] interface orbit. Capped at +30%.','specialRulesValue%'},
['LEOBonusEnvironment']={'Add +', ' bonus to the {{icon|environment}}Environment priority if in [[Earth]] interface orbit. Capped at +30%.','specialRulesValue%'},
['LEOBonusGovernment']={'Add +', ' bonus to the {{icon|government}}Government priority if in [[Earth]] interface orbit. Capped at +30%.','specialRulesValue%'},
['LEOControlPointCapacity']={'Add ', IconModule.Icon({args={'cp'}}) .. 'Control Point capacity if in [[Earth]] interface orbit.','specialRulesValue'},
['AtrocityToKill']={'Destroyer commits an [[Factions#Atrocity|Atrocity]].',''},
['AtrocityToKill_Populous']={'Destroyer commits an [[Factions#Atrocity|Atrocity]] if ≥50000 system ' .. IconModule.Icon({args={'pop'}}) .. 'population.',''},
['Stability']={'Add ',' defense against [[Control Space Asset]] and crew of module has no ' .. IconModule.Icon({args={'money'}}) .. ' upkeep.','specialRulesValue'},
['Efficiency']={'Add +', ' bonus to [[Habs|Hab]] ' .. IconModule.Icon({args={'money'}}) .. IconModule.Icon({args={'influence'}}) .. IconModule.Icon({args={'ops'}}) .. IconModule.Icon({args={'research'}}) .. IconModule.Icon({args={'water'}}) .. IconModule.Icon({args={'volatiles'}}) .. IconModule.Icon({args={'metals'}}) .. IconModule.Icon({args={'nobles'}}) .. IconModule.Icon({args={'fissiles'}}) .. ' income.','specialRulesValue%'},
['HarvestHelium3']={'Harvest He3.',''},
['UsesHelium3']={'If Faction is harvesting He3, then change ' .. IconModule.Icon({args={'fissiles'}}) .. ' build cost and upkeep into ' .. IconModule.Icon({args={'water'}}) .. '.',''},
['RepairsMarineShipModules']={'Allows building and repairing [[Spaceships|Ship]] ' .. IconModule.Icon({args={'marine'}}) .. 'Marines.',''},
['RepairsHabKitShipModules']={'Allows building and repairing [[Spaceships|Ship]] [[Spaceships#Kit|colony kits]].',''},
['StaticHab']={'Part of an Unchangeable [[Habs|Hab]].',''},
['AlienSurveillance']={'[[Aliens#Earth_Surveillance_Habs|Alien Surveillance]].',''},
}


