Some event stuff

This commit is contained in:
2025-06-04 21:51:13 -05:00
parent 7d47cbb86b
commit 6cfbdbc892
7 changed files with 67 additions and 4 deletions

View File

@@ -15,8 +15,6 @@ var conversationEvent:EventConversation = null
var textboxEvent:EventTextbox = null
func start() -> void:
getInventory().addItem(itemType, quantity)
# Should show text?
if !showText:
super.start()
@@ -50,10 +48,18 @@ func start() -> void:
textboxEvent.count = quantity
conversationEvent.addChildEvent(textboxEvent)
conversationEvent.eventEnded.connect(func():
# Reward the item
rewardItem()
)
# Begin processing
super.start()
startChild(conversationEvent)
func rewardItem():
getInventory().addItem(itemType, quantity)
func isDone() -> bool:
if !super.isDone():
return false