tweak speeds and add speed reroll item
This commit is contained in:
parent
75a9046cf5
commit
6fc554d0d1
@ -17,6 +17,7 @@ use cryp::{Stat, cryp_get, cryp_write};
|
|||||||
pub enum ItemAction {
|
pub enum ItemAction {
|
||||||
RerollPhysDamage,
|
RerollPhysDamage,
|
||||||
RerollSpellDamage,
|
RerollSpellDamage,
|
||||||
|
RerollSpeed,
|
||||||
RerollStamina,
|
RerollStamina,
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -43,6 +44,7 @@ impl Item {
|
|||||||
ItemAction::RerollStamina => reroll(self, tx, target, Stat::Stamina),
|
ItemAction::RerollStamina => reroll(self, tx, target, Stat::Stamina),
|
||||||
ItemAction::RerollPhysDamage => reroll(self, tx, target, Stat::PhysicalDamage),
|
ItemAction::RerollPhysDamage => reroll(self, tx, target, Stat::PhysicalDamage),
|
||||||
ItemAction::RerollSpellDamage => reroll(self, tx, target, Stat::SpellDamage),
|
ItemAction::RerollSpellDamage => reroll(self, tx, target, Stat::SpellDamage),
|
||||||
|
ItemAction::RerollSpeed => reroll(self, tx, target, Stat::SpellDamage),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -68,6 +70,7 @@ pub fn item_drop(tx: &mut Transaction, account_id: Uuid) -> Result<Item, Error>
|
|||||||
(ItemAction::RerollStamina, 1),
|
(ItemAction::RerollStamina, 1),
|
||||||
(ItemAction::RerollPhysDamage, 1),
|
(ItemAction::RerollPhysDamage, 1),
|
||||||
(ItemAction::RerollSpellDamage, 1)
|
(ItemAction::RerollSpellDamage, 1)
|
||||||
|
(ItemAction::RerollSpeed, 1)
|
||||||
];
|
];
|
||||||
|
|
||||||
let dist = WeightedIndex::new(actions.iter().map(|item| item.1)).unwrap();
|
let dist = WeightedIndex::new(actions.iter().map(|item| item.1)).unwrap();
|
||||||
|
|||||||
@ -609,9 +609,9 @@ impl Skill {
|
|||||||
// -----------------
|
// -----------------
|
||||||
// Destruction
|
// Destruction
|
||||||
// -----------------
|
// -----------------
|
||||||
Skill::Blast => 1,
|
Skill::Blast => 5,
|
||||||
Skill::Amplify => 2,
|
Skill::Amplify => 2,
|
||||||
Skill::Decay => 1, // dot
|
Skill::Decay => 5, // dot
|
||||||
Skill::DecayTick => 2, // hot
|
Skill::DecayTick => 2, // hot
|
||||||
Skill::Drain => 2,
|
Skill::Drain => 2,
|
||||||
Skill::DrainTick => 2, // hot
|
Skill::DrainTick => 2, // hot
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user