mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
put Organ under Toolkind Instrument
This commit is contained in:
parent
0678273a3f
commit
6c89cd8fbf
@ -2,7 +2,7 @@ ItemDef(
|
|||||||
name: "Organ Aura",
|
name: "Organ Aura",
|
||||||
description: "Motivational Tune",
|
description: "Motivational Tune",
|
||||||
kind: Tool((
|
kind: Tool((
|
||||||
kind: Organ,
|
kind: Instrument,
|
||||||
hands: Two,
|
hands: Two,
|
||||||
stats: (
|
stats: (
|
||||||
equip_time_secs: 0.0,
|
equip_time_secs: 0.0,
|
||||||
|
@ -450,7 +450,7 @@
|
|||||||
],
|
],
|
||||||
threshold: 0.2,
|
threshold: 0.2,
|
||||||
),
|
),
|
||||||
Attack(BasicAura, Organ): (
|
Attack(BasicAura, Instrument): (
|
||||||
files: [
|
files: [
|
||||||
"voxygen.audio.sfx.abilities.barrel_organ",
|
"voxygen.audio.sfx.abilities.barrel_organ",
|
||||||
],
|
],
|
||||||
|
@ -70,7 +70,6 @@ common-weapons-staff_simple = Simple Staff
|
|||||||
common-weapons-axe_simple = Simple Axe
|
common-weapons-axe_simple = Simple Axe
|
||||||
common-weapons-bow_simple = Simple Bow
|
common-weapons-bow_simple = Simple Bow
|
||||||
common-weapons-unique = Unique
|
common-weapons-unique = Unique
|
||||||
common-weapons-organ = Organ
|
|
||||||
common-tool-debug = Debug
|
common-tool-debug = Debug
|
||||||
common-tool-farming = Farming Tool
|
common-tool-farming = Farming Tool
|
||||||
common-tool-pick = Pickaxe
|
common-tool-pick = Pickaxe
|
||||||
|
@ -176,7 +176,6 @@ fn get_tool_kind(kind: &ToolKind) -> String {
|
|||||||
ToolKind::Pick => "Pick".to_string(),
|
ToolKind::Pick => "Pick".to_string(),
|
||||||
ToolKind::Instrument => "Instrument".to_string(),
|
ToolKind::Instrument => "Instrument".to_string(),
|
||||||
ToolKind::Natural => "Natural".to_string(),
|
ToolKind::Natural => "Natural".to_string(),
|
||||||
ToolKind::Organ => "Organ".to_string(),
|
|
||||||
ToolKind::Empty => "Empty".to_string(),
|
ToolKind::Empty => "Empty".to_string(),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -34,7 +34,6 @@ pub enum ToolKind {
|
|||||||
/// Intended for invisible weapons (e.g. a creature using its claws or
|
/// Intended for invisible weapons (e.g. a creature using its claws or
|
||||||
/// biting)
|
/// biting)
|
||||||
Natural,
|
Natural,
|
||||||
Organ,
|
|
||||||
/// This is an placeholder item, it is used by non-humanoid npcs to attack
|
/// This is an placeholder item, it is used by non-humanoid npcs to attack
|
||||||
/// Music Instruments
|
/// Music Instruments
|
||||||
Instrument,
|
Instrument,
|
||||||
@ -59,7 +58,6 @@ impl ToolKind {
|
|||||||
ToolKind::Debug => "debug",
|
ToolKind::Debug => "debug",
|
||||||
ToolKind::Farming => "farming",
|
ToolKind::Farming => "farming",
|
||||||
ToolKind::Pick => "pickaxe",
|
ToolKind::Pick => "pickaxe",
|
||||||
ToolKind::Organ => "organ",
|
|
||||||
ToolKind::Instrument => "instrument",
|
ToolKind::Instrument => "instrument",
|
||||||
ToolKind::Empty => "empty",
|
ToolKind::Empty => "empty",
|
||||||
}
|
}
|
||||||
|
@ -86,8 +86,7 @@ pub fn skill_group_to_db_string(skill_group: comp::skillset::SkillGroupKind) ->
|
|||||||
| Weapon(ToolKind::Farming)
|
| Weapon(ToolKind::Farming)
|
||||||
| Weapon(ToolKind::Instrument)
|
| Weapon(ToolKind::Instrument)
|
||||||
| Weapon(ToolKind::Empty)
|
| Weapon(ToolKind::Empty)
|
||||||
| Weapon(ToolKind::Natural)
|
| Weapon(ToolKind::Natural) => panic!(
|
||||||
| Weapon(ToolKind::Organ) => panic!(
|
|
||||||
"Tried to add unsupported skill group to database: {:?}",
|
"Tried to add unsupported skill group to database: {:?}",
|
||||||
skill_group
|
skill_group
|
||||||
),
|
),
|
||||||
@ -207,7 +206,6 @@ fn tool_kind_to_string(tool: Option<comp::item::tool::ToolKind>) -> String {
|
|||||||
Some(Debug) => "Debug",
|
Some(Debug) => "Debug",
|
||||||
Some(Natural) => "Natural",
|
Some(Natural) => "Natural",
|
||||||
Some(Instrument) => "Instrument",
|
Some(Instrument) => "Instrument",
|
||||||
Some(Organ) => "Organ",
|
|
||||||
Some(Empty) => "Empty",
|
Some(Empty) => "Empty",
|
||||||
None => "None",
|
None => "None",
|
||||||
})
|
})
|
||||||
@ -227,11 +225,9 @@ fn tool_kind_from_string(tool: String) -> Option<comp::item::tool::ToolKind> {
|
|||||||
"Spear" => Some(Spear),
|
"Spear" => Some(Spear),
|
||||||
"Blowgun" => Some(Blowgun),
|
"Blowgun" => Some(Blowgun),
|
||||||
"Pick" => Some(Pick),
|
"Pick" => Some(Pick),
|
||||||
|
|
||||||
"Farming" => Some(Farming),
|
"Farming" => Some(Farming),
|
||||||
"Debug" => Some(Debug),
|
"Debug" => Some(Debug),
|
||||||
"Natural" => Some(Natural),
|
"Natural" => Some(Natural),
|
||||||
"Organ" => Some(Organ),
|
|
||||||
"Empty" => Some(Empty),
|
"Empty" => Some(Empty),
|
||||||
"None" => None,
|
"None" => None,
|
||||||
unknown => {
|
unknown => {
|
||||||
|
@ -2836,7 +2836,6 @@ fn unlock_skill_strings(group: SkillGroupKind) -> SkillStrings<'static> {
|
|||||||
| ToolKind::Instrument
|
| ToolKind::Instrument
|
||||||
| ToolKind::Pick
|
| ToolKind::Pick
|
||||||
| ToolKind::Natural
|
| ToolKind::Natural
|
||||||
| ToolKind::Organ
|
|
||||||
| ToolKind::Empty,
|
| ToolKind::Empty,
|
||||||
) => {
|
) => {
|
||||||
tracing::warn!("Requesting title for unlocking unexpected skill group");
|
tracing::warn!("Requesting title for unlocking unexpected skill group");
|
||||||
|
@ -250,7 +250,6 @@ fn tool_kind<'a>(tool: &Tool, i18n: &'a Localization) -> Cow<'a, str> {
|
|||||||
ToolKind::Shield => i18n.get_msg("common-weapons-shield"),
|
ToolKind::Shield => i18n.get_msg("common-weapons-shield"),
|
||||||
ToolKind::Spear => i18n.get_msg("common-weapons-spear"),
|
ToolKind::Spear => i18n.get_msg("common-weapons-spear"),
|
||||||
ToolKind::Blowgun => i18n.get_msg("common-weapons-blowgun"),
|
ToolKind::Blowgun => i18n.get_msg("common-weapons-blowgun"),
|
||||||
ToolKind::Organ => i18n.get_msg("common-weapons-organ"),
|
|
||||||
ToolKind::Natural => i18n.get_msg("common-weapons-natural"),
|
ToolKind::Natural => i18n.get_msg("common-weapons-natural"),
|
||||||
ToolKind::Debug => i18n.get_msg("common-tool-debug"),
|
ToolKind::Debug => i18n.get_msg("common-tool-debug"),
|
||||||
ToolKind::Farming => i18n.get_msg("common-tool-farming"),
|
ToolKind::Farming => i18n.get_msg("common-tool-farming"),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user