mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-06-12 11:34:05 +09:00
better boom-job juggling
This commit is contained in:
@@ -46,10 +46,6 @@ open class ActorPrimedBomb(
|
||||
|
||||
if (fuse <= 0f && !explosionCalled) {
|
||||
explosionCalled = true
|
||||
physProp.usePhysics = false
|
||||
|
||||
this.isVisible = false // or play explosion anim
|
||||
startAudio(boomSound, 10.0)
|
||||
|
||||
ExplosionManager.goBoom(
|
||||
INGAME.world,
|
||||
@@ -58,7 +54,11 @@ open class ActorPrimedBomb(
|
||||
explosionPower,
|
||||
dropProbNonOre,
|
||||
dropProbOre
|
||||
) {}
|
||||
) {
|
||||
physProp.usePhysics = false
|
||||
this.isVisible = false // or play explosion anim
|
||||
startAudio(boomSound, 10.0)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user