Spawner & Overhaul pass.

Added: Reforged, Undead Redux 2, Goblin, Ogre & Orc override content.  Updated appearance & placeables 2DA files to EE.  Added NPC spawners for Goldeyes, Paladins, Town Guards.  Added functionality to the mob randomizer.
This commit is contained in:
Jaysyn904
2021-09-04 14:36:27 -04:00
parent d0d52fb1d0
commit 732d63e1f3
5027 changed files with 435172 additions and 28773 deletions

View File

@@ -33,19 +33,22 @@ object oNPC = OBJECT_SELF;
// Chance of guard type creatures dropping gear onDeath.
if ((GetResRef(oNPC) == "npc_baleasgrd001") ||
(GetResRef(oNPC) == "npc_goldeye001") ||
(GetResRef(oNPC) == "npc_baleasgrd003") ||
(GetResRef(oNPC) == "npc_wau_pal001") ||
(GetResRef(oNPC) == "npc_baleasgrd004") ||
(GetResRef(oNPC) == "npc_baleasgrd005"))
{
object oArmor = GetItemInSlot(INVENTORY_SLOT_CHEST, oNPC);
object oWeapon = GetItemInSlot(INVENTORY_SLOT_RIGHTHAND, oNPC);
object oShield = GetItemInSlot(INVENTORY_SLOT_LEFTHAND, oNPC);
// Give a 3% chance to drop armor &/or equipped weapon
int bDroppableA = d100() > 97;
int bDroppableW = d100() > 97;
// Give a 1% chance to drop armor &/or equipped weapon
int bDroppableA = d100() > 99;
int bDroppableW = d100() > 99;
int bDroppableS = d100() > 99;
SetDroppableFlag(oArmor, bDroppableA);
SetDroppableFlag(oWeapon, bDroppableW);
SetDroppableFlag(oShield, bDroppableS);
}