mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-03-07 20:31:51 +09:00
removing inventory-removiitem prints
This commit is contained in:
@@ -112,7 +112,7 @@ object WorldSimulator {
|
||||
}
|
||||
|
||||
fun growOrKillGrass() {
|
||||
repeat(2 * world.worldTime.timeDelta) {
|
||||
repeat(2 * world.worldTime.timeDelta) { // TODO: season-dependent growth rate
|
||||
val rx = rng.nextInt(updateXFrom, updateXTo + 1)
|
||||
val ry = rng.nextInt(updateYFrom, updateYTo + 1)
|
||||
val tile = world.getTileFromTerrain(rx, ry)
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
package net.torvald.terrarum.modulebasegame.gameactors
|
||||
|
||||
import net.torvald.terrarum.App.printdbg
|
||||
import net.torvald.terrarum.BlockCodex
|
||||
import net.torvald.terrarum.ItemCodex
|
||||
import net.torvald.terrarum.Terrarum
|
||||
@@ -89,8 +90,7 @@ open class FixtureInventory() {
|
||||
|
||||
val item = filterItem(item0)!!
|
||||
|
||||
|
||||
// println("[ActorInventory] add-by-elem $item, $count")
|
||||
// printdbg(this, "add-by-elem $item, $count")
|
||||
|
||||
// other invalid values
|
||||
if (count == 0L)
|
||||
@@ -139,7 +139,7 @@ open class FixtureInventory() {
|
||||
* e.g. re-assign after this operation */
|
||||
open fun remove(item: GameItem, count: Long = 1, unequipFun: (InventoryPair) -> Unit) {
|
||||
|
||||
println("[ActorInventory] remove $item, $count")
|
||||
// printdbg(this, "remove $item, $count")
|
||||
|
||||
if (count == 0L)
|
||||
// throw IllegalArgumentException("[${this.javaClass.canonicalName}] Item count is zero.")
|
||||
|
||||
Reference in New Issue
Block a user