semantic changes
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user