Added "set_drugs_data" script function (from Mr.Stalin)

Fixed vanilla drugs in Drugs.ini not getting loaded.
This commit is contained in:
NovaRain
2019-03-08 21:37:36 +08:00
parent 2d38b4bac1
commit f289723431
8 changed files with 44 additions and 15 deletions
+1
View File
@@ -277,6 +277,7 @@
#define set_can_rest_on_map(map, elev, value) sfall_func3("set_can_rest_on_map", map, elev, value)
#define set_car_intface_art(artIndex) sfall_func1("set_car_intface_art", artIndex)
#define set_cursor_mode(mode) sfall_func1("set_cursor_mode", mode)
#define set_drugs_data(type, pid, value) sfall_func3("set_drugs_data", type, pid, value)
#define set_dude_obj(critter) sfall_func1("set_dude_obj", critter)
#define set_flags(obj, flags) sfall_func2("set_flags", obj, flags)
#define set_iface_tag_text(tag, text, color) sfall_func3("set_iface_tag_text", tag, text, color)
@@ -573,6 +573,11 @@ Some utility/math functions are available:
- enables/disables the engine function that increases the level of party members in the player leveling process
- if the engine function is disabled, the process of leveling up party members should be performed by script functions
> void sfall_func3("set_drugs_data", int type, int pid, int value)
- overrides the parameters of drugs set in the configuration file (DrugsFile setting in ddraw.ini)
- type: 0 - changes the value of NumEffects for the drug (see Drugs.ini for the description of NumEffects)
1 - changes the duration of the addiction effect for the drug (a value of 1 = one game minute)
------------------------
------ MORE INFO -------
------------------------