Skip to content

Commit

Permalink
Smithing
Browse files Browse the repository at this point in the history
  • Loading branch information
CloudS3c committed May 29, 2023
1 parent 030e178 commit 6156895
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -68,16 +68,16 @@ internal fun typeForChild(child: Int, bar: Bar): String? = when (child) {
}
29 -> "${bar.prefix} dart tip"
30 -> "${bar.prefix} arrowtips"
31 -> "${bar.prefix} knife"
31 -> "${bar.prefix} Knives"
32 -> when (bar) {
Bar.BRONZE -> "wire"
Bar.IRON -> "spit"
Bar.STEEL -> "studs"
Bar.MITHRIL -> "grapple tip"
else -> null
}
33 -> "${bar.prefix} bolts (unf)"
34 -> "${bar.prefix} limbs"
35 -> "${bar.prefix} javelin heads"
34 -> "${bar.prefix} bolts (unf)"
35 -> "${bar.prefix} limbs"
33 -> "${bar.prefix} javelin heads"
else -> null
}
Original file line number Diff line number Diff line change
Expand Up @@ -161,11 +161,11 @@ smithingInterfaceComponents.forEach { child ->

// The number of items to smith
val amount = when (player.attr[INTERACTING_OPT_ATTR]) {
1 -> 1
2 -> 5
3 -> 10
4 -> inputInt("Enter amount:")
5 -> player.inventory.capacity
0 -> 1
1 -> 5
2 -> 10
3 -> inputInt("Enter amount:")
4 -> player.inventory.capacity
else -> {
world.sendExamine(player, item.id, ExamineEntityType.ITEM)
return@queue
Expand Down

0 comments on commit 6156895

Please sign in to comment.