6 new sceptres, add DPS display to tooltips

This commit is contained in:
Monty 2021-01-23 23:10:15 +01:00
parent 39d1c9e885
commit 7cbf946a65
25 changed files with 187 additions and 23 deletions

View File

@ -6,10 +6,10 @@ ItemDef(
kind: Staff, kind: Staff,
stats: ( stats: (
equip_time_millis: 300, equip_time_millis: 300,
power: 4.0, power: 15.0,
speed: 0.5, speed: 0.2,
), ),
) )
), ),
quality: Epic, quality: Legendary,
) )

View File

@ -6,8 +6,8 @@ ItemDef(
kind: Hammer, kind: Hammer,
stats: ( stats: (
equip_time_millis: 500, equip_time_millis: 500,
power: 2.00, power: 4.00,
speed: 1.0 speed: 0.5
), ),
) )
), ),

View File

@ -0,0 +1,15 @@
ItemDef(
name: "Infused Fork",
description: "Shamanistic energies brought this piece of wood to life again.",
kind: Tool(
(
kind: Sceptre,
stats: (
equip_time_millis: 400,
power: 2.0,
speed: 0.8
),
)
),
quality: High,
)

View File

@ -0,0 +1,15 @@
ItemDef(
name: "Soothing Loop",
description: "Do you really want to live forever?",
kind: Tool(
(
kind: Sceptre,
stats: (
equip_time_millis: 400,
power: 1.2,
speed: 1.5
),
)
),
quality: High,
)

View File

@ -0,0 +1,15 @@
ItemDef(
name: "Crescent Saviour",
description: "Trusty companion by day and night.",
kind: Tool(
(
kind: Sceptre,
stats: (
equip_time_millis: 400,
power: 1.6,
speed: 0.5
),
)
),
quality: Common,
)

View File

@ -0,0 +1,15 @@
ItemDef(
name: "The Root of Evil",
description: "'Everything comes at a price...'",
kind: Tool(
(
kind: Sceptre,
stats: (
equip_time_millis: 400,
power: 4.0,
speed: 0.5
),
)
),
quality: Legendary,
)

View File

@ -0,0 +1,15 @@
ItemDef(
name: "Twitching Root",
description: "Sparkles from living energy.",
kind: Tool(
(
kind: Sceptre,
stats: (
equip_time_millis: 400,
power: 3.5,
speed: 0.4
),
)
),
quality: Moderate,
)

View File

@ -6,8 +6,8 @@ ItemDef(
kind: Sceptre, kind: Sceptre,
stats: ( stats: (
equip_time_millis: 400, equip_time_millis: 400,
power: 2.0, power: 1.2,
speed: 1.0 speed: 1.6
), ),
) )
), ),

View File

@ -6,8 +6,8 @@ ItemDef(
kind: Sceptre, kind: Sceptre,
stats: ( stats: (
equip_time_millis: 400, equip_time_millis: 400,
power: 1.0, power: 0.91,
speed: 1.0 speed: 1.1
), ),
) )
), ),

View File

@ -0,0 +1,16 @@
ItemDef(
name: "Gnarling Pride",
description: "Territory marker of a Gnarling tribe.
Infused with healing powers.",
kind: Tool(
(
kind: Sceptre,
stats: (
equip_time_millis: 400,
power: 1.0,
speed: 1.2
),
)
),
quality: Moderate,
)

View File

@ -12,6 +12,7 @@
(1, "common.items.weapons.hammer.cultist_purp_2h-0"), (1, "common.items.weapons.hammer.cultist_purp_2h-0"),
(1, "common.items.weapons.sword.cultist_purp_2h-0"), (1, "common.items.weapons.sword.cultist_purp_2h-0"),
(0.25, "common.items.crafting_ing.mindflayer_bag_damaged"), (0.25, "common.items.crafting_ing.mindflayer_bag_damaged"),
(0.01, "common.items.weapons.sceptre.root_evil"),
// misc // misc
(1, "common.items.boss_drops.lantern"), (1, "common.items.boss_drops.lantern"),
(0.1, "common.items.glider.glider_purp"), (0.1, "common.items.glider.glider_purp"),

View File

@ -21,7 +21,8 @@
(0.10, "common.items.weapons.axe.worn_iron_axe-3"), (0.10, "common.items.weapons.axe.worn_iron_axe-3"),
(0.10, "common.items.weapons.axe.worn_iron_axe-4"), (0.10, "common.items.weapons.axe.worn_iron_axe-4"),
// healing staff // healing staff
(0.25, "common.items.weapons.sceptre.staff_nature"), (0.30, "common.items.weapons.sceptre.starter_sceptre"),
(0.20, "common.items.weapons.sceptre.moon0"),
// staves // staves
(1.00, "common.items.weapons.staff.starter_staff"), (1.00, "common.items.weapons.staff.starter_staff"),
// hammers // hammers

View File

@ -17,7 +17,8 @@
(0.30, "common.items.weapons.axe.cobalt_axe-0"), (0.30, "common.items.weapons.axe.cobalt_axe-0"),
(0.10, "common.items.weapons.axe.malachite_axe-0"), (0.10, "common.items.weapons.axe.malachite_axe-0"),
// healing staff // healing staff
(0.25, "common.items.weapons.sceptre.staff_nature"), (0.15, "common.items.weapons.sceptre.loops0"),
(0.10, "common.items.weapons.sceptre.fork0"),
// staves // staves
(1.00, "common.items.weapons.staff.amethyst_staff"), (1.00, "common.items.weapons.staff.amethyst_staff"),
// hammers // hammers

View File

@ -40,6 +40,8 @@
(0.04, "common.items.weapons.axe.steel_axe-6"), (0.04, "common.items.weapons.axe.steel_axe-6"),
// healing staff // healing staff
(0.5, "common.items.weapons.sceptre.staff_nature"), (0.5, "common.items.weapons.sceptre.staff_nature"),
(0.15, "common.items.weapons.sceptre.root_green0"),
(0.25, "common.items.weapons.sceptre.totem_green"),
// staves // staves
(1.00, "common.items.weapons.staff.bone_staff"), (1.00, "common.items.weapons.staff.bone_staff"),
// hammers // hammers

View File

@ -202,11 +202,11 @@
("common.items.crafting_tools.sewing_set", 0), ("common.items.crafting_tools.sewing_set", 0),
], ],
), ),
"velorite_sceptre": ( "Soothing Loop": (
("common.items.weapons.sceptre.sceptre_velorite_0", 1), ("common.items.weapons.sceptre.loops0", 1),
[ [
("common.items.crafting_ing.twigs", 20), ("common.items.crafting_ing.twigs", 20),
("common.items.ore.veloritefrag", 10), ("common.items.ore.veloritefrag", 8),
("common.items.crafting_ing.shiny_gem", 4), ("common.items.crafting_ing.shiny_gem", 4),
("common.items.crafting_tools.craftsman_hammer", 0), ("common.items.crafting_tools.craftsman_hammer", 0),
], ],

View File

@ -614,14 +614,38 @@
"voxel.weapon.staff.firestaff_cultist", "voxel.weapon.staff.firestaff_cultist",
(1.0, 0.0, 0.0), (-130., 90.0, 0.0), 1.2, (1.0, 0.0, 0.0), (-130., 90.0, 0.0), 1.2,
), ),
// Healing staff // Healing Sceptres
Tool("common.items.weapons.sceptre.starter_sceptre"): VoxTrans(
"voxel.weapon.sceptre.wood-simple",
(0.0, -0.0, 0.0), (-130., 90.0, 0.0), 1.25,
),
Tool("common.items.weapons.sceptre.moon0"): VoxTrans(
"voxel.weapon.sceptre.moon",
(1.0, -1.0, 0.0), (-130., 90.0, 0.0), 1.2,
),
Tool("common.items.weapons.sceptre.staff_nature"): VoxTrans( Tool("common.items.weapons.sceptre.staff_nature"): VoxTrans(
"voxel.weapon.sceptre.wood-nature", "voxel.weapon.sceptre.wood-nature",
(1.0, -1.0, 0.0), (-130., 90.0, 0.0), 1.2, (1.0, -1.0, 0.0), (-130., 90.0, 0.0), 1.2,
), ),
Tool("common.items.weapons.sceptre.starter_sceptre"): VoxTrans( Tool("common.items.weapons.sceptre.totem_green"): VoxTrans(
"voxel.weapon.sceptre.wood-simple", "voxel.weapon.sceptre.totem_green",
(0.0, -0.0, 0.0), (-130., 90.0, 0.0), 1.25, (1.0, -1.0, 0.0), (-130., 90.0, 0.0), 1.2,
),
Tool("common.items.weapons.sceptre.root_green0"): VoxTrans(
"voxel.weapon.sceptre.root_green",
(1.0, -1.0, 0.0), (-130., 90.0, 0.0), 1.2,
),
Tool("common.items.weapons.sceptre.fork0"): VoxTrans(
"voxel.weapon.sceptre.fork",
(1.0, -1.0, 0.0), (-130., 90.0, 0.0), 1.2,
),
Tool("common.items.weapons.sceptre.loops0"): VoxTrans(
"voxel.weapon.sceptre.loops",
(1.0, -1.0, 0.0), (-130., 90.0, 0.0), 1.2,
),
Tool("common.items.weapons.sceptre.root_evil"): VoxTrans(
"voxel.weapon.sceptre.root_evil",
(1.0, -1.0, 0.0), (-130., 90.0, 0.0), 1.2,
), ),
Tool("common.items.weapons.sceptre.sceptre_velorite_0"): VoxTrans( Tool("common.items.weapons.sceptre.sceptre_velorite_0"): VoxTrans(
"voxel.weapon.sceptre.ore-nature", "voxel.weapon.sceptre.ore-nature",

View File

@ -651,10 +651,34 @@
vox_spec: ("weapon.sceptre.wood-simple", (-1.5, -2.5, -6.0)), vox_spec: ("weapon.sceptre.wood-simple", (-1.5, -2.5, -6.0)),
color: None color: None
), ),
"common.items.weapons.sceptre.moon0": (
vox_spec: ("weapon.sceptre.moon", (-1.5, -2.5, -6.0)),
color: None
),
"common.items.weapons.sceptre.staff_nature": ( "common.items.weapons.sceptre.staff_nature": (
vox_spec: ("weapon.sceptre.wood-nature", (-1.0, -6.0, -5.0)), vox_spec: ("weapon.sceptre.wood-nature", (-1.0, -6.0, -5.0)),
color: None color: None
), ),
"common.items.weapons.sceptre.totem_green": (
vox_spec: ("weapon.sceptre.totem_green", (-1.5, -2.5, -6.0)),
color: None
),
"common.items.weapons.sceptre.root_green0": (
vox_spec: ("weapon.sceptre.root_green", (-1.5, -2.5, -6.0)),
color: None
),
"common.items.weapons.sceptre.fork0": (
vox_spec: ("weapon.sceptre.fork", (-1.5, -2.5, -6.0)),
color: None
),
"common.items.weapons.sceptre.loops0": (
vox_spec: ("weapon.sceptre.loops", (-1.5, -2.5, -6.0)),
color: None
),
"common.items.weapons.sceptre.root_evil": (
vox_spec: ("weapon.sceptre.root_evil", (-1.5, -2.5, -6.0)),
color: None
),
"common.items.weapons.sceptre.sceptre_velorite_0": ( "common.items.weapons.sceptre.sceptre_velorite_0": (
vox_spec: ("weapon.sceptre.ore-nature", (-2.0, -6.0, -5.0)), vox_spec: ("weapon.sceptre.ore-nature", (-2.0, -6.0, -5.0)),
color: None color: None

BIN
assets/voxygen/voxel/weapon/sceptre/fork.vox (Stored with Git LFS) Normal file

Binary file not shown.

BIN
assets/voxygen/voxel/weapon/sceptre/loops.vox (Stored with Git LFS) Normal file

Binary file not shown.

BIN
assets/voxygen/voxel/weapon/sceptre/moon.vox (Stored with Git LFS) Normal file

Binary file not shown.

BIN
assets/voxygen/voxel/weapon/sceptre/root_evil.vox (Stored with Git LFS) Normal file

Binary file not shown.

BIN
assets/voxygen/voxel/weapon/sceptre/root_green.vox (Stored with Git LFS) Normal file

Binary file not shown.

BIN
assets/voxygen/voxel/weapon/sceptre/totem_green.vox (Stored with Git LFS) Normal file

Binary file not shown.

View File

@ -109,16 +109,18 @@ fn tool_desc(tool: &Tool, desc: &str) -> String {
if !desc.is_empty() { if !desc.is_empty() {
format!( format!(
"{}\n\nPower: {:0.1}\n\nSpeed: {:0.1}\n\n{}\n\n<Right-Click to use>", "{}\n\nDPS: {:0.1}\n\nPower: {:0.1}\n\nSpeed: {:0.1}\n\n{}\n\n<Right-Click to use>",
kind, kind,
speed * power * 10.0, // Damage per second
power * 10.0, power * 10.0,
speed, speed,
desc desc
) )
} else { } else {
format!( format!(
"{}\n\nPower: {:0.1}\n\nSpeed: {:0.1}\n\n<Right-Click to use>", "{}\n\nDPS: {:0.1}\n\nPower: {:0.1}\n\nSpeed: {:0.1}\n\n<Right-Click to use>",
kind, kind,
speed * power * 10.0, // Damage per second
power * 10.0, power * 10.0,
speed speed
) )

View File

@ -161,7 +161,7 @@ pub fn apply_scatter_to(canvas: &mut Canvas, rng: &mut impl Rng) {
(LongGrass, false, |c, _| { (LongGrass, false, |c, _| {
( (
close(c.temp, 0.3, 0.35).min(close(c.humidity, CONFIG.jungle_hum, 0.3)) * 0.15, close(c.temp, 0.3, 0.35).min(close(c.humidity, CONFIG.jungle_hum, 0.3)) * 0.15,
Some((48.0, 0.2)), Some((45.0, 0.5)),
) )
}), }),
// Jungle Sprites // Jungle Sprites