Skip to content

Commit

Permalink
Add mod "electricity-for-tourists"
Browse files Browse the repository at this point in the history
  • Loading branch information
lion053 committed Aug 9, 2024
1 parent a73abda commit 4767566
Show file tree
Hide file tree
Showing 4 changed files with 238 additions and 0 deletions.
18 changes: 18 additions & 0 deletions [Gameplay] Electricity for Tourists (lion053)/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Electricity for Tourists (Lion053)

- This mod adds electricity as a lifestyle need for tourists (category 'Delight').

- Purpose: Get white window lights at night instead of the yellow ones.

- Global unlock precondition: OW = 1.750 engineers / NW = 900 Artistas or 3.000 Obreros if 'Small Power Plants (Jakob)' is active

- Affects vanilla hotels and modded hotels from 'New World Tourism', 'Small Hotels (Jakob)', 'Downtown (Lion053)'.

- With IMYA each hotel type can be disabled separately again.

## Changelog

- v1.0 first release



Original file line number Diff line number Diff line change
@@ -0,0 +1,165 @@
<!-- # Imya Tweaks -->
<ModOps>
<ModOp Type="add" GUID="25000118" Path="/Values/ObjectmenuResidenceScene/BonusNeeds/BonusNeeds/Item[Category='6364']/Needs" Condition="!/Values/ObjectmenuResidenceScene/BonusNeeds/BonusNeeds//Item[BonusNeed='1010354']">
<Item>
<BonusNeed>1010354</BonusNeed>
</Item>
</ModOp>
<ModOp Type="add" GUID="601379" Path="/Values/PopulationLevel7/PopulationInputs" Condition="!/Values/PopulationLevel7/PopulationInputs[Item/Product='1010354']">
<Item>
<Product>1010354</Product>
<SupplyWeight>10</SupplyWeight>
<MoneyValue>20</MoneyValue>
<ExcludePopulationFromMoneyAndConsumptionCalculation>1</ExcludePopulationFromMoneyAndConsumptionCalculation>
<FullWeightPopulationCount>500</FullWeightPopulationCount>
<NoWeightPopulationCount>499</NoWeightPopulationCount>
<IsConsideredByAI>0</IsConsideredByAI>
<IsBonusNeed>1</IsBonusNeed>
<AdditionalGlobalUnlockRequirement>
<Population>15000003</Population>
<MinPopulationAmount>1750</MinPopulationAmount>
</AdditionalGlobalUnlockRequirement>
<RequiredBuildings>
<Item>
<RequiredBuilding>0</RequiredBuilding>
<Region>0</Region>
</Item>
</RequiredBuildings>
</Item>
</ModOp>
<ImyaTweaks Title="Custom Settings" />
<ImyaExpose Path="self::Item[Product='1010354']" Kind="SkipToggle" InitState="True" ModOpID="electricity_hotels" ExposeID="Hotels from Tourist DLC" Description="Off = No electricity for tourists living in these hotels&#xD;&#xA;On = Electricity for tourists living in these hotels">
</ImyaExpose>
<ImyaExpose Path="self::Item[Product='1010354']" Kind="SkipToggle" InitState="True" ModOpID="electricity_mod_nwtourism" ExposeID="Hotels from Mod 'New World Tourism'" Description="Off = No electricity for tourists living in these hotels&#xD;&#xA;On = Electricity for tourists living in these hotels">
</ImyaExpose>
<ImyaExpose Path="self::Item[Product='1010354']" Kind="SkipToggle" InitState="True" ModOpID="electricity_mod_smallhotels_ow" ExposeID="Hotels in the Old World from Mod 'Small Hotels (Jakob)'" Description="Off = No electricity for tourists living in these hotels&#xD;&#xA;On = Electricity for tourists living in these hotels">
</ImyaExpose>
<ImyaExpose Path="self::Item[Product='1010354']" Kind="SkipToggle" InitState="True" ModOpID="electricity_mod_smallhotels_nw" ExposeID="Hotels in the New World from Mod 'Small Hotels (Jakob)'" Description="Off = No electricity for tourists living in these hotels&#xD;&#xA;On = Electricity for tourists living in these hotels">
</ImyaExpose>
<ImyaExpose Path="self::Item[Product='1010354']" Kind="SkipToggle" InitState="True" ModOpID="electricity_mod_downtown" ExposeID="Hotels from Mod 'Downtown (Lion053)'" Description="Off = No electricity for tourists living in these hotels&#xD;&#xA;On = Electricity for tourists living in these hotels">
</ImyaExpose>
<Group ModOpID="electricity_hotels">
<ModOp Type="add" GUID="601379" Path="/Values/PopulationLevel7/PopulationInputs/Item[Product='1010354']/RequiredBuildings">
<Item>
<RequiredBuilding>601445</RequiredBuilding>
<Region>Moderate</Region>
</Item>
</ModOp>
</Group>
<Group ModOpID="electricity_mod_nwtourism" Condition="FamTaubeLexy_NewWorldHotels">
<Group Condition="#jakob-power-plants">
<ModOp Type="add" GUID="601379" Path="/Values/PopulationLevel7/PopulationInputs/Item[Product='1010354']">
<Item>
<Product>1010354</Product>
<SupplyWeight>10</SupplyWeight>
<MoneyValue>20</MoneyValue>
<ExcludePopulationFromMoneyAndConsumptionCalculation>1</ExcludePopulationFromMoneyAndConsumptionCalculation>
<FullWeightPopulationCount>500</FullWeightPopulationCount>
<NoWeightPopulationCount>499</NoWeightPopulationCount>
<IsConsideredByAI>0</IsConsideredByAI>
<IsBonusNeed>1</IsBonusNeed>
<AdditionalGlobalUnlockRequirement>
<Population>15000006</Population>
<MinPopulationAmount>3000</MinPopulationAmount>
</AdditionalGlobalUnlockRequirement>
<RequiredBuildings>
<Item>
<RequiredBuilding>1440134300</RequiredBuilding>
<Region>Colony01</Region>
</Item>
</RequiredBuildings>
</Item>
</ModOp>
</Group>
<Group Condition="!#jakob-power-plants">
<ModOp Type="add" GUID="601379" Path="/Values/PopulationLevel7/PopulationInputs/Item[Product='1010354']">
<Item>
<Product>1010354</Product>
<SupplyWeight>10</SupplyWeight>
<MoneyValue>20</MoneyValue>
<ExcludePopulationFromMoneyAndConsumptionCalculation>1</ExcludePopulationFromMoneyAndConsumptionCalculation>
<FullWeightPopulationCount>500</FullWeightPopulationCount>
<NoWeightPopulationCount>499</NoWeightPopulationCount>
<IsConsideredByAI>0</IsConsideredByAI>
<IsBonusNeed>1</IsBonusNeed>
<AdditionalGlobalUnlockRequirement>
<Population>5403</Population>
<MinPopulationAmount>900</MinPopulationAmount>
</AdditionalGlobalUnlockRequirement>
<RequiredBuildings>
<Item>
<RequiredBuilding>1440134300</RequiredBuilding>
<Region>Colony01</Region>
</Item>
</RequiredBuildings>
</Item>
</ModOp>
</Group>
</Group>
<Group ModOpID="electricity_mod_smallhotels_ow">
<ModOp Type="add" GUID="601379" Path="/Values/PopulationLevel7/PopulationInputs/Item[Product='1010354']/RequiredBuildings">
<Item>
<RequiredBuilding>1500010500</RequiredBuilding>
<Region>Moderate</Region>
</Item>
</ModOp>
</Group>
<Group ModOpID="electricity_mod_smallhotels_nw" Condition="#jakob_small_hotels">
<Group Condition="#jakob-power-plants">
<ModOp Type="add" GUID="601379" Path="/Values/PopulationLevel7/PopulationInputs/Item[Product='1010354']">
<Item>
<Product>1010354</Product>
<SupplyWeight>10</SupplyWeight>
<MoneyValue>20</MoneyValue>
<ExcludePopulationFromMoneyAndConsumptionCalculation>1</ExcludePopulationFromMoneyAndConsumptionCalculation>
<FullWeightPopulationCount>500</FullWeightPopulationCount>
<NoWeightPopulationCount>499</NoWeightPopulationCount>
<IsConsideredByAI>0</IsConsideredByAI>
<IsBonusNeed>1</IsBonusNeed>
<AdditionalGlobalUnlockRequirement>
<Population>15000006</Population>
<MinPopulationAmount>3000</MinPopulationAmount>
</AdditionalGlobalUnlockRequirement>
<RequiredBuildings>
<Item>
<RequiredBuilding>1500010529</RequiredBuilding>
<Region>Colony01</Region>
</Item>
</RequiredBuildings>
</Item>
</ModOp>
</Group>
<Group Condition="!#jakob-power-plants">
<ModOp Type="add" GUID="601379" Path="/Values/PopulationLevel7/PopulationInputs/Item[Product='1010354']">
<Item>
<Product>1010354</Product>
<SupplyWeight>10</SupplyWeight>
<MoneyValue>20</MoneyValue>
<ExcludePopulationFromMoneyAndConsumptionCalculation>1</ExcludePopulationFromMoneyAndConsumptionCalculation>
<FullWeightPopulationCount>500</FullWeightPopulationCount>
<NoWeightPopulationCount>499</NoWeightPopulationCount>
<IsConsideredByAI>0</IsConsideredByAI>
<IsBonusNeed>1</IsBonusNeed>
<AdditionalGlobalUnlockRequirement>
<Population>5403</Population>
<MinPopulationAmount>900</MinPopulationAmount>
</AdditionalGlobalUnlockRequirement>
<RequiredBuildings>
<Item>
<RequiredBuilding>1500010529</RequiredBuilding>
<Region>Colony01</Region>
</Item>
</RequiredBuildings>
</Item>
</ModOp>
</Group>
</Group>
<Group ModOpID="electricity_mod_downtown" Condition="#lion053_downtown">
<ModOp Type="add" GUID="601379" Path="/Values/PopulationLevel7/PopulationInputs/Item[Product='1010354']/RequiredBuildings">
<Item>
<RequiredBuilding>2100116115</RequiredBuilding>
<Region>Moderate</Region>
</Item>
</ModOp>
</Group>
</ModOps>
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<ModOps>

<!-- Let hotels recognize electricity public service; hide 'improved by electricity' in construction menu infotip -->
<ModOp Type="merge" Path="//Template[Name='ResidenceBuilding7_Hotel']/Properties">
<Electrifiable />
<Industrializable>
<BoostedByIndustrialization>0</BoostedByIndustrialization>
</Industrializable>
</ModOp>

</ModOps>
44 changes: 44 additions & 0 deletions [Gameplay] Electricity for Tourists (lion053)/modinfo.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
{
"Version": "1.0",
"ModID": "electricity-for-tourists-lion053",

"Category": {
"English": "Gameplay",
"Chinese": "Gameplay",
"French": "Gameplay",
"German": "Gameplay",
"Italian": "Gameplay",
"Japanese": "Gameplay",
"Korean": "Gameplay",
"Polish": "Gameplay",
"Russian": "Gameplay",
"Spanish": "Gameplay",
"Taiwanese": "Gameplay"
},
"ModName": {
"English": "Electricity for Tourists (Lion053)",
"Chinese": "Electricity for Tourists (Lion053)",
"French": "Electricity for Tourists (Lion053)",
"German": "Electricity for Tourists (Lion053)",
"Italian": "Electricity for Tourists (Lion053)",
"Japanese": "Electricity for Tourists (Lion053)",
"Korean": "Electricity for Tourists (Lion053)",
"Polish": "Electricity for Tourists (Lion053)",
"Russian": "Electricity for Tourists (Lion053)",
"Spanish": "Electricity for Tourists (Lion053)",
"Taiwanese": "Electricity for Tourists (Lion053)"
},
"Description": {
"English": "file::README.md",
"Chinese": "file::README.md",
"French": "file::README.md",
"German": "file::README.md",
"Italian": "file::README.md",
"Japanese": "file::README.md",
"Korean": "file::README.md",
"Polish": "file::README.md",
"Russian": "file::README.md",
"Spanish": "file::README.md",
"Taiwanese": "file::README.md"
}
}

0 comments on commit 4767566

Please sign in to comment.