Commit 0e5e2b46 authored by Samuel Keiffer's avatar Samuel Keiffer
Browse files

Changed energy to internally use an integer with a high resolution, and externally to use a float.

parent 3091c970
......@@ -45,9 +45,9 @@ ComboMelee(
))),
),
],
initial_energy_gain: 25,
max_energy_gain: 175,
energy_increase: 30,
initial_energy_gain: 2.5,
max_energy_gain: 17.5,
energy_increase: 3.0,
speed_increase: 0.1,
max_speed_increase: 0.6,
scales_from_combo: 2,
......
LeapMelee(
energy_cost: 450,
energy_cost: 45.0,
buildup_duration: 0.2,
movement_duration: 0.2,
swing_duration: 0.2,
......
......@@ -12,7 +12,7 @@ SpinMelee(
strength: DamageFraction(0.1),
chance: 0.1,
))),
energy_cost: 100,
energy_cost: 10.0,
is_infinite: true,
movement_behavior: AxeHover,
is_interruptible: false,
......
ChargedRanged(
energy_cost: 0,
energy_drain: 0,
initial_regen: 5,
scaled_regen: 120,
initial_regen: 0.5,
scaled_regen: 12.0,
initial_damage: 0.5,
scaled_damage: 14.0,
initial_knockback: 0.0,
......
RepeaterRanged(
energy_cost: 50,
energy_cost: 5.0,
buildup_duration: 0.2,
shoot_duration: 0.5,
recover_duration: 0.8,
......
BasicRanged(
energy_cost: 300,
energy_cost: 30.0,
buildup_duration: 0.4,
recover_duration: 0.3,
projectile_spread: 0.05,
......
......@@ -5,7 +5,7 @@ BasicRanged(
projectile: Arrow(
damage: 3.5,
knockback: 5.0,
energy_regen: 40,
energy_regen: 4.0,
),
projectile_body: Object(Arrow),
projectile_light: None,
......
......@@ -5,7 +5,7 @@ BasicRanged(
projectile: Fireball(
damage: 10.0,
radius: 5.0,
energy_regen: 50,
energy_regen: 5.0,
),
projectile_body: Object(BoltFire),
/*projectile_light: Some(LightEmitter {
......
......@@ -5,7 +5,7 @@ BasicRanged(
projectile: Fireball(
damage: 10.0,
radius: 5.0,
energy_regen: 50,
energy_regen: 5.0,
),
projectile_body: Object(BoltFire),
/*projectile_light: Some(LightEmitter {
......
Shockwave(
energy_cost: 600,
energy_cost: 60.0,
buildup_duration: 0.7,
swing_duration: 0.1,
recover_duration: 0.2,
......
......@@ -12,7 +12,7 @@ BasicBeam(
strength: DamageFraction(0.75),
chance: 0.75,
))),
energy_regen: 50,
energy_regen: 0,
energy_drain: 0,
ori_rate: 0.07,
specifier: ClayGolem,
......
......@@ -7,7 +7,7 @@ BasicBeam(
range: 25.0,
max_angle: 1.0,
damage_effect: Some(Lifesteal(0.15)),
energy_regen: 25,
energy_regen: 2.5,
energy_drain: 0,
ori_rate: 0.3,
specifier: LifestealBeam,
......
......@@ -5,7 +5,7 @@ BasicRanged(
projectile: Arrow(
damage: 20.0,
knockback: 5.0,
energy_regen: 100,
energy_regen: 10.0,
),
projectile_body: Object(ArrowTurret),
projectile_light: None,
......
ChargedMelee(
energy_cost: 1,
energy_drain: 300,
energy_drain: 30.0,
initial_damage: 1.0,
scaled_damage: 16.0,
initial_poise_damage: 5,
......
LeapMelee(
energy_cost: 500,
energy_cost: 50.0,
buildup_duration: 0.1,
movement_duration: 0.8,
swing_duration: 0.15,
......
......@@ -15,9 +15,9 @@ ComboMelee(
forward_movement: 0.0,
damage_kind: Crushing,
)],
initial_energy_gain: 50,
max_energy_gain: 150,
energy_increase: 50,
initial_energy_gain: 5.0,
max_energy_gain: 15.0,
energy_increase: 5.0,
speed_increase: 0.1,
max_speed_increase: 0.4,
scales_from_combo: 2,
......
......@@ -11,7 +11,7 @@ BasicAura(
),
aura_duration: 1.0,
range: 25.0,
energy_cost: 200,
energy_cost: 20.0,
scales_with_combo: true,
specifier: HealingAura,
)
......@@ -7,7 +7,7 @@ BasicBeam(
range: 25.0,
max_angle: 1.0,
damage_effect: Some(Lifesteal(0.125)),
energy_regen: 50,
energy_regen: 5.0,
energy_drain: 0,
ori_rate: 0.3,
specifier: LifestealBeam
......
......@@ -11,7 +11,7 @@ BasicAura(
),
aura_duration: 1.0,
range: 25.0,
energy_cost: 400,
energy_cost: 40.0,
scales_with_combo: false,
specifier: WardingAura,
)
DashMelee(
energy_cost: 100,
energy_cost: 10.0,
base_damage: 1.0,
scaled_damage: 8.0,
base_poise_damage: 0,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment