mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-06-14 04:24:05 +09:00
electric workbench
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user