Message and todo/notes

This commit is contained in:
Tooze 2026-04-12 16:16:08 -04:00
parent 3ef90e681f
commit f3b07b66cb
5 changed files with 11 additions and 9 deletions

View file

@ -7,7 +7,6 @@ import core.game.component.Component
import core.game.global.action.ClimbActionHandler
import core.game.interaction.IntType
import core.game.interaction.InteractionListener
import core.game.interaction.InterfaceListener
import core.game.node.entity.player.Player
import core.game.world.map.Location
import org.rs09.consts.Components
@ -15,9 +14,6 @@ import org.rs09.consts.Items
import org.rs09.consts.NPCs
import org.rs09.consts.Scenery
const val BARBASSAULT_ACCEPT_ROLE_492 = 492
const val BARBASSAULT_SELECT_ROLE_493 = 493
class BarbassaultListeners : InteractionListener {
override fun defineListeners() {

View file

@ -86,6 +86,10 @@ fun Player.setBarbPoints(points: BarbAssaultPoints) {
*/
fun Player.addBarbPoints(additional: BarbAssaultPoints) {
setBarbPoints(getBarbPoints() + additional)
//todo Add warning message if points hit cap.
//"You have maxed out your Healer Honor Points. You should spend them /n
//commands."
//https://youtu.be/rWRWL5PUj94?t=244
}
/**
* Removes Barbarian Assault points from the player.

View file

@ -35,14 +35,12 @@ import core.tools.Log
import org.rs09.consts.Items
import org.rs09.consts.Scenery
//HAMMER_2347
//LOGS_11760 use these loggs
//1889 5407 - Barb assualt QUEEN area -- 7508
//1891 5465 - barb assualt AREA under
//queen spawn in Location.create(1884, 5405, 0)
val PENANCE_QUEEN_SPAWN_LOC = Location.create(1884, 5405, 0)
//No prayers
//sendMessage(player,"The barbarians forbid the use of prayer in their arena as they don't ~ value such methods!")
//should be multicombat
@ -102,6 +100,7 @@ class BarbassaultGameArea : InteractionListener, MapArea {
}
override fun defineListeners() {
//Wrong food message "That's the wrong type of poisoned food to use! Penalty!"
on(Scenery.EGG_LAUNCHER_20133, IntType.SCENERY, "Shoot") { player, node ->
EggCannon.openTurretIface(player)
return@on true
@ -197,6 +196,7 @@ class BarbassaultGameArea : InteractionListener, MapArea {
HEALING_VIAL3_10543
HEALING_VIAL4_10542 // 4
*/
sendMessage(player,"You filled the vial.")
return@on true
}
//CATALYTIC_RUNE_12851, ELEMENTAL_RUNE_12850

View file

@ -168,6 +168,9 @@ class BarbassaultSession( val activity: BarbassaultActivity ? = null) :LogoutLi
})
closeInterface(player)
openOverlay(player, 256)
//https://youtu.be/MpYZG3qkFUA?t=387
//todo dialogbox message not sendMessage
//Dialogbox: " The game ended because on of your team-mates exited early.
sendMessage(player,"The game ended early because one of your team-mates $endReason.")
BarbTeamManager.updateTeam(player.baSession?.team!!)
}

View file

@ -1,6 +1,5 @@
package content.minigame.barbassault.arena.scenery
import content.minigame.barbassault.arena.BaHornSystem
import content.minigame.barbassault.getBarbLevels
import core.api.EquipmentSlot
import core.api.addItem