Updated Release Archive

Updated Release Archive.  Fixed Mage-killer prereqs.  Removed old LETO & ConvoCC related files.  Added organized spell scroll store.  Fixed Gloura spellbook. Various TLK fixes.  Reorganized Repo.  Removed invalid user folders. Added DocGen back in.
This commit is contained in:
Jaysyn904
2023-08-22 10:00:21 -04:00
parent 3acda03f30
commit 5914ed2ab5
22853 changed files with 57524 additions and 47307 deletions

View File

@@ -0,0 +1,39 @@
#include "prc_alterations"
#include "inc_utility"
#include "prc_feat_const"
void main()
{
object oPC = OBJECT_SELF;
object oWeap ;
int iEquip = GetLocalInt(oPC, "ONEQUIP");
int iLevel = (iEquip == 1) ? 0:1;
SetCompositeAttackBonus(oPC, "WeoponMasteryBow", 0);
SetCompositeAttackBonus(oPC, "WeoponMasteryXBow", 0);
SetCompositeAttackBonus(oPC, "WeoponMasteryShur", 0);
if (iEquip ==1)
oWeap = GetItemLastUnequipped();
else
oWeap = GetItemInSlot(INVENTORY_SLOT_RIGHTHAND,oPC);
int iType = GetBaseItemType(oWeap);
switch (iType)
{
case BASE_ITEM_LONGBOW:
case BASE_ITEM_SHORTBOW:
if ( GetHasFeat(FEAT_BOWMASTERY, oPC)) SetCompositeAttackBonus(oPC, "WeoponMasteryBow", iLevel);
break;
case BASE_ITEM_LIGHTCROSSBOW:
case BASE_ITEM_HEAVYCROSSBOW:
if ( GetHasFeat(FEAT_XBOWMASTERY, oPC)) SetCompositeAttackBonus(oPC, "WeoponMasteryXBow", iLevel);
break;
case BASE_ITEM_SHURIKEN:
if ( GetHasFeat(FEAT_SHURIKENMASTERY, oPC)) SetCompositeAttackBonus(oPC, "WeoponMasteryShur", iLevel);
break;
}
}