From 040d715407157c4c49770057469e14cf9d477f4e Mon Sep 17 00:00:00 2001 From: kevmert Date: Mon, 12 Sep 2016 18:03:03 -0700 Subject: [PATCH 1/4] Update info.json --- info.json | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/info.json b/info.json index ba20765..87ed726 100644 --- a/info.json +++ b/info.json @@ -1,11 +1,10 @@ { "name": "Treefarm-AC", - "version": "0.2.3", + "version": "0.3.0", + "factorio_version": "0.14", "title": "Treefarm-AC", - "author": "drs, Blu3wolf", - "homepage": "_", - "dependencies": ["base >= 0.12.11","Treefarm-Lite >= 0.2.1"], - "description": "This mod adds optional content to the treefarm like coke production, fertilizer production and biomass. - -Published under the GPLv2" + "author": "drs, Blu3wolf, Treefarm Team", + "homepage": "https://github.com/Blu3wolf/Treefarm-AC", + "dependencies": ["base >= 0.14.0","Treefarm-Lite >= 0.5.1"], + "description": "This mod adds optional content to the treefarm like coke production, fertilizer production and biomass.Published under the GPLv3" } From 79ae3e4aa3b61b20af8de2e21819a27478018546 Mon Sep 17 00:00:00 2001 From: kevmert Date: Mon, 12 Sep 2016 18:05:28 -0700 Subject: [PATCH 2/4] Update control.lua --- control.lua | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/control.lua b/control.lua index 285b1e0..2b04d7a 100644 --- a/control.lua +++ b/control.lua @@ -1,10 +1,7 @@ -require "defines" - - script.on_event(defines.events.on_built_entity, function(event) - if event.created_entity.name == "tf-cokery-dummy" then + if event.created_entity.name == "tf-cokery" then game.get_surface("nauvis").create_entity{name = "tf-cokery", position = event.created_entity.position, force = game.forces.player} event.created_entity.destroy() end -end) \ No newline at end of file +end) From f308b2e74c44b9e58ac085c78b3f5ffb527e5e3d Mon Sep 17 00:00:00 2001 From: kevmert Date: Mon, 12 Sep 2016 18:11:26 -0700 Subject: [PATCH 3/4] Update buildingPrototypes.lua --- prototypes/buildingPrototypes.lua | 33 ++++++++++--------------------- 1 file changed, 10 insertions(+), 23 deletions(-) diff --git a/prototypes/buildingPrototypes.lua b/prototypes/buildingPrototypes.lua index 0e7c66c..3565918 100644 --- a/prototypes/buildingPrototypes.lua +++ b/prototypes/buildingPrototypes.lua @@ -99,28 +99,6 @@ data:extend( --ENTITIES -- COKERY - { - type = "container", - name = "tf-cokery-dummy", - icon = "__Treefarm-AC__/graphics/icons/cokery.png", - flags = {"placeable-neutral","placeable-player", "player-creation"}, - minable = {hardness = 0.2, mining_time = 0.5, result = "tf-cokery"}, - max_health = 200, - corpse = "big-remnants", - resistances = {{type = "fire", percent = 70}}, - collision_box = {{-1.4, -2.0}, {1.4, 2.4}}, - selection_box = {{-1.5, -2.5}, {1.5, 2.5}}, - inventory_size = 1, - picture = - { - filename = "__Treefarm-AC__/graphics/entities/cokery/cokery-idle.png", - priority = "extra-high", - width = 100, - height = 160, - shift = {0.0, 0.0} - } - }, - { type = "assembling-machine", name = "tf-cokery", @@ -133,7 +111,10 @@ data:extend( resistances = {{type = "fire", percent = 70}}, collision_box = {{-1.4, -2.0}, {1.4, 2.4}}, selection_box = {{-1.5, -2.5}, {1.5, 2.5}}, + module_specification = + { module_slots = 2, + }, allowed_effects = {"consumption", "speed"}, animation = @@ -219,7 +200,10 @@ data:extend( max_health = 100, corpse = "big-remnants", dying_explosion = "medium-explosion", + module_specification = + { module_slots = 1, + }, resistances = {{type = "fire",percent = 70}}, working_sound = { sound = { @@ -349,7 +333,10 @@ data:extend( corpse = "big-remnants", collision_box = {{-1.4, -1.4}, {1.4, 1.4}}, selection_box = {{-1.5, -1.5}, {1.5, 1.5}}, + module_specification = + { module_slots = 2, + }, allowed_effects = {"consumption", "speed", "productivity", "pollution"}, animation = { @@ -449,4 +436,4 @@ data:extend( } } } -) \ No newline at end of file +) From 006d86c6cd2d2b5a53d9b4295d76840615544a4e Mon Sep 17 00:00:00 2001 From: kevmert Date: Thu, 19 Oct 2017 06:08:28 -0700 Subject: [PATCH 4/4] Update control.lua --- control.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/control.lua b/control.lua index 2b04d7a..d31f9b8 100644 --- a/control.lua +++ b/control.lua @@ -1,7 +1,7 @@ script.on_event(defines.events.on_built_entity, function(event) if event.created_entity.name == "tf-cokery" then - game.get_surface("nauvis").create_entity{name = "tf-cokery", position = event.created_entity.position, force = game.forces.player} + game.surfaces["nauvis"].create_entity{name = "tf-cokery", position = event.created_entity.position, force = game.forces.player} event.created_entity.destroy() end end)