Skip to content

Commit

Permalink
Add more dark mage messages
Browse files Browse the repository at this point in the history
  • Loading branch information
GregHib committed May 18, 2024
1 parent 38ac576 commit 5a5a647
Showing 1 changed file with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package world.gregs.voidps.world.map.varrock.abyss

import world.gregs.voidps.engine.entity.character.npc.NPCOption
import world.gregs.voidps.engine.entity.character.npc.npcOperate
import world.gregs.voidps.engine.inv.add
import world.gregs.voidps.engine.inv.inventory
import world.gregs.voidps.engine.inv.transact.operation.ReplaceItem.replace
import world.gregs.voidps.world.activity.bank.ownsItem
Expand Down Expand Up @@ -74,13 +75,17 @@ fun ChoiceBuilder<NPCOption>.needHelp() {
choice {
option<Quiz>("Can I have another Abyssal book?") {
if (player.ownsItem("abyssal_book")) {
// TODO
npc<Talk>("You already have one, don't waste my time.") // TODO proper message
} else {
if (player.inventory.isFull()) {
npc<Angry>("Don't waste my time if you don't have enough free space to take it.")
} else {
npc<Talk>("Here, take it. It is important to pool our research.")
item("abyssal_book", 400, "You have been given a book.")
if (player.inventory.add("abyssal_book")) {
item("abyssal_book", 400, "You have been given a book.")
} else {
item("abyssal_book", 400, "The mage tries to hand you a book, but you don't have enough room to take it.") // TODO proper message
}
choice {
askForPouch()
option<Neutral>("Thanks.") {
Expand Down

0 comments on commit 5a5a647

Please sign in to comment.