Add args to ENCOUNTER hook to determine which encounter is being loaded, not just map ID

This commit is contained in:
phobos2077
2024-05-31 00:53:17 +02:00
parent 0ba74de616
commit f9faa73b9c
6 changed files with 48 additions and 5 deletions
@@ -200,6 +200,15 @@ procedure to_string(variable val) begin
return ""+val;
end
/**
* Returns true if given string is 0 or empty string. For use as a delegate.
* @arg {string} str
* @ret {bool}
*/
procedure string_null_or_empty(variable str) begin
return str == 0 or str == "";
end
/**
DEPRECATED, use string_format instead!