From 75e6669d49aeeab583a382b568d433eb7329e4e8 Mon Sep 17 00:00:00 2001 From: minjaesong Date: Sat, 5 Aug 2023 00:16:00 +0900 Subject: [PATCH] temp fix: platform-ladder not working --- .../terrarum/modulebasegame/gameactors/ActorHumanoid.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/net/torvald/terrarum/modulebasegame/gameactors/ActorHumanoid.kt b/src/net/torvald/terrarum/modulebasegame/gameactors/ActorHumanoid.kt index 6d6001279..052c446c4 100644 --- a/src/net/torvald/terrarum/modulebasegame/gameactors/ActorHumanoid.kt +++ b/src/net/torvald/terrarum/modulebasegame/gameactors/ActorHumanoid.kt @@ -292,8 +292,8 @@ open class ActorHumanoid : ActorWithBody, Controllable, Pocketed, Factionable, L val occupyingTileHasPlatform = bodyTiles.filterNotNull().any { it.isPlatform } val feetTileHasPlatform = feetTiles.filterNotNull().any { it.isPlatform } val feetTileIsAllPlatform = feetTiles.filterNotNull().all { it.isPlatform } - if (isDownDown && feetTileIsAllPlatform && (controllerV?.y ?: 0.0) >= 0.0 || - occupyingTileHasPlatform && !feetTileHasPlatform) { // FIXME this does not account for reverse gravity + if (isDownDown && feetTileIsAllPlatform && (controllerV?.y ?: 0.0) >= 0.0) {// || +// occupyingTileHasPlatform && !feetTileHasPlatform) { // FIXME commenting this out enables platform-ladder but falldown gets slowed down if the body passes thru the platform but I think this behav might be beneficial for player? downDownVirtually = true } if (downDownVirtually && !occupyingTileHasPlatform && !feetTileIsAllPlatform) {