mirror of
https://github.com/sfall-team/sfall.git
synced 2026-07-27 16:52:34 -07:00
Added missing function handlers to Metarule.cpp.
Minor edits to hookscripts.txt.
This commit is contained in:
@@ -600,6 +600,6 @@ int arg8 - Bonus ranged damage from the perk
|
||||
int arg9 - Damage Multiplier (this is divided by 2, so a value of 3 does 1.5x damage, and 8 does 4x damage. Usually it's 2; for critical hits, the value is taken from the critical table; with Silent Death perk and the corresponding attack conditions, the value will be doubled)
|
||||
int arg10 - Combat Difficulty multiplier (125 - rough, 100 - normal, 75 - wimpy; for player or party members it's always 100)
|
||||
int arg11 - The calculated amount of damage (usually 0, required when using multiple hook scripts to calculate damage and using the set_sfall_arg function)
|
||||
mixed arg12 - Computed attack results (see C_ATTACK_* for offsets and use read_int(arg12 + offset) to get the data)
|
||||
mixed arg12 - Computed attack results (see C_ATTACK_* for offsets and use get/set_object_data functions to get/set the data)
|
||||
|
||||
int ret1 - The returned amount of damage
|
||||
|
||||
@@ -418,12 +418,12 @@ static void CreateSaveComment(char* bufstr) {
|
||||
strcpy(bufstr, buf);
|
||||
}
|
||||
|
||||
static DWORD autoQuickSave = 0;
|
||||
static long autoQuickSave = 0;
|
||||
static long quickSavePage = 0;
|
||||
|
||||
static FILETIME ftPrevSlot;
|
||||
static DWORD __stdcall QuickSaveGame(fo::DbFile* file, char* filename) {
|
||||
unsigned int currSlot = fo::var::slot_cursor;
|
||||
int currSlot = fo::var::slot_cursor;
|
||||
|
||||
if (file) { // This slot is not empty
|
||||
fo::func::db_fclose(file);
|
||||
|
||||
@@ -94,6 +94,8 @@ static const SfallMetarule metarules[] = {
|
||||
{"get_ini_sections", sf_get_ini_sections, 1, 1, {ARG_STRING}},
|
||||
{"get_map_enter_position", sf_get_map_enter_position, 0, 0},
|
||||
{"get_metarule_table", sf_get_metarule_table, 0, 0},
|
||||
{"get_object_ai_data", sf_get_object_ai_data, 2, 2, {ARG_OBJECT, ARG_INT}},
|
||||
{"get_object_data", sf_get_object_data, 2, 2, {ARG_OBJECT, ARG_INT}},
|
||||
{"get_outline", sf_get_outline, 1, 1, {ARG_OBJECT}},
|
||||
{"get_string_pointer", sf_get_string_pointer, 1, 1, {ARG_STRING}},
|
||||
{"intface_hide", sf_intface_hide, 0, 0},
|
||||
@@ -116,6 +118,7 @@ static const SfallMetarule metarules[] = {
|
||||
{"set_iface_tag_text", sf_set_iface_tag_text, 3, 3, {ARG_INT, ARG_STRING, ARG_INT}},
|
||||
{"set_ini_setting", sf_set_ini_setting, 2, 2, {ARG_STRING, ARG_INTSTR}},
|
||||
{"set_map_enter_position", sf_set_map_enter_position, 3, 3, {ARG_INT, ARG_INT, ARG_INT}},
|
||||
{"set_object_data", sf_set_object_data, 3, 3, {ARG_OBJECT, ARG_INT, ARG_INT}},
|
||||
{"set_outline", sf_set_outline, 2, 2, {ARG_OBJECT, ARG_INT}},
|
||||
{"set_rest_heal_time", sf_set_rest_heal_time, 1, 1, {ARG_INT}},
|
||||
{"set_rest_mode", sf_set_rest_mode, 1, 1, {ARG_INT}},
|
||||
|
||||
Reference in New Issue
Block a user