Redo village farms, add potato farms

This commit is contained in:
Wuzzy 2022-08-09 21:24:55 +02:00
parent f9a7c7e522
commit 3263aa6a30
11 changed files with 49 additions and 34 deletions

View File

@ -152,6 +152,13 @@ function village.get_nearest_village(pos)
return {dist = nearest, pos = npos, name = name, fname = fname} return {dist = nearest, pos = npos, name = name, fname = fname}
end end
local farmchunkdef = {
entity_chance = 2,
entities = {
["mobs:npc_farmer"] = 1,
}
}
village.chunkdefs = {} village.chunkdefs = {}
village.chunkdefs["livestock_pen"] = { village.chunkdefs["livestock_pen"] = {
@ -197,30 +204,16 @@ village.chunkdefs["orchard"] = {
["mobs:npc_farmer"] = 1, ["mobs:npc_farmer"] = 1,
}, },
} }
village.chunkdefs["farm"] = { village.chunkdefs["farm_v24_potato"] = farmchunkdef
entity_chance = 2, village.chunkdefs["farm_v24_potato_wheat"] = farmchunkdef
entities = { village.chunkdefs["farm_v24_wheat"] = farmchunkdef
["mobs:npc_farmer"] = 1, village.chunkdefs["farm_v24_wheat_cotton"] = farmchunkdef
}, village.chunkdefs["farm_v24_cotton"] = farmchunkdef
} village.chunkdefs["farm_h246_potato"] = farmchunkdef
village.chunkdefs["farm_wheat"] = { village.chunkdefs["farm_h246_wheat"] = farmchunkdef
entity_chance = 2, village.chunkdefs["farm_h246_cotton"] = farmchunkdef
entities = { village.chunkdefs["farm_c4_papyrus"] = farmchunkdef
["mobs:npc_farmer"] = 1, village.chunkdefs["farm_o4_papyrus"] = farmchunkdef
},
}
village.chunkdefs["farm_cotton"] = {
entity_chance = 2,
entities = {
["mobs:npc_farmer"] = 1,
},
}
village.chunkdefs["farm_papyrus"] = {
entity_chance = 2,
entities = {
["mobs:npc_farmer"] = 1,
},
}
-- List of chunk types. Chunk types are structurs and buildings -- List of chunk types. Chunk types are structurs and buildings
-- that are not the well and are placed next to roads. -- that are not the well and are placed next to roads.
@ -228,16 +221,38 @@ village.chunkdefs["farm_papyrus"] = {
-- the more likely it will occur. -- the more likely it will occur.
-- The well is not listed here because it acts as the start point. -- The well is not listed here because it acts as the start point.
village.chunktypes = { village.chunktypes = {
-- chunktype, absolute frequency -- { chunktype, absolute frequency }
{ "house", 12 },
{ "tavern", 6 }, -- houses
{ "forge", 6 }, { "house", 240 },
{ "farm_wheat", 2 }, { "tavern", 120 },
{ "farm_cotton", 2 }, { "forge", 120 },
{ "farm", 2 }, -- other
{ "farm_papyrus", 3 }, { "livestock_pen", 60 },
{ "livestock_pen", 3 }, { "orchard", 60 },
{ "orchard", 3 },
-- farms
-- naming scheme: farm_<water><lines>_<plants>
-- * <water>: water position:
-- * "v": vertical lines
-- * "h": horizontal lines
-- * "c": center
-- * "o": outwards
-- * <lines>:
-- * for v/h: list of numbers at where the water will be
-- * for c/o: how much water in total
-- * <plants>: List of plants (from left to right)
{ "farm_v24_potato", 20 },
{ "farm_v24_potato_wheat", 10 },
{ "farm_v24_wheat", 20 },
{ "farm_v24_wheat_cotton", 10 },
{ "farm_v24_cotton", 10 },
{ "farm_h246_potato", 20 },
{ "farm_h246_wheat", 20 },
{ "farm_h246_cotton", 10 },
{ "farm_c4_papyrus", 60 },
{ "farm_o4_papyrus", 60 },
} }
-- List of chunktypes to be used as fallback for the starting -- List of chunktypes to be used as fallback for the starting

Binary file not shown.

Binary file not shown.

Binary file not shown.