Skip to content

Commit

Permalink
update dg and fix narrator bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Lamby777 committed Jun 26, 2024
1 parent 7e61f07 commit ed2a075
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 7 deletions.
1 change: 0 additions & 1 deletion pets-gd/i18n/translations.csv
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,6 @@ SKILL_SHIELD_HITS_MANY,It could easily stand quite a few hits.
SKILL_SHIELD_HITS_WHILE,It'd take enemies a while to break through this one.
SKILL_SHIELD_COMBINE_PARTS,{part1} {hits_str}
,
DG_SPK_NARRATOR,""
DG_SPK_UNKNOWN,???
DG_SPK_RODRICK,"Rodrick Sign Co."
DG_SPK_MOM,Mom
Expand Down
2 changes: 1 addition & 1 deletion pets-lib/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,5 @@ strum = { version = "0.26.1", features = ["derive"] }
typetag = "0.2.15"

[build-dependencies]
dialogical = "0.13.0"
dialogical = "0.13.1"

10 changes: 5 additions & 5 deletions pets-lib/src/dialogue/dbox/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -177,15 +177,15 @@ impl DialogBox {

use Speaker::*;

tr(match &self.speaker.temporary {
match &self.speaker.temporary {
Named(v) => {
let name = replace_str_all(v, &self.replaces);
placeholders::process_placeholders(&name).into()
tr(placeholders::process_placeholders(&name))
}

Narrator => "DG_SPK_NARRATOR".to_owned(),
Unknown => "DG_SPK_UNKNOWN".to_owned(),
})
Narrator => "".into(),
Unknown => tr("DG_SPK_UNKNOWN"),
}
}

fn translated_message(&self) -> GString {
Expand Down

0 comments on commit ed2a075

Please sign in to comment.