mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-06-09 10:04:05 +09:00
wire rolling mill
This commit is contained in:
@@ -31,6 +31,12 @@
|
|||||||
[1, 20, "$ROCK", 10, "item@basegame:25", 10, "item@basegame:113"] /* 1 smelter = 20 rocks, 10 clay balls, 10 iron ingots */
|
[1, 20, "$ROCK", 10, "item@basegame:25", 10, "item@basegame:113"] /* 1 smelter = 20 rocks, 10 clay balls, 10 iron ingots */
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
"item@basegame:36": { /* wire rolling mill */
|
||||||
|
"workbench": "basiccrafting",
|
||||||
|
"ingredients": [
|
||||||
|
[1, 1, "$WOOD", 1, "$ROCK", 5, "item@basegame:113"] /* 1 plank, 2 stone, 5 iron ingot */
|
||||||
|
]
|
||||||
|
},
|
||||||
|
|
||||||
"item@basegame:256": { /* oak door */
|
"item@basegame:256": { /* oak door */
|
||||||
"workbench": "basiccrafting",
|
"workbench": "basiccrafting",
|
||||||
|
|||||||
@@ -34,6 +34,7 @@ id;classname;tags
|
|||||||
33;net.torvald.terrarum.modulebasegame.gameitems.ItemTorch;FIXTURE,LIGHT
|
33;net.torvald.terrarum.modulebasegame.gameitems.ItemTorch;FIXTURE,LIGHT
|
||||||
34;net.torvald.terrarum.modulebasegame.gameitems.ItemSignalSwitchManual;FIXTURE,SIGNAL
|
34;net.torvald.terrarum.modulebasegame.gameitems.ItemSignalSwitchManual;FIXTURE,SIGNAL
|
||||||
35;net.torvald.terrarum.modulebasegame.gameitems.ItemSignalBulb;FIXTURE,SIGNAL
|
35;net.torvald.terrarum.modulebasegame.gameitems.ItemSignalBulb;FIXTURE,SIGNAL
|
||||||
|
36;net.torvald.terrarum.modulebasegame.gameitems.ItemWireRollingMill;FIXTURE,CRAFTING
|
||||||
|
|
||||||
# ingots
|
# ingots
|
||||||
26;net.torvald.terrarum.modulebasegame.gameitems.IngotSteel;INGOT
|
26;net.torvald.terrarum.modulebasegame.gameitems.IngotSteel;INGOT
|
||||||
|
|||||||
|
@@ -72,6 +72,7 @@
|
|||||||
"ITEM_TYPEWRITER": "Typewriter",
|
"ITEM_TYPEWRITER": "Typewriter",
|
||||||
"ITEM_WIRE": "Wire",
|
"ITEM_WIRE": "Wire",
|
||||||
"ITEM_WIRE_CUTTER": "Wire Cutter",
|
"ITEM_WIRE_CUTTER": "Wire Cutter",
|
||||||
|
"ITEM_WIRE_ROLLING_MILL": "Wire Rolling Mill",
|
||||||
"ITEM_WOOD_STICK": "Stick",
|
"ITEM_WOOD_STICK": "Stick",
|
||||||
"ITEM_WOODEN_MALLET": "Wooden Mallet",
|
"ITEM_WOODEN_MALLET": "Wooden Mallet",
|
||||||
"ITEM_WORKBENCH": "Workbench",
|
"ITEM_WORKBENCH": "Workbench",
|
||||||
|
|||||||
@@ -72,6 +72,7 @@
|
|||||||
"ITEM_TYPEWRITER": "타자기",
|
"ITEM_TYPEWRITER": "타자기",
|
||||||
"ITEM_WIRE": "전선",
|
"ITEM_WIRE": "전선",
|
||||||
"ITEM_WIRE_CUTTER": "전선 절단기",
|
"ITEM_WIRE_CUTTER": "전선 절단기",
|
||||||
|
"ITEM_WIRE_ROLLING_MILL": "선재 압연기",
|
||||||
"ITEM_WOOD_STICK": "막대기",
|
"ITEM_WOOD_STICK": "막대기",
|
||||||
"ITEM_WOODEN_MALLET": "나무 망치",
|
"ITEM_WOODEN_MALLET": "나무 망치",
|
||||||
"ITEM_WORKBENCH": "작업대",
|
"ITEM_WORKBENCH": "작업대",
|
||||||
|
|||||||
Binary file not shown.
BIN
assets/mods/basegame/sprites/fixtures/wire_rolling_mill.tga
LFS
Normal file
BIN
assets/mods/basegame/sprites/fixtures/wire_rolling_mill.tga
LFS
Normal file
Binary file not shown.
@@ -0,0 +1,35 @@
|
|||||||
|
package net.torvald.terrarum.modulebasegame.gameactors
|
||||||
|
|
||||||
|
import net.torvald.terrarum.BlockCodex
|
||||||
|
import net.torvald.terrarum.blockproperties.Block
|
||||||
|
import net.torvald.terrarum.gameactors.AVKey
|
||||||
|
import net.torvald.terrarum.langpack.Lang
|
||||||
|
import net.torvald.terrarum.modulebasegame.gameitems.FixtureItemBase
|
||||||
|
import net.torvald.terrarum.modulebasegame.ui.UICrafting
|
||||||
|
import net.torvald.terrarumsansbitmap.gdx.TextureRegionPack
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Created by minjaesong on 2024-03-02.
|
||||||
|
*/
|
||||||
|
class FixtureWireRollingMill : FixtureBase, CraftingStation {
|
||||||
|
|
||||||
|
@Transient override val tags = listOf("wirerollingmill")
|
||||||
|
|
||||||
|
constructor() : super(
|
||||||
|
BlockBox(BlockBox.NO_COLLISION, 2, 2),
|
||||||
|
nameFun = { Lang["ITEM_WIRE_ROLLING_MILL"] },
|
||||||
|
mainUI = UICrafting(null)
|
||||||
|
) {
|
||||||
|
val itemImage = FixtureItemBase.getItemImageFromSingleImage("basegame", "sprites/fixtures/wire_rolling_mill.tga")
|
||||||
|
|
||||||
|
density = BlockCodex[Block.STONE].density.toDouble()
|
||||||
|
setHitboxDimension(itemImage.texture.width, itemImage.texture.height, 0, 0)
|
||||||
|
|
||||||
|
makeNewSprite(TextureRegionPack(itemImage.texture, itemImage.texture.width, itemImage.texture.height)).let {
|
||||||
|
it.setRowsAndFrames(1,1)
|
||||||
|
}
|
||||||
|
|
||||||
|
actorValue[AVKey.BASEMASS] = 50.0
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
@@ -1,26 +0,0 @@
|
|||||||
package net.torvald.terrarum.modulebasegame.gameactors
|
|
||||||
|
|
||||||
import net.torvald.terrarum.gameactors.ActorWithBody
|
|
||||||
import net.torvald.terrarum.gameactors.PhysProperties
|
|
||||||
import net.torvald.terrarum.gameitems.ItemID
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Created by minjaesong on 2016-04-26.
|
|
||||||
*/
|
|
||||||
class ItemCarrying : ActorWithBody {
|
|
||||||
|
|
||||||
var itemID: ItemID = ""; private set
|
|
||||||
|
|
||||||
private constructor()
|
|
||||||
|
|
||||||
constructor(itemID: ItemID) : super(RenderOrder.MIDTOP, PhysProperties.IMMOBILE()) {
|
|
||||||
this.itemID = itemID
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
// just let the solver use AABB; it's cheap but works just enough
|
|
||||||
|
|
||||||
init {
|
|
||||||
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -0,0 +1,21 @@
|
|||||||
|
package net.torvald.terrarum.modulebasegame.gameitems
|
||||||
|
|
||||||
|
import com.badlogic.gdx.graphics.g2d.TextureRegion
|
||||||
|
import net.torvald.terrarum.gameitems.ItemID
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Created by minjaesong on 2024-03-02.
|
||||||
|
*/
|
||||||
|
class ItemWireRollingMill(originalID: ItemID) : FixtureItemBase(originalID, "net.torvald.terrarum.modulebasegame.gameactors.FixtureWireRollingMill") {
|
||||||
|
|
||||||
|
|
||||||
|
override var baseMass = 50.0
|
||||||
|
override val canBeDynamic = false
|
||||||
|
override val materialId = ""
|
||||||
|
override val itemImage: TextureRegion
|
||||||
|
get() = getItemImageFromSingleImage("basegame", "sprites/fixtures/wire_rolling_mill.tga")
|
||||||
|
|
||||||
|
override var baseToolSize: Double? = baseMass
|
||||||
|
override var originalName = "ITEM_WIRE_ROLLING_MILL"
|
||||||
|
|
||||||
|
}
|
||||||
Binary file not shown.
BIN
work_files/graphics/sprites/fixtures/wire_rolling_mill.kra
LFS
Normal file
BIN
work_files/graphics/sprites/fixtures/wire_rolling_mill.kra
LFS
Normal file
Binary file not shown.
Reference in New Issue
Block a user