Sarrakitty/rotsys item sprites

This commit is contained in:
Sarra Kitty 2021-01-19 18:23:44 +00:00 committed by Acrimon
parent b04158c5f9
commit e7d852835c
25 changed files with 178 additions and 3 deletions

View File

@ -0,0 +1,8 @@
ItemDef(
name: "Bowl",
description: "a simple bowl for preparing meals.",
kind: Ingredient(
kind: "Bowl",
),
quality: Common,
)

View File

@ -0,0 +1,21 @@
ItemDef(
name: "Fish",
description: "Restores 10 Health over 20 seconds\n\nA fresh seafood steak, chopped from a fish.",
kind: Consumable(
kind: "Fish",
effect: [
Buff((
kind: Saturation,
data: (
strength: 5.0,
duration: Some((
secs: 10,
nanos: 0,
)),
),
cat_ids: [Natural],
)),
]
),
quality: Common,
)

View File

@ -0,0 +1,3 @@
[
(1, "common.items.food.fish"),
]

View File

@ -4,6 +4,9 @@
(3, "common.items.food.apple"), (3, "common.items.food.apple"),
(3, "common.items.food.mushroom"), (3, "common.items.food.mushroom"),
(1, "common.items.food.coconut"), (1, "common.items.food.coconut"),
(1, "common.items.food.lettuce"),
(1, "common.items.food.tomato"),
(2, "common.items.food.carrot"),
// crafted // crafted
(0.05, "common.items.food.apple_mushroom_curry"), (0.05, "common.items.food.apple_mushroom_curry"),
(0.10, "common.items.food.apple_stick"), (0.10, "common.items.food.apple_stick"),

View File

@ -1,5 +1,6 @@
[ [
// Crafting Ingredients // Crafting Ingredients
(2, "common.items.crafting_ing.bowl"),
(1, "common.items.crafting_ing.empty_vial"), (1, "common.items.crafting_ing.empty_vial"),
(0.10, "common.items.crafting_ing.shiny_gem"), (0.10, "common.items.crafting_ing.shiny_gem"),
(1, "common.items.crafting_ing.cloth_scraps"), (1, "common.items.crafting_ing.cloth_scraps"),
@ -21,6 +22,9 @@
(0.05, "common.items.utility.collar"), (0.05, "common.items.utility.collar"),
// Food // Food
(0.5, "common.items.food.coconut"), (0.5, "common.items.food.coconut"),
(0.5, "common.items.food.lettuce"),
(0.75, "common.items.food.carrot"),
(0.75, "common.items.food.tomato"),
(0.05, "common.items.food.apple_mushroom_curry"), (0.05, "common.items.food.apple_mushroom_curry"),
(0.10, "common.items.food.apple_stick"), (0.10, "common.items.food.apple_stick"),
(0.10, "common.items.food.mushroom_stick"), (0.10, "common.items.food.mushroom_stick"),

View File

@ -119,6 +119,21 @@
("common.items.crafting_tools.mortar_pestle", 0), ("common.items.crafting_tools.mortar_pestle", 0),
], ],
), ),
"salad_plain": (
("common.items.food.plainsalad", 1),
[
("common.items.food.lettuce", 1),
("common.items.crafting_ing.bowl", 1),
],
),
"salad_tomato": (
("common.items.food.tomatosalad", 1),
[
("common.items.food.lettuce", 1),
("common.items.food.tomato", 2),
("common.items.crafting_ing.bowl", 1),
],
),
"apples_stick": ( "apples_stick": (
("common.items.food.apple_stick", 1), ("common.items.food.apple_stick", 1),
[("common.items.crafting_ing.twigs", 2), ("common.items.food.apple", 2)], [("common.items.crafting_ing.twigs", 2), ("common.items.food.apple", 2)],

View File

@ -565,6 +565,24 @@
], ],
threshold: 0.3, threshold: 0.3,
), ),
Inventory(Consumed("Tomato")): (
files: [
"voxygen.audio.sfx.inventory.consumable.food",
],
threshold: 0.3,
),
Inventory(Consumed("Fish")): (
files: [
"voxygen.audio.sfx.inventory.consumable.food",
],
threshold: 0.3,
),
Inventory(Consumed("Carrot")): (
files: [
"voxygen.audio.sfx.inventory.consumable.food",
],
threshold: 0.3,
),
Inventory(Consumed("Velorite")): ( Inventory(Consumed("Velorite")): (
files: [ files: [
"voxygen.audio.sfx.inventory.consumable.food", "voxygen.audio.sfx.inventory.consumable.food",

View File

@ -1459,6 +1459,30 @@
Consumable("SunflowerTea"): Png( Consumable("SunflowerTea"): Png(
"element.icons.item_sunflower_tea", "element.icons.item_sunflower_tea",
), ),
Consumable("Carrot"): VoxTrans(
"voxel.sprite.carrot.carrot",
(0.0, 0.0, 0.0), (-20.0, 10.0, 20.0), 0.9,
),
Consumable("Tomato"): VoxTrans(
"voxel.sprite.tomato.tomato",
(0.0, 0.0, 0.0), (-50.0, 30.0, 20.0), 0.8,
),
Consumable("Lettuce"): VoxTrans(
"voxel.sprite.cabbage.cabbage",
(0.0, 0.0, 0.0), (-50.0, 30.0, 20.0), 0.8,
),
Consumable("Fish"): VoxTrans(
"voxel.sprite.food.meat_fish",
(0.0, 0.0, 0.0), (-20.0, 10.0, 20.0), 0.9,
),
Consumable("PlainSalad"): VoxTrans(
"voxel.sprite.food.salad_plain",
(0.0, 0.0, 0.0), (-50.0, 30.0, 20.0), 0.8,
),
Consumable("TomatoSalad"): VoxTrans(
"voxel.sprite.food.salad_tomato",
(0.0, 0.0, 0.0), (-50.0, 30.0, 20.0), 0.8,
),
// Throwables // Throwables
Throwable(Bomb): VoxTrans( Throwable(Bomb): VoxTrans(
"voxel.object.bomb", "voxel.object.bomb",
@ -1529,6 +1553,14 @@
"voxel.sprite.twigs.twigs-0", "voxel.sprite.twigs.twigs-0",
(0.0, 0.0, 0.0), (-20.0, 10.0, 20.0), 0.9, (0.0, 0.0, 0.0), (-20.0, 10.0, 20.0), 0.9,
), ),
Ingredient("AnimalPelt"): VoxTrans(
"voxel.sprite.crafting_ing.pelt",
(0.0, 0.0, 0.0), (-20.0, 10.0, 20.0), 0.9,
),
Ingredient("Claw"): VoxTrans(
"voxel.sprite.crafting_ing.claw",
(0.0, 0.0, 0.0), (-20.0, 10.0, 20.0), 0.9,
),
Ingredient("Honey"): Png( Ingredient("Honey"): Png(
"element.icons.item_honey", "element.icons.item_honey",
), ),
@ -1554,6 +1586,18 @@
"voxel.object.potion_empty", "voxel.object.potion_empty",
(0.0, 0.0, 0.0), (-50.0, 30.0, 20.0), 0.8, (0.0, 0.0, 0.0), (-50.0, 30.0, 20.0), 0.8,
), ),
Ingredient("Bowl"): VoxTrans(
"voxel.sprite.crafting_ing.bowl",
(0.0, 0.0, 0.0), (-50.0, 30.0, 20.0), 0.8,
),
Ingredient("Oil"): VoxTrans(
"voxel.sprite.crafting_ing.oil",
(0.0, 0.0, 0.0), (-50.0, 30.0, 20.0), 0.8,
),
Ingredient("ViscousOoze"): VoxTrans(
"voxel.sprite.crafting_ing.ooze",
(0.0, 0.0, 0.0), (-50.0, 30.0, 20.0), 0.8,
),
// Gliders // Gliders
Glider("Starter"): VoxTrans( Glider("Starter"): VoxTrans(
"voxel.glider.glider_starter", "voxel.glider.glider_starter",

BIN
assets/voxygen/voxel/sprite/cabbage/cabbage.vox (Stored with Git LFS) Normal file

Binary file not shown.

BIN
assets/voxygen/voxel/sprite/carrot/carrot.vox (Stored with Git LFS) Normal file

Binary file not shown.

BIN
assets/voxygen/voxel/sprite/crafting_ing/bowl.vox (Stored with Git LFS) Normal file

Binary file not shown.

BIN
assets/voxygen/voxel/sprite/crafting_ing/claw.vox (Stored with Git LFS) Normal file

Binary file not shown.

BIN
assets/voxygen/voxel/sprite/crafting_ing/oil.vox (Stored with Git LFS) Normal file

Binary file not shown.

BIN
assets/voxygen/voxel/sprite/crafting_ing/ooze.vox (Stored with Git LFS) Normal file

Binary file not shown.

BIN
assets/voxygen/voxel/sprite/crafting_ing/pelt.vox (Stored with Git LFS) Normal file

Binary file not shown.

BIN
assets/voxygen/voxel/sprite/food/meat_fish.vox (Stored with Git LFS) Normal file

Binary file not shown.

BIN
assets/voxygen/voxel/sprite/food/roastpig.vox (Stored with Git LFS) Normal file

Binary file not shown.

BIN
assets/voxygen/voxel/sprite/food/salad_plain.vox (Stored with Git LFS) Normal file

Binary file not shown.

BIN
assets/voxygen/voxel/sprite/food/salad_tomato.vox (Stored with Git LFS) Normal file

Binary file not shown.

BIN
assets/voxygen/voxel/sprite/tomato/tomato.vox (Stored with Git LFS) Normal file

Binary file not shown.

View File

@ -2001,6 +2001,17 @@ VialEmpty: Some((
], ],
wind_sway: 0.0, wind_sway: 0.0,
)), )),
// Bowls
Bowl: Some((
variations: [
(
model: "voxygen.voxel.sprite.crafting_ing.bowl",
offset: (-5.5, -5.5, 0.0),
lod_axes: (1.0, 1.0, 1.0),
),
],
wind_sway: 0.0,
)),
// Minor Potion // Minor Potion
PotionMinor: Some(( PotionMinor: Some((
variations: [ variations: [

View File

@ -537,6 +537,7 @@ impl Item {
SpriteKind::Twigs => "common.items.crafting_ing.twigs", SpriteKind::Twigs => "common.items.crafting_ing.twigs",
SpriteKind::ShinyGem => "common.items.crafting_ing.shiny_gem", SpriteKind::ShinyGem => "common.items.crafting_ing.shiny_gem",
SpriteKind::VialEmpty => "common.items.crafting_ing.empty_vial", SpriteKind::VialEmpty => "common.items.crafting_ing.empty_vial",
SpriteKind::Bowl => "common.items.crafting_ing.bowl",
SpriteKind::PotionMinor => "common.items.consumable.potion_minor", SpriteKind::PotionMinor => "common.items.consumable.potion_minor",
_ => return None, _ => return None,
})) }))

View File

@ -110,6 +110,7 @@ make_case_elim!(
Mud = 0x53, Mud = 0x53,
FireBowlGround = 0x54, FireBowlGround = 0x54,
CaveMushroom = 0x55, CaveMushroom = 0x55,
Bowl = 0x56,
} }
); );
@ -198,6 +199,7 @@ impl SpriteKind {
SpriteKind::Beehive => true, SpriteKind::Beehive => true,
SpriteKind::VialEmpty => true, SpriteKind::VialEmpty => true,
SpriteKind::PotionMinor => true, SpriteKind::PotionMinor => true,
SpriteKind::Bowl => true,
SpriteKind::ChestBurried => true, SpriteKind::ChestBurried => true,
SpriteKind::Mud => true, SpriteKind::Mud => true,
_ => false, _ => false,
@ -238,6 +240,7 @@ impl SpriteKind {
| SpriteKind::Door | SpriteKind::Door
| SpriteKind::Beehive | SpriteKind::Beehive
| SpriteKind::PotionMinor | SpriteKind::PotionMinor
| SpriteKind::Bowl
| SpriteKind::VialEmpty | SpriteKind::VialEmpty
| SpriteKind::FireBowlGround | SpriteKind::FireBowlGround
) )

View File

@ -343,6 +343,8 @@ pub fn handle_destroy(server: &mut Server, entity: EcsEntity, cause: HealthSourc
0 => "common.loot_tables.loot_table_food", 0 => "common.loot_tables.loot_table_food",
_ => "common.loot_tables.loot_table", _ => "common.loot_tables.loot_table",
}, },
Some(common::comp::Body::FishMedium(_)) => "common.loot_tables.loot_table_fish",
Some(common::comp::Body::FishSmall(_)) => "common.loot_tables.loot_table_fish",
Some(common::comp::Body::BipedLarge(biped_large)) => match biped_large.species { Some(common::comp::Body::BipedLarge(biped_large)) => match biped_large.species {
biped_large::Species::Wendigo => match rng.gen_range(0, 7) { biped_large::Species::Wendigo => match rng.gen_range(0, 7) {
0 => "common.loot_tables.loot_table_food", 0 => "common.loot_tables.loot_table_food",

View File

@ -561,7 +561,13 @@ impl Archetype for House {
SpriteKind::VialEmpty SpriteKind::VialEmpty
} }
}, },
_ => SpriteKind::Pot, _ => {
if dynamic_rng.gen_range(0, 2) == 0 {
SpriteKind::Bowl
} else {
SpriteKind::Pot
}
},
}; };
return BlockMask::new( return BlockMask::new(