mirror of
https://github.com/sfall-team/sfall.git
synced 2026-07-27 16:52:34 -07:00
Rename the option from previous commit to FullItemDescInBarter and added it to ddraw.ini.
Edited info about HOOK_DESCRIPTIONOBJ and the new return value of HOOK_BARTERPRICE to documents. Minor edits to ddraw.ini to avoid misunderstanding.
This commit is contained in:
@@ -265,7 +265,7 @@ critter arg7 - table of offered goods (being sold to NPC)
|
||||
int arg8 - the total cost of the goods offered by the player
|
||||
int arg9 - set 1 if the "offers" button was pressed (not for a party member), otherwise 0
|
||||
|
||||
int ret1 - the modified value of all of the goods, pass -1 for modify only offered goods
|
||||
int ret1 - the modified value of all of the goods (pass -1 if you just want to modify offered goods)
|
||||
int ret2 - the modified value of all offered goods
|
||||
|
||||
-------------------------------------------
|
||||
@@ -537,9 +537,9 @@ int ret2 - overrides the result of engine calculation: 0/1 - failure, 2/3 -
|
||||
|
||||
HOOK_DESCRIPTIONOBJ (hs_descriptionobj)
|
||||
|
||||
Runs while using the item description icon in the player's inventory, or trade window.
|
||||
Allows to override the description of the item (for example: add additional parameters to the description).
|
||||
Runs when using the examine action icon to display item description. You can override the description of the item.
|
||||
An example usage would be to add additional parameters to the description.
|
||||
|
||||
Obj arg1 - the item
|
||||
Obj arg1 - the item
|
||||
|
||||
int ret1 - a pointer to the new "text" received using the macro function 'get_string_pointer' from FuncX functions
|
||||
int ret1 - a pointer to the new text received by using "get_string_pointer" function
|
||||
|
||||
Reference in New Issue
Block a user