mirror of
https://gitlab.com/2009scape/2009scape.git
synced 2026-08-01 14:39:13 -06:00
Extra safety check
This commit is contained in:
parent
b5c53a47d6
commit
9adb43b5ca
1 changed files with 2 additions and 1 deletions
|
|
@ -1,5 +1,6 @@
|
|||
package content.global.skill.construction.decoration.workshop
|
||||
|
||||
import content.global.skill.construction.CrestType
|
||||
import content.global.skill.crafting.HeraldicProduct
|
||||
import content.region.asgarnia.falador.dialogue.SirReniteeDialogueFile
|
||||
import core.api.*
|
||||
|
|
@ -32,7 +33,7 @@ class EaselListener : InteractionListener {
|
|||
|
||||
private fun checkRequirements(player: Player, product: HeraldicProduct) : Boolean {
|
||||
when {
|
||||
(!getAttribute(player, SirReniteeDialogueFile.attributeCrest, false)) -> {
|
||||
(!getAttribute(player, SirReniteeDialogueFile.attributeCrest, false) || player.houseManager.crest == CrestType.NULL) -> {
|
||||
sendDialogue(player, "You need a crest to make heraldic items.") // Placeholder
|
||||
return false
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue