1
0
mirror of https://github.com/ComfyFactory/ComfyFactorio.git synced 2025-02-09 13:37:02 +02:00

Fixed uranium-ammo pre-requisites

Changes:
- Fixed uranium-ammo pre-requisites
This commit is contained in:
Piratux 2022-10-04 23:56:42 +03:00
parent 079be7fe49
commit a228fa401a
2 changed files with 11 additions and 4 deletions

View File

@ -1343,6 +1343,11 @@ local function event_on_research_finished(event)
-- and since we can't build tanks anyway, let's disable this for later:
p_force.recipes['uranium-cannon-shell'].enabled = false
p_force.recipes['explosive-uranium-cannon-shell'].enabled = false
p_force.recipes['concrete'].enabled = false
p_force.recipes['hazard-concrete'].enabled = false
p_force.recipes['refined-concrete'].enabled = false
p_force.recipes['refined-hazard-concrete'].enabled = false
end
local function event_on_player_joined_game(event)

View File

@ -881,10 +881,16 @@ function Public.reset_crew_and_enemy_force(id)
--as prerequisites for uranium ammo and automation 3:
crew_force.technologies['speed-module'].researched = true
crew_force.technologies['tank'].researched = true
crew_force.technologies['automobilism'].researched = true
crew_force.technologies['concrete'].researched = true
crew_force.recipes['speed-module'].enabled = false
crew_force.recipes['tank'].enabled = false
crew_force.recipes['cannon-shell'].enabled = false
crew_force.recipes['explosive-cannon-shell'].enabled = false
crew_force.recipes['concrete'].enabled = false
crew_force.recipes['hazard-concrete'].enabled = false
crew_force.recipes['refined-concrete'].enabled = false
crew_force.recipes['refined-hazard-concrete'].enabled = false
@ -892,8 +898,6 @@ function Public.reset_crew_and_enemy_force(id)
crew_force.technologies['coal-liquefaction'].enabled = true
crew_force.technologies['coal-liquefaction'].researched = true
crew_force.technologies['automobilism'].enabled = false
crew_force.technologies['toolbelt'].enabled = false --trying this. we don't actually want players to carry too many things manually, and in fact in a resource-tight scenario that's problematic
-- note: many of these recipes are overwritten after tech researched!!!!!!! like pistol. check elsewhere in code
@ -925,7 +929,6 @@ function Public.reset_crew_and_enemy_force(id)
crew_force.technologies['logistic-system'].enabled = false
crew_force.technologies['tank'].enabled = false
crew_force.technologies['rocketry'].enabled = false
crew_force.technologies['artillery'].enabled = false
crew_force.technologies['destroyer'].enabled = false
@ -987,7 +990,6 @@ function Public.reset_crew_and_enemy_force(id)
crew_force.technologies['steel-axe'].enabled = false
crew_force.technologies['concrete'].enabled = false
crew_force.technologies['nuclear-power'].enabled = false
crew_force.technologies['effect-transmission'].enabled = true