mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
Stats adjusted for 2h. Poise adjusted by handedness.
This commit is contained in:
parent
435b5d5912
commit
94042bdf79
@ -216,16 +216,14 @@ impl StatKind {
|
|||||||
impl From<(&MaterialStatManifest, &[Item], &Tool)> for Stats {
|
impl From<(&MaterialStatManifest, &[Item], &Tool)> for Stats {
|
||||||
fn from((msm, components, tool): (&MaterialStatManifest, &[Item], &Tool)) -> Self {
|
fn from((msm, components, tool): (&MaterialStatManifest, &[Item], &Tool)) -> Self {
|
||||||
let raw_stats = tool.stats.resolve_stats(msm, components).clamp_speed();
|
let raw_stats = tool.stats.resolve_stats(msm, components).clamp_speed();
|
||||||
let (power, speed) = match tool.hands {
|
let (power, speed, poise) = match tool.hands {
|
||||||
Hands::One => (0.67, 1.33),
|
Hands::One => (0.67, 1.33, 0.67),
|
||||||
// TODO: Restore this when one-handed weapons are made accessible
|
Hands::Two => (1.5, 0.75, 1.5),
|
||||||
// Hands::Two => (1.5, 0.75),
|
|
||||||
Hands::Two => (1.0, 1.0),
|
|
||||||
};
|
};
|
||||||
Self {
|
Self {
|
||||||
equip_time_secs: raw_stats.equip_time_secs,
|
equip_time_secs: raw_stats.equip_time_secs,
|
||||||
power: raw_stats.power * power,
|
power: raw_stats.power * power,
|
||||||
poise_strength: raw_stats.poise_strength,
|
poise_strength: raw_stats.poise_strength * poise,
|
||||||
speed: raw_stats.speed * speed,
|
speed: raw_stats.speed * speed,
|
||||||
crit_chance: raw_stats.crit_chance,
|
crit_chance: raw_stats.crit_chance,
|
||||||
crit_mult: raw_stats.crit_mult,
|
crit_mult: raw_stats.crit_mult,
|
||||||
|
Loading…
Reference in New Issue
Block a user