Adjust food balancing and create separate categories for fruit and baked goods,

fix desserts and candy showing as fruits and vegetables in tooltips
 fix farmers delight dessert items not being part of the dessert category
#293
This commit is contained in:
Sollace 2024-03-03 16:05:31 +00:00
parent 385c412a9d
commit 7d48821770
No known key found for this signature in database
GPG key ID: E52FACE7B5C773DB
20 changed files with 169 additions and 14 deletions

View file

@ -49,7 +49,7 @@ public record Effect(
}); });
if (tooltip.size() == size) { if (tooltip.size() == size) {
if (stack.isFood()) { if (stack.isFood()) {
tooltip.add(Text.literal(" ").append(Text.translatable("tag.unicopia.food_types.fruits_and_vegetables")).formatted(Formatting.GRAY)); tooltip.add(Text.literal(" ").append(Text.translatable("tag.unicopia.food_types.misc")).formatted(Formatting.GRAY));
} else if (stack.getUseAction() == UseAction.DRINK) { } else if (stack.getUseAction() == UseAction.DRINK) {
tooltip.add(Text.literal(" ").append(Text.translatable("tag.unicopia.food_types.drinks")).formatted(Formatting.GRAY)); tooltip.add(Text.literal(" ").append(Text.translatable("tag.unicopia.food_types.drinks")).formatted(Formatting.GRAY));
} }

View file

@ -82,6 +82,15 @@ public class PonyDiets implements DietView {
tooltip.add(Text.translatable("unicopia.diet.information").formatted(Formatting.DARK_PURPLE)); tooltip.add(Text.translatable("unicopia.diet.information").formatted(Formatting.DARK_PURPLE));
getEffects(stack, pony).appendTooltip(stack, tooltip, context); getEffects(stack, pony).appendTooltip(stack, tooltip, context);
/*for (Race race : Race.REGISTRY) {
var diet = diets.get(race);
if (diet != null) {
tooltip.add(race.getDisplayName());
diet.appendTooltip(stack, user, tooltip, context);
}
}*/
getDiet(pony).appendTooltip(stack, user, tooltip, context); getDiet(pony).appendTooltip(stack, user, tooltip, context);
} }
} }

View file

@ -622,6 +622,9 @@
"tag.unicopia.food_types.shelly": "Sea Shells", "tag.unicopia.food_types.shelly": "Sea Shells",
"tag.unicopia.food_types.candy": "Candy", "tag.unicopia.food_types.candy": "Candy",
"tag.unicopia.food_types.desserts": "Desserts", "tag.unicopia.food_types.desserts": "Desserts",
"tag.unicopia.food_types.fruit": "Fruit",
"tag.unicopia.food_types.baked_goods": "Baked Goods",
"tag.unicopia.food_types.misc": "Misc",
"tag.unicopia.food_types.fruits_and_vegetables": "Fruits & Vegetables", "tag.unicopia.food_types.fruits_and_vegetables": "Fruits & Vegetables",
"tag.unicopia.food_types.drinks": "Drinks", "tag.unicopia.food_types.drinks": "Drinks",
"tag.minecraft.leaves": "Leaves", "tag.minecraft.leaves": "Leaves",

View file

@ -2,7 +2,8 @@
"replace": false, "replace": false,
"values": [ "values": [
"unicopia:mango", "unicopia:mango",
"unicopia:banana", "#c:pineapples",
"unicopia:pineapple" "#c:apples",
"#c:bananas"
] ]
} }

View file

@ -0,0 +1,11 @@
{
"tags": [ "unicopia:food_types/baked_goods" ],
"food_component": {
"hunger": 1,
"saturation": 1
},
"ailment": {
"effects": [
]
}
}

View file

@ -0,0 +1,11 @@
{
"tags": [ "unicopia:food_types/candy" ],
"food_component": {
"hunger": 1,
"saturation": 1
},
"ailment": {
"effects": [
]
}
}

View file

@ -0,0 +1,11 @@
{
"tags": [ "unicopia:food_types/desserts" ],
"food_component": {
"hunger": 1,
"saturation": 1
},
"ailment": {
"effects": [
]
}
}

View file

@ -0,0 +1,11 @@
{
"tags": [ "unicopia:food_types/fruit" ],
"food_component": {
"hunger": 1,
"saturation": 1
},
"ailment": {
"effects": [
]
}
}

View file

@ -1,6 +1,6 @@
{ {
"default_multiplier": 0.8, "default_multiplier": 1.4,
"foraging_multiplier": 1, "foraging_multiplier": 0.9,
"multipliers": [ "multipliers": [
{ {
"tags": [ "unicopia:food_types/cooked_fish" ], "tags": [ "unicopia:food_types/cooked_fish" ],
@ -12,6 +12,13 @@
"hunger": 0.5, "hunger": 0.5,
"saturation": 0.6 "saturation": 0.6
}, },
{
"tags": [
"unicopia:food_types/baked_goods"
],
"hunger": 1,
"saturation": 1
},
{ {
"tags": [ "tags": [
"unicopia:food_types/cooked_insect", "unicopia:food_types/cooked_insect",

View file

@ -1,5 +1,5 @@
{ {
"default_multiplier": 0.5, "default_multiplier": 0.6,
"foraging_multiplier": 0.9, "foraging_multiplier": 0.9,
"multipliers": [ "multipliers": [
{ {

View file

@ -27,6 +27,13 @@
"hunger": 0.6, "hunger": 0.6,
"saturation": 0.6 "saturation": 0.6
}, },
{
"tags": [
"unicopia:food_types/baked_goods"
],
"hunger": 0.5,
"saturation": 0.9
},
{ {
"tags": [ "unicopia:food_types/love" ], "tags": [ "unicopia:food_types/love" ],
"hunger": 1, "hunger": 1,

View file

@ -1,5 +1,5 @@
{ {
"default_multiplier": 1, "default_multiplier": 0.7,
"foraging_multiplier": 1, "foraging_multiplier": 1,
"multipliers": [ "multipliers": [
{ {
@ -11,6 +11,13 @@
"hunger": 2.5, "hunger": 2.5,
"saturation": 1.7 "saturation": 1.7
}, },
{
"tags": [
"unicopia:food_types/baked_goods"
],
"hunger": 1.2,
"saturation": 2
},
{ {
"tags": [ "unicopia:food_types/cooked_fish" ], "tags": [ "unicopia:food_types/cooked_fish" ],
"hunger": 0.2, "hunger": 0.2,

View file

@ -1,5 +1,5 @@
{ {
"default_multiplier": 0.3, "default_multiplier": 0.5,
"foraging_multiplier": 0.8, "foraging_multiplier": 0.8,
"multipliers": [ "multipliers": [
{ {
@ -10,6 +10,13 @@
"hunger": 1.6, "hunger": 1.6,
"saturation": 1.6 "saturation": 1.6
}, },
{
"tags": [
"unicopia:food_types/baked_goods"
],
"hunger": 1,
"saturation": 1
},
{ {
"tags": [ "tags": [
"unicopia:food_types/raw_meat", "unicopia:food_types/raw_meat",

View file

@ -1,5 +1,5 @@
{ {
"default_multiplier": 0, "default_multiplier": 0.25,
"foraging_multiplier": 0.9, "foraging_multiplier": 0.9,
"multipliers": [ "multipliers": [
{ {
@ -12,6 +12,13 @@
"hunger": 0.5, "hunger": 0.5,
"saturation": 0.6 "saturation": 0.6
}, },
{
"tags": [
"unicopia:food_types/baked_goods"
],
"hunger": 1,
"saturation": 1
},
{ {
"tags": [ "tags": [
"unicopia:food_types/cooked_insect", "unicopia:food_types/cooked_insect",

View file

@ -1,5 +1,5 @@
{ {
"default_multiplier": 0.5, "default_multiplier": 0.9,
"foraging_multiplier": 1, "foraging_multiplier": 1,
"multipliers": [ "multipliers": [
{ {
@ -12,6 +12,13 @@
"hunger": 0.5, "hunger": 0.5,
"saturation": 0.6 "saturation": 0.6
}, },
{
"tags": [
"unicopia:food_types/baked_goods"
],
"hunger": 1,
"saturation": 1
},
{ {
"tags": [ "tags": [
"unicopia:food_types/cooked_insect", "unicopia:food_types/cooked_insect",

View file

@ -1,5 +1,5 @@
{ {
"default_multiplier": 0.5, "default_multiplier": 0.4,
"foraging_multiplier": 0.7, "foraging_multiplier": 0.7,
"multipliers": [ "multipliers": [
{ {

View file

@ -1,5 +1,5 @@
{ {
"default_multiplier": 0.7, "default_multiplier": 1.2,
"foraging_multiplier": 1, "foraging_multiplier": 1,
"multipliers": [ "multipliers": [
{ {
@ -11,6 +11,13 @@
"hunger": 0.1, "hunger": 0.1,
"saturation": 0.1 "saturation": 0.1
}, },
{
"tags": [
"unicopia:food_types/baked_goods"
],
"hunger": 1,
"saturation": 1
},
{ {
"tags": [ "tags": [
"unicopia:food_types/love", "unicopia:food_types/love",

View file

@ -0,0 +1,27 @@
{
"replace": false,
"values": [
"minecraft:bread",
"minecraft:cookie",
"unicopia:muffin",
"#c:grain",
"unicopia:cooked_zap_apple",
"minecraft:pumpkin_pie",
"#unicopia:pies",
"unicopia:apple_pie_slice",
"unicopia:toast",
"unicopia:burned_toast",
"unicopia:jam_toast",
"unicopia:imported_oats",
"unicopia:oatmeal",
"unicopia:hay_fries",
"unicopia:crispy_hay_fries",
"unicopia:horse_shoe_fries",
{ "id": "farmersdelight:wheat_dough", "required": false },
{ "id": "farmersdelight:raw_pasta", "required": false },
{ "id": "farmersdelight:pie_crust", "required": false },
{ "id": "farmersdelight:sweet_berry_cookie", "required": false },
{ "id": "farmersdelight:honey_cookie", "required": false },
{ "id": "farmersdelight:egg_sandwich", "required": false }
]
}

View file

@ -2,7 +2,11 @@
"replace": false, "replace": false,
"values": [ "values": [
"minecraft:cake", "minecraft:cake",
"#unicopia:pies", { "id": "farmersdelight:sweet_berry_cheesecake", "required": false },
{ "id": "bakersdelight:sweet_berry_cheesecake", "required": false } { "id": "farmersdelight:sweet_berry_cheesecake_slice", "required": false },
{ "id": "farmersdelight:chocolate_pie_slice", "required": false },
{ "id": "farmersdelight:cake_slice", "required": false },
{ "id": "farmersdelight:apple_pie_slice", "required": false },
{ "id": "farmersdelight:glow_berry_custard", "required": false }
] ]
} }

View file

@ -0,0 +1,18 @@
{
"replace": false,
"values": [
"#c:fruits",
"unicopia:zap_apple",
"unicopia:zap_bulb",
"unicopia:rotten_apple",
"minecraft:melon_slice",
"minecraft:sweet_berries",
"minecraft:glow_berries",
"minecraft:chorus_fruit",
"unicopia:juice",
{ "id": "farmersdelight:pumpkin_slice", "required": false },
{ "id": "farmersdelight:tomato", "required": false },
{ "id": "farmersdelight:melon_juice", "required": false },
{ "id": "farmersdelight:fruit_salad", "required": false }
]
}