Skip to content

Commit

Permalink
Additional landscaping tiles from base game
Browse files Browse the repository at this point in the history
  • Loading branch information
jpanther committed May 14, 2017
1 parent 9a67145 commit d82e67b
Show file tree
Hide file tree
Showing 11 changed files with 147 additions and 7 deletions.
5 changes: 3 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,11 @@

The latest stable release is available at <https://github.com/jpanther/Dectorio/releases/latest>

## v0.5.3 - Unreleased
## v0.5.3 - 2017-05-14

### Added
* New config.lua file that allows more customisation over how the mod behaves
* Landscaping now allows placement of dark sand, dry grass, red desert and dark red desert tiles
* New config.lua file that allows even more customisation over how the mod behaves
* Item descriptions for painted concrete

### Changed
Expand Down
19 changes: 15 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,17 @@ When you launch the game, the new mod will be enabled by default.

![Wooden floorboards](https://cl.ly/1C3v32423043/woodenfloorboards.png)

* Adds items for placing dirt, sand and grass tiles
* Adds painted concrete tiles - Hazard (black/yellow), Emergency (white/red), Radiation hazard (yellow/pink) and Safety (white/green)

![Painted concrete](https://cl.ly/322O0k052k1M/paintedconcrete.png)

* Painted Hazard concrete replaces default Hazard concrete
* Default concrete recipe no longer uses iron ore and instead requires iron sticks

### Landscaping

* Adds items for placing dirt, sand, dark sand, grass, dry grass, red desert and dark red desert tiles

### Walls

* Adds items for stone and concrete walls
Expand All @@ -55,14 +58,22 @@ When you launch the game, the new mod will be enabled by default.

![Mod options](https://cl.ly/363i1h1A4110/settings.png)

## Bugs & Suggestions
* Config.lua file that allows additional customisation

## Development

### Bugs & Suggestions

Feel free to get in touch with any issues or suggestions for new features you'd like to see. You can get in contact via the 'Discussion' tab on the [Factorio mod portal](https://mods.factorio.com/mods/PantherX/Dectorio/discussion), the [Factorio Forums](https://forums.factorio.com/memberlist.php?mode=viewprofile&u=28042) or you can also view and log issues directly to the GitHub repo.

## Mod Compatibility
### Language Support

Currently the mod is only available in English. If you are able to translate the mod into an additional language, please let me know and I'll package it into the bundle for distribution (with credit to you).

### Mod Compatibility

Limited testing has been completed with other mods. If you come across a specific compatibility issue, please let me know and I'll see what I can do to fix it.

## Changelog
### Changelog

Refer to the [CHANGELOG](CHANGELOG.md) for a detailed list of changes in each version.
Binary file added graphics/icons/base-grass-dry.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 added graphics/icons/base-red-desert-dark.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 added graphics/icons/base-red-desert.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 added graphics/icons/base-sand-dark.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions locale/en/en.cfg
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
[item-name]
dect-base-dirt=Dirt
dect-base-sand=Sand
dect-base-sand-dark=Dark sand
dect-base-grass=Grass
dect-base-grass-dry=Dry grass
dect-base-red-desert=Red desert
dect-base-red-desert-dark=Dark red desert
dect-paint-hazard=Hazard concrete
dect-paint-emergency=Emergency concrete
dect-paint-radiation=Radiation hazard concrete
Expand Down
4 changes: 4 additions & 0 deletions migrations/0.5.3.lua
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,11 @@ for index, force in pairs(game.forces) do
if tech["dect-landscaping"].researched then
rec["dect-base-dirt"].enabled = true
rec["dect-base-sand"].enabled = true
rec["dect-base-sand-dark"].enabled = true
rec["dect-base-grass"].enabled = true
rec["dect-base-grass-dry"].enabled = true
rec["dect-base-red-desert"].enabled = true
rec["dect-base-red-desert-dark"].enabled = true
end
if tech["dect-wood-floor"].researched then
rec["dect-wood-floor"].enabled = true
Expand Down
58 changes: 57 additions & 1 deletion prototypes/item/items.lua
Original file line number Diff line number Diff line change
Expand Up @@ -38,19 +38,75 @@ if DECT.ENABLED["landscaping"] then
condition = { "water-tile" }
}
},
{
type = "item",
name = "dect-base-sand-dark",
icon = "__Dectorio__/graphics/icons/base-sand-dark.png",
flags = {"goes-to-main-inventory"},
subgroup = "landscaping",
order = "a[base-dirt]-b[base-sand]-c[base-sand-dark]",
stack_size = 100,
place_as_tile = {
result = "sand-dark",
condition_size = 4,
condition = { "water-tile" }
}
},
{
type = "item",
name = "dect-base-grass",
icon = "__Dectorio__/graphics/icons/base-grass.png",
flags = {"goes-to-main-inventory"},
subgroup = "landscaping",
order = "a[base-dirt]-b[base-sand]-c[base-grass]",
order = "a[base-dirt]-b[base-sand]-c[base-sand-dark]-d[base-grass]",
stack_size = 100,
place_as_tile = {
result = "grass",
condition_size = 4,
condition = { "water-tile" }
}
},
{
type = "item",
name = "dect-base-grass-dry",
icon = "__Dectorio__/graphics/icons/base-grass-dry.png",
flags = {"goes-to-main-inventory"},
subgroup = "landscaping",
order = "a[base-dirt]-b[base-sand]-c[base-sand-dark]-d[base-grass]-e[base-grass-dry]",
stack_size = 100,
place_as_tile = {
result = "grass-dry",
condition_size = 4,
condition = { "water-tile" }
}
},
{
type = "item",
name = "dect-base-red-desert",
icon = "__Dectorio__/graphics/icons/base-red-desert.png",
flags = {"goes-to-main-inventory"},
subgroup = "landscaping",
order = "a[base-dirt]-b[base-sand]-c[base-sand-dark]-d[base-grass]-e[base-grass-dry]-f[red-desert]",
stack_size = 100,
place_as_tile = {
result = "red-desert",
condition_size = 4,
condition = { "water-tile" }
}
},
{
type = "item",
name = "dect-base-red-desert-dark",
icon = "__Dectorio__/graphics/icons/base-red-desert-dark.png",
flags = {"goes-to-main-inventory"},
subgroup = "landscaping",
order = "a[base-dirt]-b[base-sand]-c[base-sand-dark]-d[base-grass]-e[base-grass-dry]-f[red-desert]-g[red-desert-dark]",
stack_size = 100,
place_as_tile = {
result = "red-desert-dark",
condition_size = 4,
condition = { "water-tile" }
}
}
})

Expand Down
48 changes: 48 additions & 0 deletions prototypes/recipe/recipes.lua
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,18 @@ if DECT.ENABLED["landscaping"] then
result = "dect-base-sand",
result_count = 10
},
{
type = "recipe",
name = "dect-base-sand-dark",
energy_required = 5,
enabled = false,
category = "crafting",
ingredients = {
{"stone", 2}
},
result = "dect-base-sand-dark",
result_count = 10
},
{
type = "recipe",
name = "dect-base-grass",
Expand All @@ -50,6 +62,42 @@ if DECT.ENABLED["landscaping"] then
},
result = "dect-base-grass",
result_count = 10
},
{
type = "recipe",
name = "dect-base-grass-dry",
energy_required = 5,
enabled = false,
category = "crafting",
ingredients = {
{"raw-wood", 2}
},
result = "dect-base-grass-dry",
result_count = 10
},
{
type = "recipe",
name = "dect-base-red-desert",
energy_required = 5,
enabled = false,
category = "crafting",
ingredients = {
{"stone", 2}
},
result = "dect-base-red-desert",
result_count = 10
},
{
type = "recipe",
name = "dect-base-red-desert-dark",
energy_required = 5,
enabled = false,
category = "crafting",
ingredients = {
{"stone", 2}
},
result = "dect-base-red-desert-dark",
result_count = 10
}
})

Expand Down
16 changes: 16 additions & 0 deletions prototypes/technology/technology.lua
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,25 @@ if DECT.ENABLED["landscaping"] then
type = "unlock-recipe",
recipe = "dect-base-sand"
},
{
type = "unlock-recipe",
recipe = "dect-base-sand-dark"
},
{
type = "unlock-recipe",
recipe = "dect-base-grass"
},
{
type = "unlock-recipe",
recipe = "dect-base-grass-dry"
},
{
type = "unlock-recipe",
recipe = "dect-base-red-desert"
},
{
type = "unlock-recipe",
recipe = "dect-base-red-desert-dark"
}
},
order = "a"
Expand Down

0 comments on commit d82e67b

Please sign in to comment.