Update docs, remove deprecated macro

This commit is contained in:
phobos2077
2023-06-12 11:55:06 +02:00
parent 49cf0e6726
commit f222348b25
5 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -1098,7 +1098,7 @@
opcode: 0x8251 opcode: 0x8251
- name: get_string_pointer - name: get_string_pointer
detail: int get_string_pointer(string text) detail: int get_string_pointer(string text)
doc: Returns a pointer to a string variable or to a text. doc: Returns a pointer to a string variable or to a text. DEPRECATED, just use normal strings instead.
macro: sfall.h macro: sfall.h
- name: string_format - name: string_format
detail: string string_format(string format, any val1, any val2, ...) detail: string string_format(string format, any val1, any val2, ...)
-1
View File
@@ -321,7 +321,6 @@
#define get_npc_stat_max(stat) sfall_func2("get_stat_max", stat, 1) #define get_npc_stat_max(stat) sfall_func2("get_stat_max", stat, 1)
#define get_npc_stat_min(stat) sfall_func2("get_stat_min", stat, 1) #define get_npc_stat_min(stat) sfall_func2("get_stat_min", stat, 1)
#define get_sfall_arg_at(argNum) sfall_func1("get_sfall_arg_at", argNum) #define get_sfall_arg_at(argNum) sfall_func1("get_sfall_arg_at", argNum)
#define get_string_pointer(text) sfall_func1("get_string_pointer", text)
#define get_terrain_name(x, y) sfall_func2("get_terrain_name", x, y) #define get_terrain_name(x, y) sfall_func2("get_terrain_name", x, y)
#define get_text_width(text) sfall_func1("get_text_width", text) #define get_text_width(text) sfall_func1("get_text_width", text)
#define has_fake_perk_npc(npc, perk) sfall_func2("has_fake_perk_npc", npc, perk) #define has_fake_perk_npc(npc, perk) sfall_func2("has_fake_perk_npc", npc, perk)
+1 -1
View File
@@ -610,7 +610,7 @@
``` ```
Obj arg0 - the object Obj arg0 - the object
int ret0 - a pointer to the new text received by using the get_string_pointer function str ret0 - new description text to use
``` ```
- name: UseSkillOn - name: UseSkillOn
+1 -1
View File
@@ -694,7 +694,7 @@ Does not run if the script of the object overrides the description.
``` ```
Obj arg0 - the object Obj arg0 - the object
int ret0 - a pointer to the new text received by using the get_string_pointer function str ret0 - new description text to use
``` ```
------------------------------------------- -------------------------------------------
@@ -706,6 +706,7 @@ sfall_funcX metarule functions
---- ----
#### get_string_pointer #### get_string_pointer
`int sfall_func1("get_string_pointer", string text)` `int sfall_func1("get_string_pointer", string text)`
- DEPRECATED, use normal strings
- Returns a pointer to a string variable or to a text - Returns a pointer to a string variable or to a text
---- ----