Updated addhomintimacy script command (#8551)

* The command now fails silently when no players are attached or if the player has no homunculus (like other homunculus script command)

Fixed #8534
This commit is contained in:
Atemo 2024-08-09 23:33:43 +02:00 committed by GitHub
parent 88ce3fe5d3
commit a5c939bec9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 1 deletions

View File

@ -10691,6 +10691,7 @@ current invoking character.
*addhomintimacy <amount>{,<char_id>}; *addhomintimacy <amount>{,<char_id>};
Increase or decrease a homunculus' intimacy value by the given <amount>. 100000 is full loyalty. Increase or decrease a homunculus' intimacy value by the given <amount>. 100000 is full loyalty.
Fails silently when no players are attached or if the player has no homunculus.
--------------------------------------- ---------------------------------------

View File

@ -15861,7 +15861,7 @@ BUILDIN_FUNC(addhomintimacy)
homun_data *hd; homun_data *hd;
if (!script_charid2sd(3, sd) || !(hd = sd->hd)) if (!script_charid2sd(3, sd) || !(hd = sd->hd))
return SCRIPT_CMD_FAILURE; return SCRIPT_CMD_SUCCESS;
int32 value = script_getnum(st, 2); int32 value = script_getnum(st, 2);