Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
BlackRam-oss committed Aug 12, 2024
1 parent 5361d86 commit d945531
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
5 changes: 1 addition & 4 deletions src/classes/LabelJson.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { clearChoiceMenuOptions, clearDialogue, setChoiceMenuOptions, setDialogue, setFlag } from "../functions"
import { clearChoiceMenuOptions, setChoiceMenuOptions, setDialogue, setFlag } from "../functions"
import { LabelProps } from "../interface"
import { GameStepManager, GameStorageManager } from "../managers"
import { StepLabelJsonType } from "../types"
Expand Down Expand Up @@ -57,9 +57,6 @@ export default class LabelJson<T extends {} = {}> extends LabelAbstract<LabelJso
if (step.dialog) {
setDialogue(step.dialog)
}
else {
clearDialogue()
}

if (step.labelToOpen) {
if (step.labelToOpen.type === "jump") {
Expand Down
1 change: 0 additions & 1 deletion src/functions/DialogueUtility.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,6 @@ export function setDialogue<TCharacter extends CharacterBaseModel = CharacterBas
let glueDialogue = getDialogue<TDialogue>()
if (glueDialogue) {
dialogue.text = `${glueDialogue.text}${dialogue.text}`
dialogue = glueDialogue
}
setFlag(GameStorageManager.keysSystem.ADD_NEXT_DIALOG_TEXT_INTO_THE_CURRENT_DIALOG_FLAG_KEY, false)
}
Expand Down

0 comments on commit d945531

Please sign in to comment.