Skip to content

Commit

Permalink
Fix all the things
Browse files Browse the repository at this point in the history
  • Loading branch information
notnotmelon committed Feb 1, 2024
1 parent 5c05a70 commit 618bb4f
Show file tree
Hide file tree
Showing 7 changed files with 26 additions and 3 deletions.
7 changes: 7 additions & 0 deletions changelog.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@
---------------------------------------------------------------------------------------------------
Version: 2.1.20
Date: 2024-2-2
Fixes:
- Prevented biofluid bots from being effected (affected?) by belts. https://github.com/pyanodon/pybugreports/issues/392
- Fixed crash with mounts. https://github.com/pyanodon/pybugreports/issues/389
- Allowed you to convert old unshiny units created from creature chamber turd path 3.
---------------------------------------------------------------------------------------------------
Version: 2.1.19
Date: 2024-2-1
Fixes:
Expand Down
2 changes: 1 addition & 1 deletion info.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "pyalienlife",
"version": "2.1.19",
"version": "2.1.20",
"factorio_version": "1.1",
"title": "Pyanodons AlienLife",
"author": "Pyanodon, Nexela, Kingarthur, notnotmelon, Mootykins, ShadowGlass, Archezekiel, Quintuple",
Expand Down
1 change: 1 addition & 0 deletions prototypes/biofluid/chorkok.lua
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ data:extend{{
flags = {'placeable-player', 'placeable-off-grid', 'not-repairable', 'breaths-air', 'building-direction-8-way'},
minable = {mining_time = 0.2, result = 'chorkok'},
max_health = 250,
has_belt_immunity = true,
order = 'z',
subgroup = 'py-alienlife-biofluid-network',
healing_per_tick = 0.01,
Expand Down
1 change: 1 addition & 0 deletions prototypes/biofluid/gobachov.lua
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ data:extend{{
minable = {mining_time = 0.2, result = 'gobachov'},
max_health = 250,
order = 'z',
has_belt_immunity = true,
subgroup = 'py-alienlife-biofluid-network',
healing_per_tick = 0.01,
collision_box = {{0,0}, {0,0}},
Expand Down
1 change: 1 addition & 0 deletions prototypes/biofluid/huzu.lua
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ data:extend{{
minable = {mining_time = 0.2, result = 'huzu'},
max_health = 250,
order = 'z',
has_belt_immunity = true,
subgroup = 'py-alienlife-biofluid-network',
healing_per_tick = 0.01,
collision_box = {{0,0}, {0,0}},
Expand Down
15 changes: 14 additions & 1 deletion prototypes/upgrades/creature.lua
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ local path_3_effects = {}
for _, unit_name in pairs(units) do
path_3_effects[#path_3_effects + 1] = {type = 'recipe-replacement', old = unit_name, new = unit_name .. '-turd'}
end
for _, unit_name in pairs(units) do
path_3_effects[#path_3_effects + 1] = {type = 'unlock-recipe', recipe = unit_name .. '-convert-from-base'}
end

if data and not yafc_turd_integration then
path_1_effects[#path_1_effects + 1] = path_1_module_effect
Expand Down Expand Up @@ -94,7 +97,17 @@ if data and not yafc_turd_integration then
}
item.icon = nil

data:extend{unit, recipe, item}
local convert_recipe = {
type = 'recipe',
name = unit_name .. '-convert-from-base',
enabled = false,
category = 'crafting',
energy_required = 0.5,
ingredients = {{type = 'item', name = unit_name, amount = 1}},
results = {{type = 'item', name = name, amount = 1}},
}

data:extend{unit, recipe, item, convert_recipe}
end
elseif script then
path_1_effects = function()
Expand Down
2 changes: 1 addition & 1 deletion scripts/mounts/mounts.lua
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ local mounts = {

Mounts.events.on_built = function(event)
local entity = event.created_entity or event.entity
if not mounts[entity.name] then return end
if not entity.valid or not mounts[entity.name] then return end
entity.grid.put{
name = 'py-mount-generator',
position = {3, 0},
Expand Down

0 comments on commit 618bb4f

Please sign in to comment.