generated from Jaysyn/ModuleTemplate
2025/12/24 Update
Hooked up new GUI module event. Updated PEPS. Updated PRC8 includes. Updated nasher.cfg.
This commit is contained in:
@@ -44,6 +44,7 @@ void CreateSwitchNameArray();
|
||||
|
||||
#include "prc_inc_array" // Needs direct include instead of inc_utility
|
||||
#include "prc_inc_switch"
|
||||
#include "inc_2dacache"
|
||||
|
||||
//////////////////////////////////////////////////
|
||||
/* Function definitions */
|
||||
@@ -221,9 +222,9 @@ void SetDefaultFileEnds()
|
||||
SetPRCSwitch("PRC_FILE_END_cls_spcr_bard", 144);
|
||||
SetPRCSwitch("PRC_FILE_END_cls_spcr_beguil", 142);
|
||||
SetPRCSwitch("PRC_FILE_END_cls_spcr_blkgrd", 47);
|
||||
SetPRCSwitch("PRC_FILE_END_cls_spcr_dnecro", 137);
|
||||
SetPRCSwitch("PRC_FILE_END_cls_spcr_dnecro", 138);
|
||||
SetPRCSwitch("PRC_FILE_END_cls_spcr_duskbl", 69);
|
||||
SetPRCSwitch("PRC_FILE_END_cls_spcr_favsol", 290);
|
||||
SetPRCSwitch("PRC_FILE_END_cls_spcr_favsol", 300);
|
||||
SetPRCSwitch("PRC_FILE_END_cls_spcr_harper", 35);
|
||||
SetPRCSwitch("PRC_FILE_END_cls_spcr_healer", 77);
|
||||
SetPRCSwitch("PRC_FILE_END_cls_spcr_hexbl", 73);
|
||||
@@ -251,9 +252,9 @@ void SetDefaultFileEnds()
|
||||
SetPRCSwitch("PRC_FILE_END_cls_spell_bard", 169);
|
||||
SetPRCSwitch("PRC_FILE_END_cls_spell_beguil", 119);
|
||||
SetPRCSwitch("PRC_FILE_END_cls_spell_blkgrd", 163);
|
||||
SetPRCSwitch("PRC_FILE_END_cls_spell_dnecro", 134);
|
||||
SetPRCSwitch("PRC_FILE_END_cls_spell_dnecro", 135);
|
||||
SetPRCSwitch("PRC_FILE_END_cls_spell_duskbl", 84);
|
||||
SetPRCSwitch("PRC_FILE_END_cls_spell_favsol", 363);
|
||||
SetPRCSwitch("PRC_FILE_END_cls_spell_favsol", 373);
|
||||
SetPRCSwitch("PRC_FILE_END_cls_spell_harper", 21);
|
||||
SetPRCSwitch("PRC_FILE_END_cls_spell_healer", 271);
|
||||
SetPRCSwitch("PRC_FILE_END_cls_spell_hexbl", 79);
|
||||
@@ -267,7 +268,7 @@ void SetDefaultFileEnds()
|
||||
SetPRCSwitch("PRC_FILE_END_cls_spell_sod", 110);
|
||||
SetPRCSwitch("PRC_FILE_END_cls_spell_sohei", 131);
|
||||
SetPRCSwitch("PRC_FILE_END_cls_spell_sol", 114);
|
||||
SetPRCSwitch("PRC_FILE_END_cls_spell_sorc", 541);
|
||||
SetPRCSwitch("PRC_FILE_END_cls_spell_sorc", 550);
|
||||
SetPRCSwitch("PRC_FILE_END_cls_spell_suel", 160);
|
||||
SetPRCSwitch("PRC_FILE_END_cls_spell_templ", 95);
|
||||
SetPRCSwitch("PRC_FILE_END_cls_spell_tfshad", 70);
|
||||
@@ -335,7 +336,7 @@ void SetDefaultFileEnds()
|
||||
SetPRCSwitch("PRC_FILE_END_craft_golem", 40);
|
||||
SetPRCSwitch("PRC_FILE_END_craft_ring", 41);
|
||||
SetPRCSwitch("PRC_FILE_END_craft_weapon", 46);
|
||||
SetPRCSwitch("PRC_FILE_END_craft_wondrous", 115);
|
||||
SetPRCSwitch("PRC_FILE_END_craft_wondrous", 131);
|
||||
SetPRCSwitch("PRC_FILE_END_creaturesize", 5);
|
||||
SetPRCSwitch("PRC_FILE_END_creaturespeed", 8);
|
||||
SetPRCSwitch("PRC_FILE_END_crtemplates", 10);
|
||||
@@ -355,7 +356,7 @@ void SetDefaultFileEnds()
|
||||
SetPRCSwitch("PRC_FILE_END_des_crft_poison", 100);
|
||||
SetPRCSwitch("PRC_FILE_END_des_crft_props", 27);
|
||||
SetPRCSwitch("PRC_FILE_END_des_crft_scroll", 3999);
|
||||
SetPRCSwitch("PRC_FILE_END_des_crft_spells", 19348);
|
||||
SetPRCSwitch("PRC_FILE_END_des_crft_spells", 20000);
|
||||
SetPRCSwitch("PRC_FILE_END_des_crft_weapon", 29);
|
||||
SetPRCSwitch("PRC_FILE_END_des_cutconvdur", 26);
|
||||
SetPRCSwitch("PRC_FILE_END_des_feat2item", 1000);
|
||||
@@ -408,7 +409,7 @@ void SetDefaultFileEnds()
|
||||
SetPRCSwitch("PRC_FILE_END_iprp_ammocost", 15);
|
||||
SetPRCSwitch("PRC_FILE_END_iprp_ammotype", 2);
|
||||
SetPRCSwitch("PRC_FILE_END_iprp_amount", 4);
|
||||
SetPRCSwitch("PRC_FILE_END_iprp_aoe", 7);
|
||||
SetPRCSwitch("PRC_FILE_END_iprp_aoe", 8);
|
||||
SetPRCSwitch("PRC_FILE_END_iprp_arcspell", 19);
|
||||
SetPRCSwitch("PRC_FILE_END_iprp_base1", -1);
|
||||
SetPRCSwitch("PRC_FILE_END_iprp_bladecost", 5);
|
||||
@@ -423,15 +424,15 @@ void SetDefaultFileEnds()
|
||||
SetPRCSwitch("PRC_FILE_END_iprp_damvulcost", 7);
|
||||
SetPRCSwitch("PRC_FILE_END_iprp_decvalue1", 9);
|
||||
SetPRCSwitch("PRC_FILE_END_iprp_decvalue2", 9);
|
||||
SetPRCSwitch("PRC_FILE_END_iprp_feats", 24819);
|
||||
SetPRCSwitch("PRC_FILE_END_iprp_feats", 26999);
|
||||
SetPRCSwitch("PRC_FILE_END_iprp_immuncost", 7);
|
||||
SetPRCSwitch("PRC_FILE_END_iprp_immunity", 9);
|
||||
SetPRCSwitch("PRC_FILE_END_iprp_incvalue1", 9);
|
||||
SetPRCSwitch("PRC_FILE_END_iprp_incvalue2", 9);
|
||||
SetPRCSwitch("PRC_FILE_END_iprp_kitcost", 50);
|
||||
SetPRCSwitch("PRC_FILE_END_iprp_lightcost", 4);
|
||||
SetPRCSwitch("PRC_FILE_END_iprp_matcost", 77);
|
||||
SetPRCSwitch("PRC_FILE_END_iprp_material", 77);
|
||||
SetPRCSwitch("PRC_FILE_END_iprp_matcost", 145);
|
||||
SetPRCSwitch("PRC_FILE_END_iprp_material", 145);
|
||||
SetPRCSwitch("PRC_FILE_END_iprp_maxpp", 8);
|
||||
SetPRCSwitch("PRC_FILE_END_iprp_meleecost", 20);
|
||||
SetPRCSwitch("PRC_FILE_END_iprp_metamagic", 6);
|
||||
@@ -458,11 +459,11 @@ void SetDefaultFileEnds()
|
||||
SetPRCSwitch("PRC_FILE_END_iprp_soakcost", 50);
|
||||
SetPRCSwitch("PRC_FILE_END_iprp_speed_dec", 9);
|
||||
SetPRCSwitch("PRC_FILE_END_iprp_speed_enh", 9);
|
||||
SetPRCSwitch("PRC_FILE_END_iprp_spellcost", 243);
|
||||
SetPRCSwitch("PRC_FILE_END_iprp_spellcost", 298);
|
||||
SetPRCSwitch("PRC_FILE_END_iprp_spellcstr", 42);
|
||||
SetPRCSwitch("PRC_FILE_END_iprp_spelllvcost", 9);
|
||||
SetPRCSwitch("PRC_FILE_END_iprp_spelllvlimm", 9);
|
||||
SetPRCSwitch("PRC_FILE_END_iprp_spells", 1456);
|
||||
SetPRCSwitch("PRC_FILE_END_iprp_spells", 1552);
|
||||
SetPRCSwitch("PRC_FILE_END_iprp_spellshl", 7);
|
||||
SetPRCSwitch("PRC_FILE_END_iprp_srcost", 99);
|
||||
SetPRCSwitch("PRC_FILE_END_iprp_staminacost", -1);
|
||||
@@ -492,9 +493,9 @@ void SetDefaultFileEnds()
|
||||
SetPRCSwitch("PRC_FILE_END_itmwizwands", 38);
|
||||
SetPRCSwitch("PRC_FILE_END_keymap", 70);
|
||||
SetPRCSwitch("PRC_FILE_END_lightcolor", 32);
|
||||
SetPRCSwitch("PRC_FILE_END_loadhints", 88);
|
||||
SetPRCSwitch("PRC_FILE_END_loadhints", 101);
|
||||
SetPRCSwitch("PRC_FILE_END_loadscreens", 259);
|
||||
SetPRCSwitch("PRC_FILE_END_masterfeats", 113);
|
||||
SetPRCSwitch("PRC_FILE_END_masterfeats", 125);
|
||||
SetPRCSwitch("PRC_FILE_END_materialcomp", 200);
|
||||
SetPRCSwitch("PRC_FILE_END_metamagic", 6);
|
||||
SetPRCSwitch("PRC_FILE_END_namefilter", 3);
|
||||
@@ -866,6 +867,31 @@ void CreateSwitchNameArray()
|
||||
//if you add more switches, add them to this list
|
||||
array_set_string(oWP, "Switch_Name", array_get_size(oWP, "Switch_Name"), PRC_DEBUG);
|
||||
array_set_string(oWP, "Switch_Name", array_get_size(oWP, "Switch_Name"), PRC_COMBAT_DEBUG);
|
||||
|
||||
//craft
|
||||
array_set_string(oWP, "Switch_Name", array_get_size(oWP, "Switch_Name"), PRC_DISABLE_CRAFT);
|
||||
array_set_string(oWP, "Switch_Name", array_get_size(oWP, "Switch_Name"), PRC_CRAFT_TIMER_MULTIPLIER);
|
||||
array_set_string(oWP, "Switch_Name", array_get_size(oWP, "Switch_Name"), PRC_CRAFT_TIMER_MAX);
|
||||
array_set_string(oWP, "Switch_Name", array_get_size(oWP, "Switch_Name"), PRC_CRAFT_TIMER_MIN);
|
||||
array_set_string(oWP, "Switch_Name", array_get_size(oWP, "Switch_Name"), PRC_BREW_POTION_CASTER_LEVEL);
|
||||
array_set_string(oWP, "Switch_Name", array_get_size(oWP, "Switch_Name"), PRC_SCRIBE_SCROLL_CASTER_LEVEL);
|
||||
array_set_string(oWP, "Switch_Name", array_get_size(oWP, "Switch_Name"), PRC_CRAFT_WAND_CASTER_LEVEL);
|
||||
array_set_string(oWP, "Switch_Name", array_get_size(oWP, "Switch_Name"), PRC_CRAFT_ROD_CASTER_LEVEL);
|
||||
array_set_string(oWP, "Switch_Name", array_get_size(oWP, "Switch_Name"), PRC_CRAFT_STAFF_CASTER_LEVEL);
|
||||
array_set_string(oWP, "Switch_Name", array_get_size(oWP, "Switch_Name"), PRC_CRAFTING_BASE_ITEMS);
|
||||
array_set_string(oWP, "Switch_Name", array_get_size(oWP, "Switch_Name"), PRC_X2_BREWPOTION_MAXLEVEL);
|
||||
array_set_string(oWP, "Switch_Name", array_get_size(oWP, "Switch_Name"), PRC_X2_BREWPOTION_COSTMODIFIER);
|
||||
array_set_string(oWP, "Switch_Name", array_get_size(oWP, "Switch_Name"), PRC_X2_SCRIBESCROLL_COSTMODIFIER);
|
||||
array_set_string(oWP, "Switch_Name", array_get_size(oWP, "Switch_Name"), PRC_X2_CRAFTWAND_MAXLEVEL);
|
||||
array_set_string(oWP, "Switch_Name", array_get_size(oWP, "Switch_Name"), PRC_X2_CRAFTWAND_COSTMODIFIER);
|
||||
array_set_string(oWP, "Switch_Name", array_get_size(oWP, "Switch_Name"), PRC_X2_CREATEINFUSION_COSTMODIFIER);
|
||||
array_set_string(oWP, "Switch_Name", array_get_size(oWP, "Switch_Name"), PRC_CRAFTING_ARBITRARY);
|
||||
array_set_string(oWP, "Switch_Name", array_get_size(oWP, "Switch_Name"), PRC_CRAFTING_COST_SCALE);
|
||||
array_set_string(oWP, "Switch_Name", array_get_size(oWP, "Switch_Name"), PRC_CRAFTING_TIME_SCALE);
|
||||
array_set_string(oWP, "Switch_Name", array_get_size(oWP, "Switch_Name"), PRC_CREATE_INFUSION_CASTER_LEVEL);
|
||||
array_set_string(oWP, "Switch_Name", array_get_size(oWP, "Switch_Name"), PRC_CREATE_INFUSION_OPTIONAL_HERBS);
|
||||
array_set_string(oWP, "Switch_Name", array_get_size(oWP, "Switch_Name"), PRC_CRAFT_SCEPTER_CASTER_LEVEL);
|
||||
|
||||
array_set_string(oWP, "Switch_Name", array_get_size(oWP, "Switch_Name"), PRC_MATERIAL_COMPONENTS);
|
||||
array_set_string(oWP, "Switch_Name", array_get_size(oWP, "Switch_Name"), PRC_DISABLE_COMPONENTS_SHOP);
|
||||
array_set_string(oWP, "Switch_Name", array_get_size(oWP, "Switch_Name"), PRC_PNP_TRUESEEING);
|
||||
@@ -876,6 +902,8 @@ void CreateSwitchNameArray()
|
||||
array_set_string(oWP, "Switch_Name", array_get_size(oWP, "Switch_Name"), PRC_BIOWARE_HARM);
|
||||
array_set_string(oWP, "Switch_Name", array_get_size(oWP, "Switch_Name"), PRC_BIOWARE_NEUTRALIZE_POISON);
|
||||
array_set_string(oWP, "Switch_Name", array_get_size(oWP, "Switch_Name"), PRC_BIOWARE_REMOVE_DISEASE);
|
||||
array_set_string(oWP, "Switch_Name", array_get_size(oWP, "Switch_Name"), PRC_ALLOWED_TO_REMOVE_FRIENDLY_SPELLS);
|
||||
array_set_string(oWP, "Switch_Name", array_get_size(oWP, "Switch_Name"), PRC_ALLOWED_TO_SEE_HOSTILE_SPELLS);
|
||||
array_set_string(oWP, "Switch_Name", array_get_size(oWP, "Switch_Name"), PRC_BIO_UNLEARN);
|
||||
array_set_string(oWP, "Switch_Name", array_get_size(oWP, "Switch_Name"), PRC_UNLEARN_SPELL_MAXNR);
|
||||
array_set_string(oWP, "Switch_Name", array_get_size(oWP, "Switch_Name"), PRC_TIMESTOP_BIOWARE_DURATION);
|
||||
@@ -994,7 +1022,7 @@ void CreateSwitchNameArray()
|
||||
array_set_string(oWP, "Switch_Name", array_get_size(oWP, "Switch_Name"), PRC_USES_PER_WEAPON_POISON_COUNT);
|
||||
array_set_string(oWP, "Switch_Name", array_get_size(oWP, "Switch_Name"), PRC_USES_PER_WEAPON_POISON_DIE);
|
||||
array_set_string(oWP, "Switch_Name", array_get_size(oWP, "Switch_Name"), PRC_POISON_ALLOW_CLEAN_IN_EQUIP);
|
||||
array_set_string(oWP, "Switch_Name", array_get_size(oWP, "Switch_Name"), PRC_CRAFT_POISON_USE_INGREDIENST);
|
||||
array_set_string(oWP, "Switch_Name", array_get_size(oWP, "Switch_Name"), PRC_CRAFT_POISON_USE_INGREDIENTS);
|
||||
array_set_string(oWP, "Switch_Name", array_get_size(oWP, "Switch_Name"), PRC_PSI_ASTRAL_CONSTRUCT_USE_2DA);
|
||||
array_set_string(oWP, "Switch_Name", array_get_size(oWP, "Switch_Name"), PRC_PSI_ASTRAL_CONSTRUCT_DUR_MOD);
|
||||
array_set_string(oWP, "Switch_Name", array_get_size(oWP, "Switch_Name"), PRC_PNP_RAPID_METABOLISM);
|
||||
@@ -1058,31 +1086,31 @@ void CreateSwitchNameArray()
|
||||
array_set_string(oWP, "Switch_Name", array_get_size(oWP, "Switch_Name"), PRC_LETOSCRIPT_UNICORN_SQL);
|
||||
array_set_string(oWP, "Switch_Name", array_get_size(oWP, "Switch_Name"), PRC_LETOSCRIPT_GETNEWESTBIC);
|
||||
|
||||
//craft
|
||||
array_set_string(oWP, "Switch_Name", array_get_size(oWP, "Switch_Name"), PRC_DISABLE_CRAFT);
|
||||
array_set_string(oWP, "Switch_Name", array_get_size(oWP, "Switch_Name"), PRC_CRAFT_TIMER_MULTIPLIER);
|
||||
array_set_string(oWP, "Switch_Name", array_get_size(oWP, "Switch_Name"), PRC_CRAFT_TIMER_MAX);
|
||||
array_set_string(oWP, "Switch_Name", array_get_size(oWP, "Switch_Name"), PRC_CRAFT_TIMER_MIN);
|
||||
array_set_string(oWP, "Switch_Name", array_get_size(oWP, "Switch_Name"), PRC_BREW_POTION_CASTER_LEVEL);
|
||||
array_set_string(oWP, "Switch_Name", array_get_size(oWP, "Switch_Name"), PRC_SCRIBE_SCROLL_CASTER_LEVEL);
|
||||
array_set_string(oWP, "Switch_Name", array_get_size(oWP, "Switch_Name"), PRC_CRAFT_WAND_CASTER_LEVEL);
|
||||
array_set_string(oWP, "Switch_Name", array_get_size(oWP, "Switch_Name"), PRC_CRAFT_ROD_CASTER_LEVEL);
|
||||
array_set_string(oWP, "Switch_Name", array_get_size(oWP, "Switch_Name"), PRC_CRAFT_STAFF_CASTER_LEVEL);
|
||||
array_set_string(oWP, "Switch_Name", array_get_size(oWP, "Switch_Name"), PRC_CRAFTING_BASE_ITEMS);
|
||||
array_set_string(oWP, "Switch_Name", array_get_size(oWP, "Switch_Name"), PRC_X2_BREWPOTION_MAXLEVEL);
|
||||
array_set_string(oWP, "Switch_Name", array_get_size(oWP, "Switch_Name"), PRC_X2_BREWPOTION_COSTMODIFIER);
|
||||
array_set_string(oWP, "Switch_Name", array_get_size(oWP, "Switch_Name"), PRC_X2_SCRIBESCROLL_COSTMODIFIER);
|
||||
array_set_string(oWP, "Switch_Name", array_get_size(oWP, "Switch_Name"), PRC_X2_CRAFTWAND_MAXLEVEL);
|
||||
array_set_string(oWP, "Switch_Name", array_get_size(oWP, "Switch_Name"), PRC_X2_CRAFTWAND_COSTMODIFIER);
|
||||
array_set_string(oWP, "Switch_Name", array_get_size(oWP, "Switch_Name"), PRC_X2_CREATEINFUSION_COSTMODIFIER);
|
||||
array_set_string(oWP, "Switch_Name", array_get_size(oWP, "Switch_Name"), PRC_CRAFTING_ARBITRARY);
|
||||
array_set_string(oWP, "Switch_Name", array_get_size(oWP, "Switch_Name"), PRC_CRAFTING_COST_SCALE);
|
||||
array_set_string(oWP, "Switch_Name", array_get_size(oWP, "Switch_Name"), PRC_CRAFTING_TIME_SCALE);
|
||||
array_set_string(oWP, "Switch_Name", array_get_size(oWP, "Switch_Name"), PRC_CREATE_INFUSION_CASTER_LEVEL);
|
||||
|
||||
//spells
|
||||
|
||||
//shifter
|
||||
array_set_string(oWP, "Switch_Name", array_get_size(oWP, "Switch_Name"), PRC_WEREWOLF_HYBRID_USE_SHIFTER_SHAPECHANGE);
|
||||
array_set_string(oWP, "Switch_Name", array_get_size(oWP, "Switch_Name"), PRC_WILDSHAPE_ALLOWS_ARMS_SLOT);
|
||||
array_set_string(oWP, "Switch_Name", array_get_size(oWP, "Switch_Name"), PNP_SHFT_USECR);
|
||||
array_set_string(oWP, "Switch_Name", array_get_size(oWP, "Switch_Name"), PNP_SHFT_S_HUGE);
|
||||
array_set_string(oWP, "Switch_Name", array_get_size(oWP, "Switch_Name"), PNP_SHFT_S_LARGE);
|
||||
array_set_string(oWP, "Switch_Name", array_get_size(oWP, "Switch_Name"), PNP_SHFT_S_MEDIUM);
|
||||
array_set_string(oWP, "Switch_Name", array_get_size(oWP, "Switch_Name"), PNP_SHFT_S_SMALL);
|
||||
array_set_string(oWP, "Switch_Name", array_get_size(oWP, "Switch_Name"), PNP_SHFT_S_TINY);
|
||||
array_set_string(oWP, "Switch_Name", array_get_size(oWP, "Switch_Name"), PNP_SHFT_F_OUTSIDER);
|
||||
array_set_string(oWP, "Switch_Name", array_get_size(oWP, "Switch_Name"), PNP_SHFT_F_ELEMENTAL);
|
||||
array_set_string(oWP, "Switch_Name", array_get_size(oWP, "Switch_Name"), PNP_SHFT_F_CONSTRUCT);
|
||||
array_set_string(oWP, "Switch_Name", array_get_size(oWP, "Switch_Name"), PNP_SHFT_F_UNDEAD);
|
||||
array_set_string(oWP, "Switch_Name", array_get_size(oWP, "Switch_Name"), PNP_SHFT_F_DRAGON);
|
||||
array_set_string(oWP, "Switch_Name", array_get_size(oWP, "Switch_Name"), PNP_SHFT_F_ABERRATION);
|
||||
array_set_string(oWP, "Switch_Name", array_get_size(oWP, "Switch_Name"), PNP_SHFT_F_OOZE);
|
||||
array_set_string(oWP, "Switch_Name", array_get_size(oWP, "Switch_Name"), PNP_SHFT_F_MAGICALBEAST);
|
||||
array_set_string(oWP, "Switch_Name", array_get_size(oWP, "Switch_Name"), PNP_SHFT_F_GIANT);
|
||||
array_set_string(oWP, "Switch_Name", array_get_size(oWP, "Switch_Name"), PNP_SHFT_F_VERMIN);
|
||||
array_set_string(oWP, "Switch_Name", array_get_size(oWP, "Switch_Name"), PNP_SHFT_F_BEAST);
|
||||
array_set_string(oWP, "Switch_Name", array_get_size(oWP, "Switch_Name"), PNP_SHFT_F_ANIMAL);
|
||||
array_set_string(oWP, "Switch_Name", array_get_size(oWP, "Switch_Name"), PNP_SHFT_F_MONSTROUSHUMANOID);
|
||||
array_set_string(oWP, "Switch_Name", array_get_size(oWP, "Switch_Name"), PNP_SHFT_F_HUMANOID);
|
||||
|
||||
//general
|
||||
|
||||
|
||||
Reference in New Issue
Block a user