Skip to content

Commit

Permalink
Merge pull request #9 from poempelfox/updatefor017
Browse files Browse the repository at this point in the history
make the mod work with Factorio 0.17
  • Loading branch information
DerMistkaefer authored Mar 7, 2019
2 parents e2e0ec2 + 7ef3ea0 commit 32556ce
Show file tree
Hide file tree
Showing 14 changed files with 10 additions and 19 deletions.
23 changes: 7 additions & 16 deletions data.lua
Original file line number Diff line number Diff line change
Expand Up @@ -65,17 +65,8 @@ function BetterBelts_addEntity_Belt(beltName,beltSpeed)

obj.icon = BB.baseGraphicsIcons .. beltName .. ".png"
obj.icon_size = 32
obj.animations.filename = BB.baseGraphicsEntity .. beltName .. ".png"
obj.animations.hr_version.filename = BB.baseGraphicsEntity .. "hr-" .. beltName .. ".png"

obj.belt_horizontal = ultra_belt_horizontal
obj.belt_vertical = ultra_belt_vertical
obj.ending_top = ultra_belt_ending_top
obj.ending_bottom = ultra_belt_ending_bottom
obj.ending_side = ultra_belt_ending_side
obj.starting_top = ultra_belt_starting_top
obj.starting_bottom = ultra_belt_starting_bottom
obj.starting_side = ultra_belt_starting_side
obj.belt_animation_set.animation_set.filename = BB.baseGraphicsEntity .. beltName .. ".png"
obj.belt_animation_set.animation_set.hr_version.filename = BB.baseGraphicsEntity .. "hr-" .. beltName .. ".png"

data.raw[obj.type][obj.name] = obj
end
Expand Down Expand Up @@ -187,15 +178,15 @@ function BetterBelts_addTechnology(thisName,thisIcon,thisType,thisEffect,thisPre

obj.unit.count = thisCount
if thisIngredients == 1 then
obj.unit.ingredients = {{"science-pack-1", 1}}
obj.unit.ingredients = {{"automation-science-pack", 1}}
elseif thisIngredients == 2 then
obj.unit.ingredients = {{"science-pack-1", 1},{"science-pack-2", 1}}
obj.unit.ingredients = {{"automation-science-pack", 1},{"logistic-science-pack", 1}}
elseif thisIngredients == 3 then
obj.unit.ingredients = {{"science-pack-1", 1},{"science-pack-2", 1},{"science-pack-3", 1}}
obj.unit.ingredients = {{"automation-science-pack", 1},{"logistic-science-pack", 1},{"chemical-science-pack", 1}}
elseif thisIngredients == 4 then
obj.unit.ingredients = {{"science-pack-1", 1},{"science-pack-2", 1},{"science-pack-3", 1},{"production-science-pack", 1}}
obj.unit.ingredients = {{"automation-science-pack", 1},{"logistic-science-pack", 1},{"chemical-science-pack", 1},{"production-science-pack", 1}}
elseif thisIngredients == 5 then
obj.unit.ingredients = {{"science-pack-1", 1},{"science-pack-2", 1},{"science-pack-3", 1},{"production-science-pack", 1},{"high-tech-science-pack", 1}}
obj.unit.ingredients = {{"automation-science-pack", 1},{"logistic-science-pack", 1},{"chemical-science-pack", 1},{"production-science-pack", 1},{"high-tech-science-pack", 1}}
end
obj.unit.time = thisTime
obj.order = thisOrder
Expand Down
Binary file modified graphics/entity/hr-ultra-splitter-east.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified graphics/entity/hr-ultra-splitter-north.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified graphics/entity/hr-ultra-splitter-south.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified graphics/entity/hr-ultra-splitter-west.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified graphics/entity/hr-ultra-transport-belt.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified graphics/entity/hr-ultra-underground-belt-structure.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified graphics/entity/ultra-splitter-east.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified graphics/entity/ultra-splitter-north.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified graphics/entity/ultra-splitter-south.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified graphics/entity/ultra-splitter-west.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified graphics/entity/ultra-transport-belt.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified graphics/entity/ultra-underground-belt-structure.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 3 additions & 3 deletions info.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{
"name": "BetterBelts",
"version": "1.1.4",
"version": "1.1.5",
"title": "Better Belts",
"author": "DerMistkaefer, adcrafter27, LaVADraGoN, Updated by: XiNaru",
"contact": "dermistkaefer@gmail.com",
"homepage": "https://github.com/DerMistkaefer/Factorio_Better-Belts",
"description": "This Mod adds Better Belts and Loaders",
"factorio_version":"0.16",
"dependencies": ["base >= 0.15.0"]
"factorio_version":"0.17",
"dependencies": ["base >= 0.17.0"]
}

0 comments on commit 32556ce

Please sign in to comment.