mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
Merge branch 'crit-chance-removal' into 'master'
Removed crit_chance stat from two item .ron files See merge request veloren/veloren!4307
This commit is contained in:
commit
ac921c563d
@ -5,7 +5,7 @@ ItemDef(
|
||||
kind: Head,
|
||||
stats: Direct((
|
||||
protection: Some(Normal(8.0)),
|
||||
poise_resilence: Some(Normal(4.0)),
|
||||
poise_resilience: Some(Normal(4.0)),
|
||||
energy_reward: Some(0.15),
|
||||
precision_power: Some(-0.05),
|
||||
)),
|
||||
|
@ -4,7 +4,6 @@ ItemDef(
|
||||
kind: Utility(
|
||||
kind: Key,
|
||||
),
|
||||
amount: 1,
|
||||
quality: Common,
|
||||
tags: [Utility],
|
||||
)
|
||||
|
@ -4,7 +4,6 @@ ItemDef(
|
||||
kind: Utility(
|
||||
kind: Key,
|
||||
),
|
||||
amount: 1,
|
||||
quality: Common,
|
||||
tags: [Utility],
|
||||
)
|
||||
|
@ -4,7 +4,6 @@ ItemDef(
|
||||
kind: Utility(
|
||||
kind: Key,
|
||||
),
|
||||
amount: 1,
|
||||
quality: Common,
|
||||
tags: [Utility],
|
||||
)
|
||||
|
@ -4,7 +4,6 @@ ItemDef(
|
||||
kind: Utility(
|
||||
kind: Key,
|
||||
),
|
||||
amount: 1,
|
||||
quality: High,
|
||||
tags: [],
|
||||
)
|
||||
|
@ -4,7 +4,6 @@ ItemDef(
|
||||
kind: Utility(
|
||||
kind: Key,
|
||||
),
|
||||
amount: 1,
|
||||
quality: High,
|
||||
tags: [],
|
||||
)
|
||||
|
@ -4,7 +4,6 @@ ItemDef(
|
||||
kind: Utility(
|
||||
kind: Key,
|
||||
),
|
||||
amount: 1,
|
||||
quality: High,
|
||||
tags: [],
|
||||
)
|
||||
|
@ -4,7 +4,6 @@ ItemDef(
|
||||
kind: Utility(
|
||||
kind: Key,
|
||||
),
|
||||
amount: 1,
|
||||
quality: High,
|
||||
tags: [],
|
||||
)
|
||||
|
@ -4,7 +4,6 @@ ItemDef(
|
||||
kind: Utility(
|
||||
kind: Key,
|
||||
),
|
||||
amount: 1,
|
||||
quality: High,
|
||||
tags: [],
|
||||
)
|
||||
|
@ -4,7 +4,6 @@ ItemDef(
|
||||
kind: Utility(
|
||||
kind: Key,
|
||||
),
|
||||
amount: 1,
|
||||
quality: High,
|
||||
tags: [],
|
||||
)
|
||||
|
@ -4,7 +4,6 @@ ItemDef(
|
||||
kind: Utility(
|
||||
kind: Key,
|
||||
),
|
||||
amount: 1,
|
||||
quality: High,
|
||||
tags: [],
|
||||
)
|
||||
|
@ -4,7 +4,6 @@ ItemDef(
|
||||
kind: Utility(
|
||||
kind: Key,
|
||||
),
|
||||
amount: 1,
|
||||
quality: Epic,
|
||||
tags: [],
|
||||
)
|
||||
|
@ -9,7 +9,6 @@ ItemDef(
|
||||
power: 0.0,
|
||||
effect_power: 1.0,
|
||||
speed: 1.0,
|
||||
crit_chance: 0.0,
|
||||
range: 0.0,
|
||||
energy_efficiency: 1.0,
|
||||
buff_strength: 1.0,
|
||||
|
@ -9,7 +9,6 @@ ItemDef(
|
||||
power: 0.0,
|
||||
effect_power: 1.0,
|
||||
speed: 1.0,
|
||||
crit_chance: 0.0,
|
||||
range: 0.0,
|
||||
energy_efficiency: 1.0,
|
||||
buff_strength: 1.0,
|
||||
|
@ -4,7 +4,6 @@ ItemDef(
|
||||
kind: Utility(
|
||||
kind: Coins,
|
||||
),
|
||||
amount: 1,
|
||||
quality: Common,
|
||||
tags: [],
|
||||
)
|
||||
|
@ -4,7 +4,6 @@ ItemDef(
|
||||
kind: Utility(
|
||||
kind: Collar,
|
||||
),
|
||||
amount: 1,
|
||||
quality: Moderate,
|
||||
tags: [Utility],
|
||||
)
|
||||
|
@ -4,7 +4,6 @@ ItemDef(
|
||||
kind: Utility(
|
||||
kind: Key,
|
||||
),
|
||||
amount: 1,
|
||||
quality: Common,
|
||||
tags: [Utility],
|
||||
)
|
||||
|
@ -982,6 +982,7 @@ const SLASHING_ENERGY_FRACTION: f32 = 0.5;
|
||||
const CRUSHING_POISE_FRACTION: f32 = 1.0;
|
||||
|
||||
#[derive(Copy, Clone, Debug, PartialEq, Serialize, Deserialize)]
|
||||
#[serde(deny_unknown_fields)]
|
||||
pub struct Damage {
|
||||
pub source: DamageSource,
|
||||
pub kind: DamageKind,
|
||||
|
@ -141,6 +141,7 @@ impl Auras {
|
||||
}
|
||||
|
||||
#[derive(Copy, Clone, Debug, Serialize, Deserialize, PartialEq)]
|
||||
#[serde(deny_unknown_fields)]
|
||||
pub struct AuraBuffConstructor {
|
||||
pub kind: BuffKind,
|
||||
pub strength: f32,
|
||||
|
@ -8,6 +8,7 @@ use std::{convert::TryFrom, ops::Mul};
|
||||
|
||||
/// Specifies what and how much changed current health
|
||||
#[derive(Clone, Copy, Debug, Serialize, Deserialize, PartialEq)]
|
||||
#[serde(deny_unknown_fields)]
|
||||
pub struct HealthChange {
|
||||
/// The amount of the health change, negative is damage, positive is healing
|
||||
pub amount: f32,
|
||||
|
@ -99,6 +99,7 @@ impl Friction {
|
||||
}
|
||||
|
||||
#[derive(Clone, Copy, Debug, PartialEq, Serialize, Deserialize, Default)]
|
||||
#[serde(deny_unknown_fields)]
|
||||
pub struct Stats {
|
||||
/// Protection is non-linearly transformed (following summation) to a damage
|
||||
/// reduction using (prot / (60 + prot))
|
||||
@ -232,6 +233,7 @@ impl PartialOrd for Protection {
|
||||
}
|
||||
|
||||
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
|
||||
#[serde(deny_unknown_fields)]
|
||||
pub struct Armor {
|
||||
pub kind: ArmorKind,
|
||||
pub stats: StatsSource,
|
||||
|
@ -57,6 +57,7 @@ pub enum Utility {
|
||||
}
|
||||
|
||||
#[derive(Clone, Debug, PartialEq, Eq, Hash, Serialize, Deserialize)]
|
||||
#[serde(deny_unknown_fields)]
|
||||
pub struct Lantern {
|
||||
color: Rgb<u32>,
|
||||
strength_thousandths: u32,
|
||||
@ -335,6 +336,7 @@ impl Effects {
|
||||
}
|
||||
|
||||
#[derive(Clone, Debug, Serialize, Deserialize)]
|
||||
#[serde(deny_unknown_fields)]
|
||||
pub enum ItemKind {
|
||||
/// Something wieldable
|
||||
Tool(Tool),
|
||||
@ -875,7 +877,7 @@ impl assets::Compound for ItemDef {
|
||||
}
|
||||
|
||||
#[derive(Clone, Debug, Serialize, Deserialize)]
|
||||
#[serde(rename = "ItemDef")]
|
||||
#[serde(rename = "ItemDef", deny_unknown_fields)]
|
||||
struct RawItemDef {
|
||||
legacy_name: String,
|
||||
legacy_description: String,
|
||||
|
@ -236,6 +236,7 @@ impl ModularBase {
|
||||
}
|
||||
|
||||
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
|
||||
#[serde(deny_unknown_fields)]
|
||||
pub enum ModularComponent {
|
||||
ToolPrimaryComponent {
|
||||
toolkind: ToolKind,
|
||||
|
@ -12,6 +12,7 @@ pub enum Effect {
|
||||
|
||||
/// A buff that may be applied to an entity
|
||||
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
|
||||
#[serde(deny_unknown_fields)]
|
||||
pub struct BuffEffect {
|
||||
pub kind: comp::BuffKind,
|
||||
pub data: comp::BuffData,
|
||||
|
Loading…
Reference in New Issue
Block a user