semantic changes

This commit is contained in:
Sebastian Bularca
2026-04-21 00:08:13 +02:00
parent 3af200a847
commit f71e6a145e
3 changed files with 9 additions and 11 deletions

View File

@@ -9,13 +9,11 @@ namespace Jovian.EncounterSystem {
[TextArea(2, 6)] public string inlineText;
public string Resolve(DialogLineLibrary library) {
if(library != null && !string.IsNullOrEmpty(id)) {
var text = library.Resolve(id);
if(!string.IsNullOrEmpty(text)) {
return text;
}
if(!library || string.IsNullOrEmpty(id)) {
return inlineText;
}
return inlineText;
var text = library.Resolve(id);
return !string.IsNullOrEmpty(text) ? text : inlineText;
}
}
}