mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
assets update
map image human male hairstyles elf male hairstyle potion item cheese item removed admin items from inventory
This commit is contained in:
parent
06c41f1c31
commit
c38447a264
@ -4,7 +4,7 @@ Item(
|
|||||||
kind: Consumable(
|
kind: Consumable(
|
||||||
kind: Apple,
|
kind: Apple,
|
||||||
effect: Health((
|
effect: Health((
|
||||||
amount: 10,
|
amount: 20,
|
||||||
cause: Item,
|
cause: Item,
|
||||||
)),
|
)),
|
||||||
),
|
),
|
||||||
|
11
assets/common/items/cheese.ron
Normal file
11
assets/common/items/cheese.ron
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
Item(
|
||||||
|
name: "Dwarven Cheese",
|
||||||
|
description: "Aromatic and nutritious.",
|
||||||
|
kind: Consumable(
|
||||||
|
kind: Cheese,
|
||||||
|
effect: Health((
|
||||||
|
amount: 40,
|
||||||
|
cause: Item,
|
||||||
|
)),
|
||||||
|
),
|
||||||
|
)
|
11
assets/common/items/potion_minor.ron
Normal file
11
assets/common/items/potion_minor.ron
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
Item(
|
||||||
|
name: "Minor Potion",
|
||||||
|
description: "Restores a small amount of Health.",
|
||||||
|
kind: Consumable(
|
||||||
|
kind: PotionMinor,
|
||||||
|
effect: Health((
|
||||||
|
amount: 50,
|
||||||
|
cause: Item,
|
||||||
|
)),
|
||||||
|
),
|
||||||
|
)
|
@ -1,5 +1,5 @@
|
|||||||
Item(
|
Item(
|
||||||
name: "Your first staff",
|
name: "Gnarled Rod",
|
||||||
description: "Smells like resin and magic.",
|
description: "Smells like resin and magic.",
|
||||||
kind: Tool(
|
kind: Tool(
|
||||||
kind: Staff,
|
kind: Staff,
|
||||||
|
BIN
assets/voxygen/background/map.png
(Stored with Git LFS)
BIN
assets/voxygen/background/map.png
(Stored with Git LFS)
Binary file not shown.
BIN
assets/voxygen/element/icons/item_apple.vox
(Stored with Git LFS)
BIN
assets/voxygen/element/icons/item_apple.vox
(Stored with Git LFS)
Binary file not shown.
BIN
assets/voxygen/element/icons/item_cheese.png
(Stored with Git LFS)
Normal file
BIN
assets/voxygen/element/icons/item_cheese.png
(Stored with Git LFS)
Normal file
Binary file not shown.
@ -36,6 +36,13 @@
|
|||||||
"element.icons.item_apple",
|
"element.icons.item_apple",
|
||||||
(0.0, 0.0, 0.0), (-90.0, 90.0, 0.0), 1.0,
|
(0.0, 0.0, 0.0), (-90.0, 90.0, 0.0), 1.0,
|
||||||
),
|
),
|
||||||
|
Consumable(PotionMinor): VoxTrans(
|
||||||
|
"voxel.object.potion_red",
|
||||||
|
(0.0, 0.0, 0.0), (-50.0, 30.0, 20.0), 0.8,
|
||||||
|
),
|
||||||
|
Consumable(Cheese): Png(
|
||||||
|
"element.icons.item_cheese",
|
||||||
|
),
|
||||||
Consumable(Potion): VoxTrans(
|
Consumable(Potion): VoxTrans(
|
||||||
"voxel.object.potion_red",
|
"voxel.object.potion_red",
|
||||||
(0.0, 0.0, 0.0), (90.0, 90.0, 0.0), 1.0,
|
(0.0, 0.0, 0.0), (90.0, 90.0, 0.0), 1.0,
|
||||||
|
BIN
assets/voxygen/voxel/figure/beard/human/human-2.vox
(Stored with Git LFS)
Normal file
BIN
assets/voxygen/voxel/figure/beard/human/human-2.vox
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
assets/voxygen/voxel/figure/hair/elf/male-2.vox
(Stored with Git LFS)
Normal file
BIN
assets/voxygen/voxel/figure/hair/elf/male-2.vox
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
assets/voxygen/voxel/figure/hair/human/male-10.vox
(Stored with Git LFS)
BIN
assets/voxygen/voxel/figure/hair/human/male-10.vox
(Stored with Git LFS)
Binary file not shown.
BIN
assets/voxygen/voxel/figure/hair/human/male-20.vox
(Stored with Git LFS)
Normal file
BIN
assets/voxygen/voxel/figure/hair/human/male-20.vox
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
assets/voxygen/voxel/figure/hair/human/male-6.vox
(Stored with Git LFS)
BIN
assets/voxygen/voxel/figure/hair/human/male-6.vox
(Stored with Git LFS)
Binary file not shown.
BIN
assets/voxygen/voxel/figure/hair/human/male-7.vox
(Stored with Git LFS)
BIN
assets/voxygen/voxel/figure/hair/human/male-7.vox
(Stored with Git LFS)
Binary file not shown.
BIN
assets/voxygen/voxel/figure/head/human/male.vox
(Stored with Git LFS)
BIN
assets/voxygen/voxel/figure/head/human/male.vox
(Stored with Git LFS)
Binary file not shown.
@ -8,10 +8,28 @@
|
|||||||
Some(("figure.hair.human.male-1", (1, 1, 1))),
|
Some(("figure.hair.human.male-1", (1, 1, 1))),
|
||||||
Some(("figure.hair.human.male-2", (0, -1, 0))),
|
Some(("figure.hair.human.male-2", (0, -1, 0))),
|
||||||
Some(("figure.hair.human.male-3", (0, -1, 0))),
|
Some(("figure.hair.human.male-3", (0, -1, 0))),
|
||||||
|
Some(("figure.hair.human.male-4", (2, 2, 0))),
|
||||||
|
Some(("figure.hair.human.male-5", (1, 1, 0))),
|
||||||
|
Some(("figure.hair.human.male-6", (1, 1, 1))),
|
||||||
|
//Some(("figure.hair.human.male-7", (0, 0, 0))),
|
||||||
|
//Some(("figure.hair.human.male-8", (5, 0, 5))),
|
||||||
|
//Some(("figure.hair.human.male-9", (5, 0, 5))),
|
||||||
|
Some(("figure.hair.human.male-10", (-3, -5, -4))),
|
||||||
|
//Some(("figure.hair.human.male-11", (0, 0, 0))),
|
||||||
|
Some(("figure.hair.human.male-12", (4, 2, 7))),
|
||||||
|
Some(("figure.hair.human.male-13", (1, 1, 0))),
|
||||||
|
Some(("figure.hair.human.male-14", (2, 0, 1))),
|
||||||
|
Some(("figure.hair.human.male-15", (1, 1, 0))),
|
||||||
|
Some(("figure.hair.human.male-16", (1, 0, 0))),
|
||||||
|
Some(("figure.hair.human.male-17", (1, 1, 0))),
|
||||||
|
Some(("figure.hair.human.male-18", (1, 0, 0))),
|
||||||
|
Some(("figure.hair.human.male-19", (2, 1, 0))),
|
||||||
|
Some(("figure.hair.human.male-20", (-3, -4, -7))),
|
||||||
],
|
],
|
||||||
beard: [
|
beard: [
|
||||||
Some(("figure.beard.human.human-0", (4, 6, -2))),
|
Some(("figure.beard.human.human-0", (4, 6, -2))),
|
||||||
Some(("figure.beard.human.human-1", (5, 10, -2))),
|
Some(("figure.beard.human.human-1", (5, 10, -2))),
|
||||||
|
Some(("figure.beard.human.human-2", (3, 7, -3))),
|
||||||
],
|
],
|
||||||
accessory: [
|
accessory: [
|
||||||
None]
|
None]
|
||||||
@ -94,6 +112,7 @@
|
|||||||
hair: [
|
hair: [
|
||||||
Some(("figure.hair.elf.male-0", (2, 1, 1))),
|
Some(("figure.hair.elf.male-0", (2, 1, 1))),
|
||||||
Some(("figure.hair.elf.male-1", (1, -1, 0))),
|
Some(("figure.hair.elf.male-1", (1, -1, 0))),
|
||||||
|
Some(("figure.hair.elf.male-2", (-2, -4, -7))),
|
||||||
],
|
],
|
||||||
beard: [None],
|
beard: [None],
|
||||||
accessory: [
|
accessory: [
|
||||||
|
BIN
assets/voxygen/voxel/object/potion_red.vox
(Stored with Git LFS)
BIN
assets/voxygen/voxel/object/potion_red.vox
(Stored with Git LFS)
Binary file not shown.
@ -335,9 +335,9 @@ impl Race {
|
|||||||
(Race::Dwarf, BodyType::Female) => 1,
|
(Race::Dwarf, BodyType::Female) => 1,
|
||||||
(Race::Dwarf, BodyType::Male) => 3,
|
(Race::Dwarf, BodyType::Male) => 3,
|
||||||
(Race::Elf, BodyType::Female) => 21,
|
(Race::Elf, BodyType::Female) => 21,
|
||||||
(Race::Elf, BodyType::Male) => 2,
|
(Race::Elf, BodyType::Male) => 3,
|
||||||
(Race::Human, BodyType::Female) => 19,
|
(Race::Human, BodyType::Female) => 19,
|
||||||
(Race::Human, BodyType::Male) => 4,
|
(Race::Human, BodyType::Male) => 17,
|
||||||
(Race::Orc, BodyType::Female) => 1,
|
(Race::Orc, BodyType::Female) => 1,
|
||||||
(Race::Orc, BodyType::Male) => 8,
|
(Race::Orc, BodyType::Male) => 8,
|
||||||
(Race::Undead, BodyType::Female) => 4,
|
(Race::Undead, BodyType::Female) => 4,
|
||||||
@ -369,7 +369,7 @@ impl Race {
|
|||||||
(Race::Elf, BodyType::Female) => 1,
|
(Race::Elf, BodyType::Female) => 1,
|
||||||
(Race::Elf, BodyType::Male) => 1,
|
(Race::Elf, BodyType::Male) => 1,
|
||||||
(Race::Human, BodyType::Female) => 1,
|
(Race::Human, BodyType::Female) => 1,
|
||||||
(Race::Human, BodyType::Male) => 3,
|
(Race::Human, BodyType::Male) => 4,
|
||||||
(Race::Orc, BodyType::Female) => 1,
|
(Race::Orc, BodyType::Female) => 1,
|
||||||
(Race::Orc, BodyType::Male) => 3,
|
(Race::Orc, BodyType::Male) => 3,
|
||||||
(Race::Undead, BodyType::Female) => 1,
|
(Race::Undead, BodyType::Female) => 1,
|
||||||
|
@ -46,10 +46,12 @@ pub enum Armor {
|
|||||||
#[derive(Clone, Debug, PartialEq, Eq, Hash, Serialize, Deserialize)]
|
#[derive(Clone, Debug, PartialEq, Eq, Hash, Serialize, Deserialize)]
|
||||||
pub enum Consumable {
|
pub enum Consumable {
|
||||||
Apple,
|
Apple,
|
||||||
|
Cheese,
|
||||||
Potion,
|
Potion,
|
||||||
Mushroom,
|
Mushroom,
|
||||||
Velorite,
|
Velorite,
|
||||||
VeloriteFrag,
|
VeloriteFrag,
|
||||||
|
PotionMinor,
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Clone, Debug, PartialEq, Eq, Hash, Serialize, Deserialize)]
|
#[derive(Clone, Debug, PartialEq, Eq, Hash, Serialize, Deserialize)]
|
||||||
@ -110,7 +112,7 @@ impl Item {
|
|||||||
Some(assets::load_expect_cloned("common.items.grasses.medium"))
|
Some(assets::load_expect_cloned("common.items.grasses.medium"))
|
||||||
}
|
}
|
||||||
BlockKind::ShortGrass => Some(assets::load_expect_cloned("common.items.grasses.short")),
|
BlockKind::ShortGrass => Some(assets::load_expect_cloned("common.items.grasses.short")),
|
||||||
BlockKind::Chest => Some(match rand::random::<usize>() % 4 {
|
BlockKind::Chest => Some(match rand::random::<usize>() % 6 {
|
||||||
0 => assets::load_expect_cloned("common.items.apple"),
|
0 => assets::load_expect_cloned("common.items.apple"),
|
||||||
1 => assets::load_expect_cloned("common.items.velorite"),
|
1 => assets::load_expect_cloned("common.items.velorite"),
|
||||||
2 => (**assets::load_glob::<Item>("common.items.weapons.*")
|
2 => (**assets::load_glob::<Item>("common.items.weapons.*")
|
||||||
@ -119,6 +121,8 @@ impl Item {
|
|||||||
.expect("Empty glob"))
|
.expect("Empty glob"))
|
||||||
.clone(),
|
.clone(),
|
||||||
3 => assets::load_expect_cloned("common.items.veloritefrag"),
|
3 => assets::load_expect_cloned("common.items.veloritefrag"),
|
||||||
|
4 => assets::load_expect_cloned("common.items.cheese"),
|
||||||
|
5 => assets::load_expect_cloned("common.items.potion_minor"),
|
||||||
_ => unreachable!(),
|
_ => unreachable!(),
|
||||||
}),
|
}),
|
||||||
_ => None,
|
_ => None,
|
||||||
|
@ -72,9 +72,8 @@ impl Default for Inventory {
|
|||||||
let mut inventory = Inventory {
|
let mut inventory = Inventory {
|
||||||
slots: vec![None; 25],
|
slots: vec![None; 25],
|
||||||
};
|
};
|
||||||
|
inventory.push(assets::load_expect_cloned("common.items.cheese"));
|
||||||
inventory.push(assets::load_expect_cloned("common.items.debug.boost"));
|
inventory.push(assets::load_expect_cloned("common.items.apple"));
|
||||||
inventory.push(assets::load_expect_cloned("common.items.debug.possess"));
|
|
||||||
inventory
|
inventory
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -85,7 +85,8 @@ lazy_static! {
|
|||||||
ChatCommand::new(
|
ChatCommand::new(
|
||||||
"giveitem",
|
"giveitem",
|
||||||
"{d}",
|
"{d}",
|
||||||
"/giveitem <name> : Give yourself an item.",
|
"/giveitem <path to item>\n\
|
||||||
|
Example: common/items/debug/boost",
|
||||||
true,
|
true,
|
||||||
handle_give,),
|
handle_give,),
|
||||||
ChatCommand::new(
|
ChatCommand::new(
|
||||||
|
Loading…
Reference in New Issue
Block a user