[Luamod] Add CalcSpellEffectValue_formula to luamods (#2721)

* [Luamod] Add CalcSpellEffectValue_formula to luamods with example code in utils/mods/spell_formula.lua

* Fix typo

* Change formula down to uint32, fix format issues and remove debug on lua file
This commit is contained in:
Natedog2012
2023-01-11 17:49:35 -06:00
committed by GitHub
parent 2587a7fed5
commit 3341c0b7ab
9 changed files with 179 additions and 3 deletions
+5
View File
@@ -1580,6 +1580,10 @@ void lua_log_combat(std::string message) {
Log(Logs::General, Logs::Combat, message.c_str());
}
void lua_log_spells(std::string message) {
Log(Logs::General, Logs::Spells, message.c_str());
}
void lua_update_zone_header(std::string type, std::string value) {
quest_manager.UpdateZoneHeader(type, value);
}
@@ -4142,6 +4146,7 @@ luabind::scope lua_register_general() {
luabind::def("debug", (void(*)(std::string))&lua_debug),
luabind::def("debug", (void(*)(std::string, int))&lua_debug),
luabind::def("log_combat", (void(*)(std::string))&lua_log_combat),
luabind::def("log_spells", (void(*)(std::string))&lua_log_spells),
luabind::def("seconds_to_time", &lua_seconds_to_time),
luabind::def("time_to_seconds", &lua_time_to_seconds),
luabind::def("get_hex_color_code", &lua_get_hex_color_code),