Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lignite Coal #354

Merged
merged 37 commits into from
Jan 26, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
37 commits
Select commit Hold shift + click to select a range
258d035
Create babylon_mines.txt
Danarca Jan 19, 2024
436eec8
Lignite PMs
Danarca Jan 19, 2024
dadaa06
Update 13_australasia.txt
Danarca Jan 19, 2024
d4a0375
Children yearn for the mines
Danarca Jan 19, 2024
8b29629
Discovery Channel
Danarca Jan 19, 2024
ced6274
Lignite mine in NSW now works :3
Danarca Jan 19, 2024
8a732b7
The Mines Yearn for the Children
Crushita Jan 27, 2024
d7cd65b
Re-encoded txt files to UTF-8 BOM
Crushita Jan 27, 2024
be0e737
Merge branch 'Imperia-Core' into Imperia-Coal-Traits
Danarca May 12, 2024
99e7220
Babylon -> Imperia renaming complete
Danarca May 12, 2024
3f32d41
Revival
Danarca May 12, 2024
2f87e5c
Vanilla mine sprites
Danarca May 12, 2024
3e1f77f
Now appears on map
Danarca May 12, 2024
684ef1d
Merge branch 'Imperia-Core' into Imperia-Coal-Traits
Danarca Jan 3, 2025
84eed8e
Basic 1.8 compatch
Danarca Jan 3, 2025
4ff67f3
Update basic building syntax
Danarca Jan 3, 2025
32a796b
Lignite base pmg localisation drawn from coal mining loc
Danarca Jan 3, 2025
9941dea
Lignite mine explosives pmg + loc
Danarca Jan 3, 2025
f87e9c1
More pollution for lignite mining operations
Danarca Jan 3, 2025
6cd950f
Some major lignite deposits added
Danarca Jan 4, 2025
901d84d
Chinese and Indonesian lignite deposits added
Danarca Jan 5, 2025
ec53146
Remove references to command building
Danarca Jan 5, 2025
b1affff
Removal of outdated innovation multipliers
Danarca Jan 5, 2025
8e53524
Reformatted all files to common sense
Danarca Jan 5, 2025
79bd5b8
Ownership pmg removed
Danarca Jan 5, 2025
a93c766
Lignite modifier_types localisation
Danarca Jan 5, 2025
d1f8eca
Merge branch 'Imperia-Coal-Traits' of https://github.com/Imperia-Deve…
Danarca Jan 5, 2025
5bfae2d
Comments on base output
Danarca Jan 12, 2025
0aa39af
Reformatted all files to common sense
Danarca Jan 12, 2025
9e940d3
Added trigger for base option in the lignite discovery event
Danarca Jan 12, 2025
e13399f
Merge branch 'Imperia-Coal-Traits' of https://github.com/Imperia-Deve…
Danarca Jan 12, 2025
c910b14
Lignite to 70% input/output + steam donkey pm + icon
Danarca Jan 13, 2025
2747461
Vanilla indian city_types
Danarca Jan 13, 2025
d0754ff
Lignite (and charcoal to get of that error) meshes for India
Danarca Jan 13, 2025
693fd44
Reformatted all files to common sense
Danarca Jan 13, 2025
50cbb47
Lignite-specific train automation PMs
Danarca Jan 21, 2025
6b71f07
Reformatted all files to common sense
Danarca Jan 21, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions common/building_groups/imperia_building_groups.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
bg_lignite_mining = {
parent_group = bg_mining
default_building = building_lignite_mine
discoverable_resource = yes
can_use_slaves = yes
}
20 changes: 20 additions & 0 deletions common/buildings/imperia_mines.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
building_lignite_mine = {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is the profitibilty graph compared to some other buildings:

image

Check if that is desirable.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There's only 4 main production methods in the primary group though, whats that 5th one? Because that is definitely not intended :s

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's era level, not production method order.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm, actually... If anything, 3 and 4 should be higher.. Didnt see 5 on the normal coal mine was that high as well.
I.. Think we may have to go over the balancing collectively during the meeting :s

building_group = bg_lignite_mining
icon = "gfx/interface/icons/building_icons/lignite_mine.dds"
city_type = mine
levels_per_mesh = 5
required_construction = construction_cost_medium
terrain_manipulator = mining
unlocking_technologies = {
prospecting
}

production_method_groups = {
pmg_mining_equipment_building_lignite_mine
pmg_explosives_building_lignite_mine
pmg_steam_automation_building_lignite_mine
pmg_train_automation_building_lignite_mine
}
ownership_type = self
background = "gfx/interface/icons/building_icons/backgrounds/building_panel_bg_mining.dds"
}
11 changes: 11 additions & 0 deletions common/history/buildings/lignite/13_australasia.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
BUILDINGS = {
s:STATE_NEW_SOUTH_WALES = {
region_state:NSW = {
create_building = {
building = "building_lignite_mine"
level = 2
reserves = 1
}
}
}
}
26 changes: 26 additions & 0 deletions common/modifier_type_definitions/imperia_modifier_types.txt
Original file line number Diff line number Diff line change
Expand Up @@ -551,6 +551,32 @@ country_bureaucracy_investment_cost_factor_mult = {
}
}

## Lignite Mine
building_group_bg_lignite_mining_tax_mult = {
color = neutral
percent = yes
}

building_group_bg_lignite_mining_mortality_mult = {
color = bad
percent = yes
}

building_group_bg_lignite_mining_standard_of_living_add = {
color = good
percent = no
}

building_group_bg_lignite_mining_employee_mult = {
color = bad
percent = yes
}

building_group_bg_lignite_mining_throughput_add = {
color = good
percent = yes
}

#####################################
### SPECIFIC UNIT TYPE MODIFIERS ###
#####################################
Expand Down
7 changes: 7 additions & 0 deletions common/on_actions/imperia_index_on_actions.txt
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,13 @@ on_country_released_as_own_subject = {
}
}

# Root = State
on_resource_discovered = {
on_actions = {
on_imperia_resource_discovered
}
}

# Root = Country
on_capitulation = {
on_actions = {
Expand Down
6 changes: 6 additions & 0 deletions common/on_actions/imperia_misc_on_actions.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# Root = State
on_imperia_resource_discovered = {
events = {
lignite.1
}
}
34 changes: 34 additions & 0 deletions common/production_method_groups/imperia_mines.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
pmg_mining_equipment_building_lignite_mine = {
texture = "gfx/interface/icons/generic_icons/mixed_icon_base.dds"
production_methods = {
pm_picks_and_shovels_building_lignite_mine
pm_atmospheric_engine_pump_building_lignite_mine
pm_condensing_engine_pump_building_lignite_mine
pm_diesel_pump_building_lignite_mine
}
}

pmg_explosives_building_lignite_mine = {
texture = "gfx/interface/icons/generic_icons/mixed_icon_base.dds"
production_methods = {
pm_no_explosives
pm_nitroglycerin_building_lignite_mine
pm_dynamite_building_lignite_mine
}
}

pmg_steam_automation_building_lignite_mine = {
texture = "gfx/interface/icons/generic_icons/mixed_icon_automation.dds"
production_methods = {
pm_no_steam_automation
pm_steam_donkey_building_lignite_mine
}
}

pmg_train_automation_building_lignite_mine = {
texture = "gfx/interface/icons/generic_icons/mixed_icon_automation.dds"
production_methods = {
pm_road_carts
pm_rail_transport_lignite_mine
}
}
205 changes: 205 additions & 0 deletions common/production_methods/imperia_mines.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,205 @@
# Lignite input and coal output values are 70% of normal coal mine values
# Except for pollution, which is ~35% higher in general, and a further +5 in the production PMs. Steam donkey "just" gets 5+5 pollution
# And engines for the steam donkey, which are the usual value
pm_picks_and_shovels_building_lignite_mine = {
texture = "gfx/interface/icons/production_method_icons/picks_and_shovels.dds"
# Most harmful form of coal, pollution wise. 30 - 40% more polluting
# Since we only have 1 coal good, this should be represented in the mining pms
state_modifiers = {
# Normally no pollution this early, give 5 pollution
workforce_scaled = {
state_pollution_generation_add = 5 # 0 in normal coal mine
}
}
building_modifiers = {
workforce_scaled = {
# input goods
goods_input_tools_add = 3.5 # 5 in normal coal mine
# output goods
goods_output_coal_add = 17.5 # 25 in normal coal mine
}
level_scaled = {
building_employment_shopkeepers_add = 500
building_employment_laborers_add = 4500
}
}
}

pm_atmospheric_engine_pump_building_lignite_mine = {
texture = "gfx/interface/icons/production_method_icons/pumps.dds"
unlocking_technologies = {
atmospheric_engine
}
state_modifiers = {
# Normally 5 pollution, give 11.75 pollution ((5*1.35)+5)
workforce_scaled = {
state_pollution_generation_add = 11.75 # 5 in normal coal mine
}
}
building_modifiers = {
workforce_scaled = {
# input goods
goods_input_tools_add = 7 # 10 in normal coal mine
# output goods
goods_output_coal_add = 28 # 40 in normal coal mine
}
level_scaled = {
building_employment_shopkeepers_add = 500
building_employment_laborers_add = 3750
building_employment_machinists_add = 500
building_employment_engineers_add = 250
}
}
}

pm_condensing_engine_pump_building_lignite_mine = {
texture = "gfx/interface/icons/production_method_icons/condensing_engine_pump.dds"
unlocking_technologies = {
watertube_boiler
}
state_modifiers = {
workforce_scaled = {
state_pollution_generation_add = 18.5 # 10 in normal coal mine ((10*1.35)+5)
}
}
building_modifiers = {
workforce_scaled = {
# input goods
goods_input_tools_add = 10.5 # 15 in normal coal mine
# output goods
goods_output_coal_add = 42 # 60 in normal coal mine
}
level_scaled = {
building_employment_shopkeepers_add = 500
building_employment_laborers_add = 3000
building_employment_machinists_add = 1000
building_employment_engineers_add = 500
}
}
}

pm_diesel_pump_building_lignite_mine = {
texture = "gfx/interface/icons/production_method_icons/diesel_pump.dds"
unlocking_technologies = {
compression_ignition
}
state_modifiers = {
workforce_scaled = {
state_pollution_generation_add = 25.25 # 15 in normal coal mine ((15*1.35)+5)
}
}
building_modifiers = {
workforce_scaled = {
# input goods
goods_input_tools_add = 10.5 # 15 in normal coal mine
goods_input_oil_add = 3.5 # 5 in normal coal mine
# output goods
goods_output_coal_add = 63 # 90 in normal coal mine
}
level_scaled = {
building_employment_shopkeepers_add = 500
building_employment_laborers_add = 2250
building_employment_machinists_add = 1500
building_employment_engineers_add = 750
}
}
}

pm_nitroglycerin_building_lignite_mine = {
texture = "gfx/interface/icons/production_method_icons/nitroglycerin.dds"
unlocking_technologies = {
nitroglycerin
}
state_modifiers = {
workforce_scaled = {
state_pollution_generation_add = 6.75 # 5 in normal coal mine (5*1.35)
}
}
building_modifiers = {
workforce_scaled = {
# input goods
goods_input_explosives_add = 3.5 # 5 in normal coal mine
# output goods
goods_output_coal_add = 10.5 # 15 in normal coal mine
}
level_scaled = {
building_employment_engineers_add = 250
}
unscaled = {
building_laborers_mortality_mult = 0.3
building_machinists_mortality_mult = 0.2
building_engineers_mortality_mult = 0.1
}
}
}

pm_dynamite_building_lignite_mine = {
texture = "gfx/interface/icons/production_method_icons/dynamite.dds"
unlocking_technologies = {
dynamite
}
state_modifiers = {
workforce_scaled = {
state_pollution_generation_add = 13.5 # 10 in normal coal mine (10*1.35)
}
}
building_modifiers = {
workforce_scaled = {
goods_input_explosives_add = 7 # 10 in normal coal mine
# output goods
goods_output_coal_add = 17.5 # 25 in normal coal mine
}
level_scaled = {
building_employment_engineers_add = 250
}
}
}

pm_steam_donkey_building_lignite_mine = {
texture = "gfx/interface/icons/production_method_icons/steam_donkey.dds"
unlocking_technologies = {
steam_donkey
}
disallowing_laws = {
law_industry_banned
}
state_modifiers = {
workforce_scaled = {
state_pollution_generation_add = 10 # 5 in normal coal mine (5+5)
}
}
building_modifiers = {
workforce_scaled = {
# input goods
goods_input_engines_add = 1
goods_output_coal_add = -2.1 # -3 in normal coal mine
}
level_scaled = {
building_employment_laborers_add = -1000
}
}
}

pm_rail_transport_lignite_mine = {
texture = "gfx/interface/icons/production_method_icons/rail_transport.dds"
state_modifiers = {
workforce_scaled = {
state_pollution_generation_add = 10
}
}

unlocking_technologies = {
railways
}

building_modifiers = {
workforce_scaled = {
# input goods
goods_input_transportation_add = 3.5 # 5 in normal coal mine
}

level_scaled = {
building_employment_laborers_add = -1000
}
}
}
7 changes: 7 additions & 0 deletions common/static_modifiers/imperia_modifiers.txt
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,13 @@ imperia_british_india_mortality_modifier = {
icon = gfx/interface/icons/timed_modifier_icons/modifier_flag_negative.dds
state_peasants_mortality_mult = 0.20
}

state_lignite_rush = {
icon = gfx/interface/icons/timed_modifier_icons/modifier_gear_positive.dds
building_group_bg_lignite_mining_employee_mult = 0.2
state_migration_pull_mult = 0.2
}

##################
### INVENTIONS ###
##################
Expand Down
Loading