HOOK_STEAL: add ret0 value 2 to fail "silently"

This commit is contained in:
phobos2077
2023-07-22 13:43:23 +02:00
parent f267224428
commit 5394352bf0
3 changed files with 12 additions and 5 deletions
+1 -1
View File
@@ -377,7 +377,7 @@
int arg3 - 0 when stealing, 1 when planting
int arg4 - quantity of items being stolen
int ret0 - overrides hard-coded handler (1 - force success, 0 - force fail, -1 - use engine handler)
int ret0 - overrides hard-coded handler (2 - force fail without closing window, 1 - force success, 0 - force fail, -1 - use engine handler)
int ret1 - overrides experience points gained for stealing this item
```
+1 -1
View File
@@ -480,7 +480,7 @@ Item arg2 - Item being stolen/planted
int arg3 - 0 when stealing, 1 when planting
int arg4 - quantity of items being stolen
int ret0 - overrides hard-coded handler (1 - force success, 0 - force fail, -1 - use engine handler)
int ret0 - overrides hard-coded handler (2 - force fail without closing window, 1 - force success, 0 - force fail, -1 - use engine handler)
int ret1 - overrides experience points gained for stealing this item
```