electric workbench

This commit is contained in:
minjaesong
2024-03-14 02:49:00 +09:00
parent 3481502c1a
commit ef7199fd8b
6 changed files with 51 additions and 5 deletions

View File

@@ -32,4 +32,30 @@ class FixtureWorkbench : FixtureBase, CraftingStation {
actorValue[AVKey.BASEMASS] = 20.0
}
}
/**
* Created by minjaesong on 2024-03-14.
*/
class FixtureElectricWorkbench : FixtureBase, CraftingStation {
@Transient override val tags = listOf("soldering")
constructor() : super(
BlockBox(BlockBox.NO_COLLISION, 2, 2),
nameFun = { Lang["ITEM_ELECTRIC_WORKBENCH"] },
mainUI = UICrafting(null)
) {
val itemImage = FixtureItemBase.getItemImageFromSingleImage("basegame", "sprites/fixtures/electric_workbench.tga")
density = BlockCodex[Block.PLANK_NORMAL].density.toDouble()
setHitboxDimension(itemImage.texture.width, itemImage.texture.height, 0, 0)
makeNewSprite(TextureRegionPack(itemImage.texture, 32, 32)).let {
it.setRowsAndFrames(2,1)
}
actorValue[AVKey.BASEMASS] = 40.0
}
}