Skip to content

Commit

Permalink
Take the item before starting the dialogue.
Browse files Browse the repository at this point in the history
  • Loading branch information
Waterpicker committed Oct 31, 2024
1 parent f8c69b1 commit c63b29f
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ object GenerationsArchitecturyEvents {
) {
val dialogue: Dialogue = Dialogues.dialogues[GenerationsCore.id("tapu_spawn")]
?: return@register EventResult.interruptFalse()

player.getItemInHand(hand).shrink(1)
player.openDialogue(dialogue)

return@register EventResult.interruptTrue()
Expand All @@ -48,6 +48,7 @@ object GenerationsArchitecturyEvents {
val dialogue: Dialogue = Dialogues.dialogues[GenerationsCore.id("therian_spawn")]
?: return@register EventResult.interruptFalse()

player.getItemInHand(hand).shrink(1)
player.openDialogue(dialogue)

return@register EventResult.interruptTrue()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,6 @@
"allowSkip": false,
"delay": 1,
"action": [
"q.player.main_hand.shrink(1);",
"q.spawn_pokemon(q.player, v.pokemon_id + ' level=70', 'generations_core:tapu_shrine', 'generations_core:tapu_shrine');",
"q.dialogue.close();"
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,6 @@
"allowSkip": false,
"delay": 1,
"action": [
"q.player.main_hand.shrink(1);",
"q.spawn_pokemon(q.player, v.pokemon_id + ' level=70', 'generations_core:abundant_shrine', 'generations_core:abundant_shrine');",
"q.dialogue.close();"
]
Expand Down

0 comments on commit c63b29f

Please sign in to comment.