mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-06-06 08:38:30 +09:00
temp fix: platform-ladder not working
This commit is contained in:
@@ -292,8 +292,8 @@ open class ActorHumanoid : ActorWithBody, Controllable, Pocketed, Factionable, L
|
|||||||
val occupyingTileHasPlatform = bodyTiles.filterNotNull().any { it.isPlatform }
|
val occupyingTileHasPlatform = bodyTiles.filterNotNull().any { it.isPlatform }
|
||||||
val feetTileHasPlatform = feetTiles.filterNotNull().any { it.isPlatform }
|
val feetTileHasPlatform = feetTiles.filterNotNull().any { it.isPlatform }
|
||||||
val feetTileIsAllPlatform = feetTiles.filterNotNull().all { it.isPlatform }
|
val feetTileIsAllPlatform = feetTiles.filterNotNull().all { it.isPlatform }
|
||||||
if (isDownDown && feetTileIsAllPlatform && (controllerV?.y ?: 0.0) >= 0.0 ||
|
if (isDownDown && feetTileIsAllPlatform && (controllerV?.y ?: 0.0) >= 0.0) {// ||
|
||||||
occupyingTileHasPlatform && !feetTileHasPlatform) { // FIXME this does not account for reverse gravity
|
// 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
|
downDownVirtually = true
|
||||||
}
|
}
|
||||||
if (downDownVirtually && !occupyingTileHasPlatform && !feetTileIsAllPlatform) {
|
if (downDownVirtually && !occupyingTileHasPlatform && !feetTileIsAllPlatform) {
|
||||||
|
|||||||
Reference in New Issue
Block a user