Misc Jatizso fixes

Fixed a bug in the packet write listener
Ungoofed the LadderAchievementCheck
This commit is contained in:
ceikry
2021-07-09 19:30:22 -05:00
parent 1cde9453ff
commit a0b4863437
12 changed files with 65 additions and 29 deletions
+11
View File
@@ -4,6 +4,7 @@ import core.cache.def.impl.ItemDefinition
import core.cache.def.impl.SceneryDefinition
import core.game.component.Component
import core.game.content.dialogue.FacialExpression
import core.game.content.global.action.SpecialLadders
import core.game.node.Node
import core.game.node.`object`.Scenery
import core.game.node.`object`.SceneryBuilder
@@ -1125,4 +1126,14 @@ object ContentAPI {
fun animateInterface(player: Player, iface: Int, child: Int, anim: Int){
player.packetDispatch.sendAnimationInterface(anim,iface,child)
}
/**
* Adds a climb destination to the ladder handler.
* @param ladderLoc the location of the ladder/stairs object you want to climb.
* @param dest the destination for the climb.
*/
@JvmStatic
fun addClimbDest(ladderLoc: Location, dest: Location){
SpecialLadders.add(ladderLoc,dest)
}
}