uicrafting: reset scroll when opening

This commit is contained in:
minjaesong
2024-02-12 22:11:02 +09:00
parent 43a5014564
commit 3e3c1078d7
3 changed files with 7 additions and 2 deletions

View File

@@ -127,7 +127,7 @@ class ActorInventory() : FixtureInventory() {
val swingDmgToFrameDmg = App.UPDATE_RATE.toDouble() / actor.actorValue.getAsDouble(AVKey.ACTION_INTERVAL)!!
// damage the item
newItem.durability -= (baseDamagePerSwing * swingDmgToFrameDmg).toFloat()
newItem.durability -= (baseDamagePerSwing * swingDmgToFrameDmg / 1.5f).toFloat()
if (newItem.durability <= 0) {
remove(newItem, 1)