Skip to content

Commit

Permalink
Mark item costs to actually be a singular item, not an item list, giv…
Browse files Browse the repository at this point in the history
…e building requirements explicit types (for the wiki) (#10507)

Changed the generation from item costs lists to simple items (unintentional reuse of functions inside the research provider)
Make sure that building requirements have a type
This is quick and dirty generation code which has no effect on runtime, I need this to better generate data for the wiki
  • Loading branch information
Thodor12 authored Dec 5, 2024
1 parent f2b2311 commit 53ccec7
Show file tree
Hide file tree
Showing 202 changed files with 642 additions and 1,324 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,11 @@
"parentResearch": "minecolonies:civilian/reflective",
"requirements": [
{
"type": "minecolonies:item_list",
"item": {
"items": [
"minecraft:book"
]
},
"type": "minecolonies:item_simple",
"item": "minecraft:book",
"quantity": 128
}
],
"researchLevel": 6,
"subtitle": "com.minecolonies.research.civilian.academic.subtitle"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,13 @@
"parentResearch": "minecolonies:civilian/nimble",
"requirements": [
{
"type": "minecolonies:building",
"building": "townhall",
"level": 4
},
{
"type": "minecolonies:item_list",
"item": {
"items": [
"minecraft:rabbit_foot"
]
},
"type": "minecolonies:item_simple",
"item": "minecraft:rabbit_foot",
"quantity": 10
}
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,11 @@
"parentResearch": "minecolonies:civilian/ambition",
"requirements": [
{
"type": "minecolonies:item_list",
"item": {
"items": [
"minecraft:heart_of_the_sea"
]
},
"type": "minecolonies:item_simple",
"item": "minecraft:heart_of_the_sea",
"quantity": 1
}
],
"researchLevel": 2,
"sortOrder": 1
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,11 @@
"icon": "minecolonies:blockhutmysticalsite",
"requirements": [
{
"type": "minecolonies:item_list",
"item": {
"items": [
"minecraft:diamond"
]
},
"type": "minecolonies:item_simple",
"item": "minecraft:diamond",
"quantity": 1
}
],
"researchLevel": 1,
"sortOrder": 5
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,11 @@
"parentResearch": "minecolonies:civilian/swift",
"requirements": [
{
"type": "minecolonies:item_list",
"item": {
"items": [
"minecraft:rabbit_foot"
]
},
"type": "minecolonies:item_simple",
"item": "minecraft:rabbit_foot",
"quantity": 64
}
],
"researchLevel": 6,
"subtitle": "com.minecolonies.research.civilian.athlete.subtitle"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,13 @@
"parentResearch": "minecolonies:civilian/bookworm",
"requirements": [
{
"type": "minecolonies:building",
"building": "library",
"level": 3
},
{
"type": "minecolonies:item_list",
"item": {
"items": [
"minecraft:bookshelf"
]
},
"type": "minecolonies:item_simple",
"item": "minecraft:bookshelf",
"quantity": 12
}
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,13 @@
"parentResearch": "minecolonies:civilian/healingcream",
"requirements": [
{
"type": "minecolonies:building",
"building": "library",
"level": 4
},
{
"type": "minecolonies:item_list",
"item": {
"items": [
"minecraft:golden_carrot"
]
},
"type": "minecolonies:item_simple",
"item": "minecraft:golden_carrot",
"quantity": 16
}
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,13 @@
"parentResearch": "minecolonies:civilian/stamina",
"requirements": [
{
"type": "minecolonies:building",
"building": "library",
"level": 2
},
{
"type": "minecolonies:item_list",
"item": {
"items": [
"minecraft:golden_carrot"
]
},
"type": "minecolonies:item_simple",
"item": "minecraft:golden_carrot",
"quantity": 1
}
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,11 @@
"parentResearch": "minecolonies:civilian/growth",
"requirements": [
{
"type": "minecolonies:item_list",
"item": {
"items": [
"minecraft:cooked_chicken"
]
},
"type": "minecolonies:item_simple",
"item": "minecraft:cooked_chicken",
"quantity": 512
}
],
"researchLevel": 6,
"subtitle": "com.minecolonies.research.civilian.beanstalk.subtitle"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,13 @@
"parentResearch": "minecolonies:civilian/morebooks",
"requirements": [
{
"type": "minecolonies:building",
"building": "school",
"level": 3
},
{
"type": "minecolonies:item_list",
"item": {
"items": [
"minecraft:bookshelf"
]
},
"type": "minecolonies:item_simple",
"item": "minecraft:bookshelf",
"quantity": 6
}
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,10 @@
"parentResearch": "minecolonies:civilian/compress",
"requirements": [
{
"type": "minecolonies:item_list",
"item": {
"items": [
"minecraft:golden_carrot"
]
},
"type": "minecolonies:item_simple",
"item": "minecraft:golden_carrot",
"quantity": 64
}
],
"researchLevel": 6
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,13 @@
"parentResearch": "minecolonies:civilian/firstaid",
"requirements": [
{
"type": "minecolonies:building",
"building": "cook",
"level": 2
},
{
"type": "minecolonies:item_list",
"item": {
"items": [
"minecraft:cake"
]
},
"type": "minecolonies:item_simple",
"item": "minecraft:cake",
"quantity": 1
}
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,13 @@
"parentResearch": "minecolonies:civilian/village",
"requirements": [
{
"type": "minecolonies:building",
"building": "townhall",
"level": 5
},
{
"type": "minecolonies:item_list",
"item": {
"items": [
"minecraft:cooked_beef"
]
},
"type": "minecolonies:item_simple",
"item": "minecraft:cooked_beef",
"quantity": 512
}
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,13 @@
"parentResearch": "minecolonies:civilian/bandages",
"requirements": [
{
"type": "minecolonies:building",
"building": "library",
"level": 5
},
{
"type": "minecolonies:item_list",
"item": {
"items": [
"minecraft:golden_carrot"
]
},
"type": "minecolonies:item_simple",
"item": "minecraft:golden_carrot",
"quantity": 32
}
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,13 @@
"parentResearch": "minecolonies:civilian/keen",
"requirements": [
{
"type": "minecolonies:building",
"building": "library",
"level": 2
},
{
"type": "minecolonies:item_list",
"item": {
"items": [
"minecraft:book"
]
},
"type": "minecolonies:item_simple",
"item": "minecraft:book",
"quantity": 6
}
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,13 @@
"parentResearch": "minecolonies:civilian/stuffer",
"requirements": [
{
"type": "minecolonies:building",
"building": "cook",
"level": 5
},
{
"type": "minecolonies:item_list",
"item": {
"items": [
"minecraft:cookie"
]
},
"type": "minecolonies:item_simple",
"item": "minecraft:cookie",
"quantity": 256
}
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,13 @@
"parentResearch": "minecolonies:civilian/circus",
"requirements": [
{
"type": "minecolonies:building",
"building": "cook",
"level": 3
},
{
"type": "minecolonies:item_list",
"item": {
"items": [
"minecraft:cake"
]
},
"type": "minecolonies:item_simple",
"item": "minecraft:cake",
"quantity": 9
}
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,13 @@
"icon": "minecolonies:textures/icons/research/hp1.png",
"requirements": [
{
"type": "minecolonies:building",
"building": "townhall",
"level": 1
},
{
"type": "minecolonies:item_list",
"item": {
"items": [
"minecraft:hay_block"
]
},
"type": "minecolonies:item_simple",
"item": "minecraft:hay_block",
"quantity": 8
}
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,13 @@
"parentResearch": "minecolonies:civilian/firstaid",
"requirements": [
{
"type": "minecolonies:building",
"building": "townhall",
"level": 2
},
{
"type": "minecolonies:item_list",
"item": {
"items": [
"minecraft:hay_block"
]
},
"type": "minecolonies:item_simple",
"item": "minecraft:hay_block",
"quantity": 16
}
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,13 @@
"parentResearch": "minecolonies:civilian/vitality",
"requirements": [
{
"type": "minecolonies:building",
"building": "cook",
"level": 5
},
{
"type": "minecolonies:item_list",
"item": {
"items": [
"minecraft:golden_apple"
]
},
"type": "minecolonies:item_simple",
"item": "minecraft:golden_apple",
"quantity": 32
}
],
Expand Down
Loading

0 comments on commit 53ccec7

Please sign in to comment.