healing sceptre

This commit is contained in:
Pfauenauge90 2020-03-24 01:11:14 +01:00
parent 43d4e8aad2
commit 060ebbc861
4 changed files with 24 additions and 0 deletions

View File

@ -0,0 +1,11 @@
Item(
name: "Sceptre of Regeneration",
description: " Infused by the power of Nature.
Power: 25",
kind: Tool(
ToolData (
kind: Staff(Sceptre),
equip_time_millis: 800,
)
),
)

View File

@ -45,6 +45,10 @@
"voxel.weapon.staff.wood-fire",
(0.0, -9.0, 0.0), (90.0, 90.0, 0.0), 2.5,
),
Tool(Staff(Sceptre)): VoxTrans(
"voxel.weapon.staff.wood-nature",
(0.0, -9.0, 0.0), (90.0, 90.0, 0.0), 2.5,
),
// Shields
Tool(Shield(BasicShield)): VoxTrans(
"voxel.weapon.shield.wood-0",

View File

@ -42,6 +42,10 @@
Staff(BasicStaff): (
vox_spec: ("weapon.staff.wood-fire", (-1.0, -6.0, -3.0)),
color: None
),
Staff(Sceptre): (
vox_spec: ("weapon.staff.wood-nature", (-1.0, -6.0, -5.0)),
color: None
),
Debug(Boost): (
vox_spec: ("weapon.debug_wand", (-1.5, -9.5, -4.0)),

View File

@ -39,6 +39,7 @@ pub enum DaggerKind {
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, Serialize, Deserialize)]
pub enum StaffKind {
BasicStaff,
Sceptre,
}
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, Serialize, Deserialize)]
pub enum ShieldKind {
@ -113,6 +114,10 @@ impl ToolData {
max_angle: 60.0,
}],
Staff(_) => vec![
//Intended behaviour for the healing sceptre: M1 -> Heal a single target (not a
// projectile, just a heal for the target.) Optional: Green flash of the healed
// target. M2: Heal everyone around the caster, including the
// caster
BasicMelee {
buildup_duration: Duration::from_millis(0),
recover_duration: Duration::from_millis(300),