remove old craftsman hammer, add migration

This commit is contained in:
Monty 2021-04-20 03:34:11 +02:00
parent abacdfc719
commit a1b4e0bdaf
3 changed files with 4 additions and 14 deletions

View File

@ -1,9 +0,0 @@
ItemDef(
name: "Old Hammer",
description: "You don't quite remember where you got this from...",
kind: Ingredient(
kind: "CraftsmanHammer",
),
quality: Low,
tags: [CraftingTool],
)

View File

@ -1941,11 +1941,7 @@
Tool("common.items.tool.craftsman_hammer"): VoxTrans(
"voxel.weapon.hammer.craftsman",
(1.0, -1.0, 0.0), (-135.0, 90.0, 0.0), 0.9,
),
Ingredient("CraftsmanHammer"): VoxTrans(
"voxel.weapon.hammer.craftsman",
(1.0, 1.0, 0.0), (-135.0, 90.0, 0.0), 0.8,
),
),
Ingredient("SewingSet"): Png(
"element.items.sewing_set",
),

View File

@ -0,0 +1,3 @@
-- Replace old crafting hammer ingredient with functional 1h-hammer variant
UPDATE item SET item_definition_id = 'common.items.tool.craftsman_hammer' WHERE item_definition_id = 'common.items.crafting_tools.craftsman_hammer';