diff --git a/assets/common/items/weapons/hammer/bronze_hammer-1.ron b/assets/common/items/weapons/hammer/bronze_hammer-1.ron index e8f040fee9..278fa804a2 100644 --- a/assets/common/items/weapons/hammer/bronze_hammer-1.ron +++ b/assets/common/items/weapons/hammer/bronze_hammer-1.ron @@ -3,7 +3,7 @@ ItemDef( description: "The entire head of this club is forged from bronze alloy.", kind: Tool(( kind: Hammer, - hands: OneHand, + hands: TwoHand, stats: ( equip_time_millis: 500, power: 1.0, diff --git a/assets/common/items/weapons/hammer_1h/bloodsteel-0.ron b/assets/common/items/weapons/hammer_1h/bloodsteel-0.ron new file mode 100644 index 0000000000..a0b4ab1100 --- /dev/null +++ b/assets/common/items/weapons/hammer_1h/bloodsteel-0.ron @@ -0,0 +1,15 @@ +ItemDef( + name: "Bloodsteel Mace", + description: "Infused with blood.", + kind: Tool(( + kind: Hammer, + hands: OneHand, + stats: ( + equip_time_millis: 500, + power: 1.6, + poise_strength: 1.0, + speed: 1.2, + ), + )), + quality: High, +) \ No newline at end of file diff --git a/assets/common/items/weapons/hammer_1h/bloodsteel-1.ron b/assets/common/items/weapons/hammer_1h/bloodsteel-1.ron new file mode 100644 index 0000000000..ad7f1ec476 --- /dev/null +++ b/assets/common/items/weapons/hammer_1h/bloodsteel-1.ron @@ -0,0 +1,15 @@ +ItemDef( + name: "Scarlet Maul", + description: "Infused with blood.", + kind: Tool(( + kind: Hammer, + hands: OneHand, + stats: ( + equip_time_millis: 500, + power: 1.8, + poise_strength: 1.0, + speed: 1.0, + ), + )), + quality: High, +) \ No newline at end of file diff --git a/assets/common/items/weapons/hammer_1h/bronze-0.ron b/assets/common/items/weapons/hammer_1h/bronze-0.ron new file mode 100644 index 0000000000..f463e093b7 --- /dev/null +++ b/assets/common/items/weapons/hammer_1h/bronze-0.ron @@ -0,0 +1,15 @@ +ItemDef( + name: "Brass Block", + description: "Casted from brass.", + kind: Tool(( + kind: Hammer, + hands: OneHand, + stats: ( + equip_time_millis: 500, + power: 1.2, + poise_strength: 1.0, + speed: 0.8, + ), + )), + quality: Moderate, +) \ No newline at end of file diff --git a/assets/common/items/weapons/hammer_1h/bronze-1.ron b/assets/common/items/weapons/hammer_1h/bronze-1.ron new file mode 100644 index 0000000000..5dd99c28b9 --- /dev/null +++ b/assets/common/items/weapons/hammer_1h/bronze-1.ron @@ -0,0 +1,15 @@ +ItemDef( + name: "Bronze Cudgel", + description: "Forged from bronze.", + kind: Tool(( + kind: Hammer, + hands: OneHand, + stats: ( + equip_time_millis: 500, + power: 1.0, + poise_strength: 1.0, + speed: 1.0, + ), + )), + quality: Moderate, +) \ No newline at end of file diff --git a/assets/common/items/weapons/hammer_1h/cobalt-0.ron b/assets/common/items/weapons/hammer_1h/cobalt-0.ron new file mode 100644 index 0000000000..53d4d5466a --- /dev/null +++ b/assets/common/items/weapons/hammer_1h/cobalt-0.ron @@ -0,0 +1,15 @@ +ItemDef( + name: "Blue Bludgeon", + description: "Forged from cobalt.", + kind: Tool(( + kind: Hammer, + hands: OneHand, + stats: ( + equip_time_millis: 500, + power: 1.6, + poise_strength: 1.0, + speed: 1.0, + ), + )), + quality: High, +) \ No newline at end of file diff --git a/assets/common/items/weapons/hammer_1h/cobalt-1.ron b/assets/common/items/weapons/hammer_1h/cobalt-1.ron new file mode 100644 index 0000000000..dc4ce86b28 --- /dev/null +++ b/assets/common/items/weapons/hammer_1h/cobalt-1.ron @@ -0,0 +1,15 @@ +ItemDef( + name: "Cobalt Cudgel", + description: "Forged from cobalt.", + kind: Tool(( + kind: Hammer, + hands: OneHand, + stats: ( + equip_time_millis: 500, + power: 1.5, + poise_strength: 1.0, + speed: 1.1, + ), + )), + quality: High, +) \ No newline at end of file diff --git a/assets/common/items/weapons/hammer_1h/iron-0.ron b/assets/common/items/weapons/hammer_1h/iron-0.ron new file mode 100644 index 0000000000..9bedecb2b8 --- /dev/null +++ b/assets/common/items/weapons/hammer_1h/iron-0.ron @@ -0,0 +1,15 @@ +ItemDef( + name: "Dwarven Hammer", + description: "Forged from iron.", + kind: Tool(( + kind: Hammer, + hands: OneHand, + stats: ( + equip_time_millis: 500, + power: 1.4, + poise_strength: 1.0, + speed: 0.8, + ), + )), + quality: Moderate, +) \ No newline at end of file diff --git a/assets/common/items/weapons/hammer_1h/iron-1.ron b/assets/common/items/weapons/hammer_1h/iron-1.ron new file mode 100644 index 0000000000..6d8a34bbec --- /dev/null +++ b/assets/common/items/weapons/hammer_1h/iron-1.ron @@ -0,0 +1,15 @@ +ItemDef( + name: "Iron Club", + description: "Forged from iron.", + kind: Tool(( + kind: Hammer, + hands: OneHand, + stats: ( + equip_time_millis: 500, + power: 1.3, + poise_strength: 1.0, + speed: 0.9, + ), + )), + quality: Moderate, +) \ No newline at end of file diff --git a/assets/common/items/weapons/hammer_1h/iron-2.ron b/assets/common/items/weapons/hammer_1h/iron-2.ron new file mode 100644 index 0000000000..7349f7f7b8 --- /dev/null +++ b/assets/common/items/weapons/hammer_1h/iron-2.ron @@ -0,0 +1,15 @@ +ItemDef( + name: "Spiky Mace", + description: "Forged from iron.", + kind: Tool(( + kind: Hammer, + hands: OneHand, + stats: ( + equip_time_millis: 500, + power: 1.1, + poise_strength: 1.0, + speed: 1.1, + ), + )), + quality: Moderate, +) \ No newline at end of file diff --git a/assets/common/items/weapons/hammer_1h/steel-0.ron b/assets/common/items/weapons/hammer_1h/steel-0.ron new file mode 100644 index 0000000000..98ea85e301 --- /dev/null +++ b/assets/common/items/weapons/hammer_1h/steel-0.ron @@ -0,0 +1,15 @@ +ItemDef( + name: "Bone Breaker", + description: "Forged from steel.", + kind: Tool(( + kind: Hammer, + hands: OneHand, + stats: ( + equip_time_millis: 500, + power: 1.5, + poise_strength: 1.0, + speed: 0.9, + ), + )), + quality: Moderate, +) \ No newline at end of file diff --git a/assets/common/items/weapons/hammer_1h/steel-1.ron b/assets/common/items/weapons/hammer_1h/steel-1.ron new file mode 100644 index 0000000000..a15346b6fc --- /dev/null +++ b/assets/common/items/weapons/hammer_1h/steel-1.ron @@ -0,0 +1,15 @@ +ItemDef( + name: "Jeweled Bulawa", + description: "Inset with an amethyst.", + kind: Tool(( + kind: Hammer, + hands: OneHand, + stats: ( + equip_time_millis: 500, + power: 1.4, + poise_strength: 1.0, + speed: 1.0, + ), + )), + quality: Moderate, +) \ No newline at end of file diff --git a/assets/common/items/weapons/hammer_1h/steel-2.ron b/assets/common/items/weapons/hammer_1h/steel-2.ron new file mode 100644 index 0000000000..cd2ecec83c --- /dev/null +++ b/assets/common/items/weapons/hammer_1h/steel-2.ron @@ -0,0 +1,15 @@ +ItemDef( + name: "Ornamental Mace", + description: "Inlaid with gold.", + kind: Tool(( + kind: Hammer, + hands: OneHand, + stats: ( + equip_time_millis: 500, + power: 1.2, + poise_strength: 1.0, + speed: 1.2, + ), + )), + quality: Moderate, +) \ No newline at end of file diff --git a/assets/common/items/weapons/hammer_1h/stone-0.ron b/assets/common/items/weapons/hammer_1h/stone-0.ron new file mode 100644 index 0000000000..778b4071da --- /dev/null +++ b/assets/common/items/weapons/hammer_1h/stone-0.ron @@ -0,0 +1,15 @@ +ItemDef( + name: "Spine Mace", + description: "Bone(s?)", + kind: Tool(( + kind: Hammer, + hands: OneHand, + stats: ( + equip_time_millis: 500, + power: 0.7, + poise_strength: 1.0, + speed: 1.1, + ), + )), + quality: Common, +) \ No newline at end of file diff --git a/assets/common/items/weapons/hammer_1h/stone-1.ron b/assets/common/items/weapons/hammer_1h/stone-1.ron new file mode 100644 index 0000000000..db730bcdaa --- /dev/null +++ b/assets/common/items/weapons/hammer_1h/stone-1.ron @@ -0,0 +1,15 @@ +ItemDef( + name: "Stone Hammer", + description: "Chiseled from stone.", + kind: Tool(( + kind: Hammer, + hands: OneHand, + stats: ( + equip_time_millis: 500, + power: 1.0, + poise_strength: 1.0, + speed: 0.8, + ), + )), + quality: Common, +) \ No newline at end of file diff --git a/assets/common/items/weapons/hammer_1h/wood-0.ron b/assets/common/items/weapons/hammer_1h/wood-0.ron new file mode 100644 index 0000000000..2ca5a5f8f4 --- /dev/null +++ b/assets/common/items/weapons/hammer_1h/wood-0.ron @@ -0,0 +1,15 @@ +ItemDef( + name: "Stump Club", + description: "All that remains of a tree...", + kind: Tool(( + kind: Hammer, + hands: OneHand, + stats: ( + equip_time_millis: 500, + power: 0.8, + poise_strength: 1.0, + speed: 0.8, + ), + )), + quality: Low, +) \ No newline at end of file diff --git a/assets/common/items/weapons/hammer_1h/wood-1.ron b/assets/common/items/weapons/hammer_1h/wood-1.ron new file mode 100644 index 0000000000..3550389d2e --- /dev/null +++ b/assets/common/items/weapons/hammer_1h/wood-1.ron @@ -0,0 +1,15 @@ +ItemDef( + name: "Wooden Cudgel", + description: "Carved from wood.", + kind: Tool(( + kind: Hammer, + hands: OneHand, + stats: ( + equip_time_millis: 500, + power: 0.5, + poise_strength: 1.0, + speed: 1.1, + ), + )), + quality: Low, +) \ No newline at end of file diff --git a/assets/voxygen/item_image_manifest.ron b/assets/voxygen/item_image_manifest.ron index 93114cfaba..f20b59e15c 100644 --- a/assets/voxygen/item_image_manifest.ron +++ b/assets/voxygen/item_image_manifest.ron @@ -614,6 +614,71 @@ "voxel.weapon.hammer.cult_purp-0", (2.0, -1.0, 0.0), (-135.0, 90.0, 0.0), 1.1, ), + // 1h Hammers + Tool("common.items.weapons.hammer_1h.bloodsteel-0"): VoxTrans( + "voxel.weapon.hammer_1h.bloodsteel-0", + (1.0, -1.0, 0.0), (-135.0, 90.0, 0.0), 1.2, + ), + Tool("common.items.weapons.hammer_1h.bloodsteel-1"): VoxTrans( + "voxel.weapon.hammer_1h.bloodsteel-1", + (1.0, -1.0, 0.0), (-135.0, 90.0, 0.0), 1.2, + ), + Tool("common.items.weapons.hammer_1h.bronze-0"): VoxTrans( + "voxel.weapon.hammer_1h.bronze-0", + (1.0, -1.0, 0.0), (-135.0, 90.0, 0.0), 1.2, + ), + Tool("common.items.weapons.hammer_1h.bronze-1"): VoxTrans( + "voxel.weapon.hammer_1h.bronze-1", + (1.0, -1.0, 0.0), (-135.0, 90.0, 0.0), 1.2, + ), + Tool("common.items.weapons.hammer_1h.cobalt-0"): VoxTrans( + "voxel.weapon.hammer_1h.cobalt-0", + (1.0, -1.0, 0.0), (-135.0, 90.0, 0.0), 1.2, + ), + Tool("common.items.weapons.hammer_1h.cobalt-1"): VoxTrans( + "voxel.weapon.hammer_1h.cobalt-1", + (1.0, -1.0, 0.0), (-135.0, 90.0, 0.0), 1.2, + ), + Tool("common.items.weapons.hammer_1h.iron-0"): VoxTrans( + "voxel.weapon.hammer_1h.iron-0", + (1.0, -1.0, 0.0), (-135.0, 90.0, 0.0), 1.2, + ), + Tool("common.items.weapons.hammer_1h.iron-1"): VoxTrans( + "voxel.weapon.hammer_1h.iron-1", + (1.0, -1.0, 0.0), (-135.0, 90.0, 0.0), 1.2, + ), + Tool("common.items.weapons.hammer_1h.iron-2"): VoxTrans( + "voxel.weapon.hammer_1h.iron-2", + (1.0, -1.0, 0.0), (-135.0, 90.0, 0.0), 1.2, + ), + Tool("common.items.weapons.hammer_1h.steel-0"): VoxTrans( + "voxel.weapon.hammer_1h.steel-0", + (1.0, -1.0, 0.0), (-135.0, 90.0, 0.0), 1.2, + ), + Tool("common.items.weapons.hammer_1h.steel-1"): VoxTrans( + "voxel.weapon.hammer_1h.steel-1", + (1.0, -1.0, 0.0), (-135.0, 90.0, 0.0), 1.2, + ), + Tool("common.items.weapons.hammer_1h.steel-2"): VoxTrans( + "voxel.weapon.hammer_1h.steel-2", + (1.0, -1.0, 0.0), (-135.0, 90.0, 0.0), 1.2, + ), + Tool("common.items.weapons.hammer_1h.stone-0"): VoxTrans( + "voxel.weapon.hammer_1h.stone-0", + (1.0, -1.0, 0.0), (-135.0, 90.0, 0.0), 1.2, + ), + Tool("common.items.weapons.hammer_1h.stone-1"): VoxTrans( + "voxel.weapon.hammer_1h.stone-1", + (1.0, -1.0, 0.0), (-135.0, 90.0, 0.0), 1.2, + ), + Tool("common.items.weapons.hammer_1h.wood-0"): VoxTrans( + "voxel.weapon.hammer_1h.wood-0", + (1.0, -1.0, 0.0), (-135.0, 90.0, 0.0), 1.2, + ), + Tool("common.items.weapons.hammer_1h.wood-1"): VoxTrans( + "voxel.weapon.hammer_1h.wood-1", + (1.0, -1.0, 0.0), (-135.0, 90.0, 0.0), 1.2, + ), // Staffs Tool("common.items.weapons.staff.staff_1"): VoxTrans( "voxel.weapon.staff.firestaff_starter", diff --git a/assets/voxygen/voxel/humanoid_main_weapon_manifest.ron b/assets/voxygen/voxel/humanoid_main_weapon_manifest.ron index 0adfac564c..e7f835df82 100644 --- a/assets/voxygen/voxel/humanoid_main_weapon_manifest.ron +++ b/assets/voxygen/voxel/humanoid_main_weapon_manifest.ron @@ -510,6 +510,71 @@ vox_spec: ("weapon.hammer.craftsman", (-2.0, -5.0, -5.5)), color: None ),*/ + // 1h Hammers + "common.items.weapons.hammer_1h.bloodsteel-0": ( + vox_spec: ("weapon.hammer_1h.bloodsteel-0", (-1.5, -5.0, -6.0)), + color: None + ), + "common.items.weapons.hammer_1h.bloodsteel-1": ( + vox_spec: ("weapon.hammer_1h.bloodsteel-1", (-1.5, -5.0, -6.0)), + color: None + ), + "common.items.weapons.hammer_1h.bronze-0": ( + vox_spec: ("weapon.hammer_1h.bronze-0", (-1.5, -5.0, -6.0)), + color: None + ), + "common.items.weapons.hammer_1h.bronze-1": ( + vox_spec: ("weapon.hammer_1h.bronze-1", (-1.5, -5.0, -6.0)), + color: None + ), + "common.items.weapons.hammer_1h.cobalt-0": ( + vox_spec: ("weapon.hammer_1h.cobalt-0", (-1.5, -5.0, -6.0)), + color: None + ), + "common.items.weapons.hammer_1h.cobalt-1": ( + vox_spec: ("weapon.hammer_1h.cobalt-1", (-1.5, -5.0, -6.0)), + color: None + ), + "common.items.weapons.hammer_1h.iron-0": ( + vox_spec: ("weapon.hammer_1h.iron-0", (-1.5, -5.0, -6.0)), + color: None + ), + "common.items.weapons.hammer_1h.iron-1": ( + vox_spec: ("weapon.hammer_1h.iron-1", (-1.5, -5.0, -6.0)), + color: None + ), + "common.items.weapons.hammer_1h.iron-2": ( + vox_spec: ("weapon.hammer_1h.iron-2", (-1.5, -5.0, -6.0)), + color: None + ), + "common.items.weapons.hammer_1h.steel-0": ( + vox_spec: ("weapon.hammer_1h.steel-0", (-1.5, -5.0, -6.0)), + color: None + ), + "common.items.weapons.hammer_1h.steel-1": ( + vox_spec: ("weapon.hammer_1h.steel-1", (-1.5, -5.0, -6.0)), + color: None + ), + "common.items.weapons.hammer_1h.steel-2": ( + vox_spec: ("weapon.hammer_1h.steel-2", (-1.5, -5.0, -6.0)), + color: None + ), + "common.items.weapons.hammer_1h.stone-0": ( + vox_spec: ("weapon.hammer_1h.stone-0", (-1.5, -5.0, -6.0)), + color: None + ), + "common.items.weapons.hammer_1h.stone-1": ( + vox_spec: ("weapon.hammer_1h.stone-1", (-1.5, -5.0, -6.0)), + color: None + ), + "common.items.weapons.hammer_1h.wood-0": ( + vox_spec: ("weapon.hammer_1h.wood-0", (-1.5, -5.0, -6.0)), + color: None + ), + "common.items.weapons.hammer_1h.wood-1": ( + vox_spec: ("weapon.hammer_1h.wood-1", (-1.5, -5.0, -6.0)), + color: None + ), // Daggers "common.items.weapons.dagger.starter_dagger": ( vox_spec: ("weapon.dagger.dagger_rusty", (-1.5, -3.0, -3.0)), diff --git a/assets/voxygen/voxel/weapon/hammer_1h/bloodsteel-0.vox b/assets/voxygen/voxel/weapon/hammer_1h/bloodsteel-0.vox new file mode 100644 index 0000000000..b0a11178dc --- /dev/null +++ b/assets/voxygen/voxel/weapon/hammer_1h/bloodsteel-0.vox @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:0461b271cdf5bd22ba31cb855263d68dd78c86584dee72f2da296858f5a4dd86 +size 1592 diff --git a/assets/voxygen/voxel/weapon/hammer_1h/bloodsteel-1.vox b/assets/voxygen/voxel/weapon/hammer_1h/bloodsteel-1.vox new file mode 100644 index 0000000000..b865d64912 --- /dev/null +++ b/assets/voxygen/voxel/weapon/hammer_1h/bloodsteel-1.vox @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:c71f89e8be0a153745bdddd77266718c28e83b0bb2073684e016826052f4dc02 +size 1552 diff --git a/assets/voxygen/voxel/weapon/hammer_1h/bronze-0.vox b/assets/voxygen/voxel/weapon/hammer_1h/bronze-0.vox new file mode 100644 index 0000000000..4058eebeb5 --- /dev/null +++ b/assets/voxygen/voxel/weapon/hammer_1h/bronze-0.vox @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:a9e9289e4c9a5d7c7b6f7f939b372f41c2db2b1aeb35feda024f767e03ca3cbc +size 1880 diff --git a/assets/voxygen/voxel/weapon/hammer_1h/bronze-1.vox b/assets/voxygen/voxel/weapon/hammer_1h/bronze-1.vox new file mode 100644 index 0000000000..0ca412a6d1 --- /dev/null +++ b/assets/voxygen/voxel/weapon/hammer_1h/bronze-1.vox @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:c27e26f501c40fe0cb1926e8b9293e9e4b03d141b5bbe6dbf86b4c80b515ad8a +size 1632 diff --git a/assets/voxygen/voxel/weapon/hammer_1h/cobalt-0.vox b/assets/voxygen/voxel/weapon/hammer_1h/cobalt-0.vox new file mode 100644 index 0000000000..d842b8406b --- /dev/null +++ b/assets/voxygen/voxel/weapon/hammer_1h/cobalt-0.vox @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:37370f4465e3cb293dbeefbbc4abd1c9de276b0e740989e35f0f5ef6e65431ec +size 1760 diff --git a/assets/voxygen/voxel/weapon/hammer_1h/cobalt-1.vox b/assets/voxygen/voxel/weapon/hammer_1h/cobalt-1.vox new file mode 100644 index 0000000000..58ca88d74e --- /dev/null +++ b/assets/voxygen/voxel/weapon/hammer_1h/cobalt-1.vox @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:236d5b4a8c67b528242db626ce27737298767403e888965b77f8ad8023df9f2e +size 1552 diff --git a/assets/voxygen/voxel/weapon/hammer_1h/iron-0.vox b/assets/voxygen/voxel/weapon/hammer_1h/iron-0.vox new file mode 100644 index 0000000000..31b46fbbf1 --- /dev/null +++ b/assets/voxygen/voxel/weapon/hammer_1h/iron-0.vox @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:f9c272023ca391ee4b5ca6252a9ef4e9f104868068e8a9e38e5d1d4a3028cea9 +size 1820 diff --git a/assets/voxygen/voxel/weapon/hammer_1h/iron-1.vox b/assets/voxygen/voxel/weapon/hammer_1h/iron-1.vox new file mode 100644 index 0000000000..b3351d2031 --- /dev/null +++ b/assets/voxygen/voxel/weapon/hammer_1h/iron-1.vox @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:8d85bda6810458fa21aed99d056a48df7b56f427d40631517948c7d76e8d7c41 +size 1552 diff --git a/assets/voxygen/voxel/weapon/hammer_1h/iron-2.vox b/assets/voxygen/voxel/weapon/hammer_1h/iron-2.vox new file mode 100644 index 0000000000..e8991e0bdb --- /dev/null +++ b/assets/voxygen/voxel/weapon/hammer_1h/iron-2.vox @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:5d92c74ebc83a7d2f6679c3d886d0c66415972a63fb0e073799684656e6fe352 +size 1512 diff --git a/assets/voxygen/voxel/weapon/hammer_1h/steel-0.vox b/assets/voxygen/voxel/weapon/hammer_1h/steel-0.vox new file mode 100644 index 0000000000..4a664ef6df --- /dev/null +++ b/assets/voxygen/voxel/weapon/hammer_1h/steel-0.vox @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:77d22f6de03ac69d1aeb1f0077b185beb34bedfb6279ca91f5e3d734566716e7 +size 1880 diff --git a/assets/voxygen/voxel/weapon/hammer_1h/steel-1.vox b/assets/voxygen/voxel/weapon/hammer_1h/steel-1.vox new file mode 100644 index 0000000000..1bf672476e --- /dev/null +++ b/assets/voxygen/voxel/weapon/hammer_1h/steel-1.vox @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:186086c168ef34533d4be5221975fc970922cf885a3dcde81256f4879d6d2c10 +size 1648 diff --git a/assets/voxygen/voxel/weapon/hammer_1h/steel-2.vox b/assets/voxygen/voxel/weapon/hammer_1h/steel-2.vox new file mode 100644 index 0000000000..a290c14fb8 --- /dev/null +++ b/assets/voxygen/voxel/weapon/hammer_1h/steel-2.vox @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:82019a0c9b3308d5eb2167ecdb2870f240e99d65e97f422c126875b18d4ca589 +size 1584 diff --git a/assets/voxygen/voxel/weapon/hammer_1h/stone-0.vox b/assets/voxygen/voxel/weapon/hammer_1h/stone-0.vox new file mode 100644 index 0000000000..6b42cf6e39 --- /dev/null +++ b/assets/voxygen/voxel/weapon/hammer_1h/stone-0.vox @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:89879cf4fa89aa187dc0b450e958d59ee349381ddceec034fffbd319b45142fb +size 1672 diff --git a/assets/voxygen/voxel/weapon/hammer_1h/stone-1.vox b/assets/voxygen/voxel/weapon/hammer_1h/stone-1.vox new file mode 100644 index 0000000000..7fd616cccc --- /dev/null +++ b/assets/voxygen/voxel/weapon/hammer_1h/stone-1.vox @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:4d66fdb58b527dc24ea0bf922ec7649a8e59eee1c2363dfa786f27034332d522 +size 1656 diff --git a/assets/voxygen/voxel/weapon/hammer_1h/wood-0.vox b/assets/voxygen/voxel/weapon/hammer_1h/wood-0.vox new file mode 100644 index 0000000000..e01c9aee89 --- /dev/null +++ b/assets/voxygen/voxel/weapon/hammer_1h/wood-0.vox @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:642174d8b77e3d500047febb9470f66b82df5920af4884d5bbc4aba4611ba518 +size 1816 diff --git a/assets/voxygen/voxel/weapon/hammer_1h/wood-1.vox b/assets/voxygen/voxel/weapon/hammer_1h/wood-1.vox new file mode 100644 index 0000000000..a9ccdb5b1b --- /dev/null +++ b/assets/voxygen/voxel/weapon/hammer_1h/wood-1.vox @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ada7b55a1caeec82298c04db827794b22c229ac5ad08c4ccf519b38d4c76b422 +size 1536 diff --git a/common/src/states/charged_ranged.rs b/common/src/states/charged_ranged.rs index 29c7ae6dbf..91c79a87f8 100644 --- a/common/src/states/charged_ranged.rs +++ b/common/src/states/charged_ranged.rs @@ -99,7 +99,9 @@ impl CharacterBehavior for Data { } }, StageSection::Charge => { - if !ability_key_is_pressed(data, self.static_data.ability_info.key) && !self.exhausted { + if !ability_key_is_pressed(data, self.static_data.ability_info.key) + && !self.exhausted + { let charge_frac = (self.timer.as_secs_f32() / self.static_data.charge_duration.as_secs_f32()) .min(1.0); diff --git a/common/src/states/dash_melee.rs b/common/src/states/dash_melee.rs index cca2f946c2..e7e19b464e 100644 --- a/common/src/states/dash_melee.rs +++ b/common/src/states/dash_melee.rs @@ -97,7 +97,10 @@ impl CharacterBehavior for Data { } else { // Transitions to charge section of stage update.character = CharacterState::DashMelee(Data { - auto_charge: !ability_key_is_pressed(data, self.static_data.ability_info.key), + auto_charge: !ability_key_is_pressed( + data, + self.static_data.ability_info.key, + ), timer: Duration::default(), stage_section: StageSection::Charge, ..*self diff --git a/common/src/states/utils.rs b/common/src/states/utils.rs index 182a54624d..7d85adff95 100644 --- a/common/src/states/utils.rs +++ b/common/src/states/utils.rs @@ -412,7 +412,11 @@ pub fn handle_ability1_input(data: &JoinData, update: &mut StateUpdate) { }) .filter(|ability| ability.requirements_paid(data, update)) { - update.character = (&ability, AbilityInfo::from_key(data, AbilityKey::Mouse1, false)).into(); + update.character = ( + &ability, + AbilityInfo::from_key(data, AbilityKey::Mouse1, false), + ) + .into(); } } } @@ -455,7 +459,15 @@ pub fn handle_ability2_input(data: &JoinData, update: &mut StateUpdate) { }) .filter(|ability| ability.requirements_paid(data, update)) { - update.character = (&ability, AbilityInfo::from_key(data, AbilityKey::Mouse2, matches!(equip_slot, EquipSlot::Offhand))).into(); + update.character = ( + &ability, + AbilityInfo::from_key( + data, + AbilityKey::Mouse2, + matches!(equip_slot, EquipSlot::Offhand), + ), + ) + .into(); } } } @@ -477,7 +489,11 @@ pub fn handle_ability3_input(data: &JoinData, update: &mut StateUpdate) { }) .filter(|ability| ability.requirements_paid(data, update)) { - update.character = (&ability, AbilityInfo::from_key(data, AbilityKey::Skill1, false)).into(); + update.character = ( + &ability, + AbilityInfo::from_key(data, AbilityKey::Skill1, false), + ) + .into(); } } } @@ -524,7 +540,15 @@ pub fn handle_ability4_input(data: &JoinData, update: &mut StateUpdate) { }) .filter(|ability| ability.requirements_paid(data, update)) { - update.character = (&ability, AbilityInfo::from_key(data, AbilityKey::Skill2, matches!(equip_slot, EquipSlot::Offhand))).into(); + update.character = ( + &ability, + AbilityInfo::from_key( + data, + AbilityKey::Skill2, + matches!(equip_slot, EquipSlot::Offhand), + ), + ) + .into(); } } } @@ -546,28 +570,36 @@ pub fn handle_dodge_input(data: &JoinData, update: &mut StateUpdate) { .filter(|ability| ability.requirements_paid(data, update)) { if data.character.is_wield() { - update.character = (&ability, AbilityInfo::from_key(data, AbilityKey::Dodge, false)).into(); + update.character = ( + &ability, + AbilityInfo::from_key(data, AbilityKey::Dodge, false), + ) + .into(); if let CharacterState::Roll(roll) = &mut update.character { roll.was_wielded = true; } } else if data.character.is_stealthy() { - update.character = (&ability, AbilityInfo::from_key(data, AbilityKey::Dodge, false)).into(); + update.character = ( + &ability, + AbilityInfo::from_key(data, AbilityKey::Dodge, false), + ) + .into(); if let CharacterState::Roll(roll) = &mut update.character { roll.was_sneak = true; } } else { - update.character = (&ability, AbilityInfo::from_key(data, AbilityKey::Dodge, false)).into(); + update.character = ( + &ability, + AbilityInfo::from_key(data, AbilityKey::Dodge, false), + ) + .into(); } } } } pub fn unwrap_tool_data<'a>(data: &'a JoinData, equip_slot: EquipSlot) -> Option<&'a Tool> { - if let Some(ItemKind::Tool(tool)) = data - .inventory - .equipped(equip_slot) - .map(|i| i.kind()) - { + if let Some(ItemKind::Tool(tool)) = data.inventory.equipped(equip_slot).map(|i| i.kind()) { Some(&tool) } else { None @@ -676,13 +708,21 @@ impl AbilityInfo { let (tool, hand) = if from_offhand { (tool_data.map(|t| t.kind), Some(HandInfo::OffHand)) } else { - (tool_data.map(|t| t.kind), tool_data.map(|t| HandInfo::from_main_tool(t))) + ( + tool_data.map(|t| t.kind), + tool_data.map(|t| HandInfo::from_main_tool(t)), + ) }; + Self { tool, hand, key } + } + + /// For audio sfx test + pub fn empty_info() -> Self { Self { - tool, - hand, - key, + tool: None, + hand: None, + key: AbilityKey::Mouse1, } } } diff --git a/voxygen/src/audio/sfx/event_mapper/combat/tests.rs b/voxygen/src/audio/sfx/event_mapper/combat/tests.rs index 45a6e47c1c..38b810e31a 100644 --- a/voxygen/src/audio/sfx/event_mapper/combat/tests.rs +++ b/voxygen/src/audio/sfx/event_mapper/combat/tests.rs @@ -78,7 +78,7 @@ fn maps_basic_melee() { knockback: 0.0, range: 1.0, max_angle: 1.0, - ability_key: states::utils::AbilityKey::Mouse1, + ability_info: states::utils::AbilityInfo::empty_info(), }, timer: Duration::default(), stage_section: states::utils::StageSection::Buildup, @@ -132,7 +132,7 @@ fn matches_ability_stage() { max_speed_increase: 0.8, scales_from_combo: 2, is_interruptible: true, - ability_key: states::utils::AbilityKey::Mouse1, + ability_info: states::utils::AbilityInfo::empty_info(), }, stage: 1, combo: 0, @@ -191,7 +191,7 @@ fn ignores_different_ability_stage() { max_speed_increase: 0.8, scales_from_combo: 2, is_interruptible: true, - ability_key: states::utils::AbilityKey::Mouse1, + ability_info: states::utils::AbilityInfo::empty_info(), }, stage: 1, combo: 0,