Added a nuts food category for hippogriffs

This commit is contained in:
Sollace 2024-03-12 17:57:09 +00:00
parent 1c878be324
commit 4d4647a385
No known key found for this signature in database
GPG key ID: E52FACE7B5C773DB
7 changed files with 42 additions and 2 deletions

View file

@ -80,8 +80,11 @@ public record DietProfile(
return null;
}
float hunger = food.getHunger() * ratios.getFirst();
int baseline = (int)hunger;
return FoodAttributes.copy(food)
.hunger(Math.max(1, (int)(food.getHunger() * ratios.getFirst())))
.hunger(Math.max(1, (hunger - baseline) >= 0.5F ? baseline + 1 : baseline))
.saturationModifier(food.getSaturationModifier() * ratios.getSecond())
.build();
}

View file

@ -612,6 +612,7 @@
"tag.unicopia.food_types.cooked_fish": "Prepared Fish",
"tag.unicopia.food_types.raw_insect": "Bugs & Insects",
"tag.unicopia.food_types.cooked_insect": "Cooked Bugs & Insects",
"tag.unicopia.food_types.nuts_and_seeds": "Nuts & Seeds",
"tag.unicopia.food_types.love": "Love",
"tag.unicopia.food_types.rocks": "Rocks",
"tag.unicopia.food_types.pinecone": "Nuts & Seeds",

View file

@ -0,0 +1,6 @@
{
"replace": false,
"values": [
{ "id": "#c:crops/peanuts", "require": false }
]
}

View file

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

View file

@ -10,6 +10,13 @@
"hunger": 1.6,
"saturation": 1.6
},
{
"tags": [
"unicopia:food_types/nuts_and_seeds"
],
"hunger": 1.4,
"saturation": 1.4
},
{
"tags": [
"unicopia:food_types/baked_goods"

View file

@ -13,6 +13,7 @@
{ "id": "farmersdelight:pumpkin_slice", "required": false },
{ "id": "farmersdelight:tomato", "required": false },
{ "id": "farmersdelight:melon_juice", "required": false },
{ "id": "farmersdelight:fruit_salad", "required": false }
{ "id": "farmersdelight:fruit_salad", "required": false },
{ "id": "#garnished:berries", "require": false }
]
}

View file

@ -0,0 +1,11 @@
{
"replace": false,
"values": [
"#c:seeds",
"#c:acorns",
"#c:nuts",
{ "id": "#garnished:nuts", "require": false },
{ "id": "#garnished:nut_mix", "require": false },
{ "id": "#garnished:neverable_delecacies", "require": false }
]
}