Added the description of attack_is_aimed to notes.txt.

Removed unnecessary function declaration in Misc.h.
This commit is contained in:
NovaRain
2018-05-09 10:07:11 +08:00
parent 15909dbb5b
commit 3ff0e77c26
3 changed files with 10 additions and 8 deletions
+6 -3
View File
@@ -157,7 +157,7 @@ array - array ID to be used with array-related functions (actually an integer)
- if you add 0x80000000 to the sid when calling set_script, map_enter_p_proc will be SKIPPED. The start proc will always be run.
> int get_script(object)
- accepts a pointer to an object and returns it's scriptID (line number in scripts.lst), or -1 if the object is unscripted.
- accepts a pointer to an object and returns its scriptID (line number in scripts.lst), or -1 if the object is unscripted.
> void set_self(int obj)
- overrides the scripts self_obj for the next function call.
@@ -214,7 +214,7 @@ Some additional reg_anim_* functions were introduced. They all work in the same
- plays "take out weapon" animation for given holdFrameID. It is not required to have such weapon in critter's inventory.
> void reg_anim_turn_towards(object, tile/target, delay)
- makes object change it's direction to face given tile num or target object.
- makes object change its direction to face given tile num or target object.
> int metarule2_explosions(int arg1, int arg2)
was made as a dirty easy hack to allow dynamically change some explosion parameters (ranged attack). All changed parameters are reset to vanilla state automatically after each attack action. Following macros are available in sfall.h:
@@ -470,9 +470,12 @@ Some utility/math functions are available:
- The time interval will be reset each time the player reloads the game
> void sfall_func1("set_rest_mode", int mode)
- sets the bit flags for the rest mode (see REST_* constants in sfall.h)
- sets the bit flags for the rest mode (see RESTMODE_* constants in sfall.h)
- passing 0 will reset the rest mode. It will also be reset each time the player reloads the game
> int sfall_func0("attack_is_aimed")
- returns 1 if the aimed attack mode is selected, 0 otherwise
------------------------
------ MORE INFO -------
------------------------