Modified loot.
Gave all items worn by enemies a chance to drop. Drastically reduced gold awards.
This commit is contained in:
parent
b13fd6ad4e
commit
11df331172
1
.gitignore
vendored
1
.gitignore
vendored
@ -2,3 +2,4 @@
|
||||
_haks/output/poa_dev.md5
|
||||
Compiler - 35spells.bat
|
||||
*.md5
|
||||
_module/poa.mod
|
||||
|
Binary file not shown.
Binary file not shown.
@ -11,7 +11,65 @@
|
||||
//:: Created On: 12/22/2002
|
||||
//:://////////////////////////////////////////////////
|
||||
|
||||
void RndDropGear(object oNPC);
|
||||
|
||||
void RndDropGear(object oNPC)
|
||||
{
|
||||
//:: Declare major variables
|
||||
object oArmor = GetItemInSlot(INVENTORY_SLOT_CHEST, oNPC);
|
||||
object oWeapon = GetItemInSlot(INVENTORY_SLOT_RIGHTHAND, oNPC);
|
||||
object oShield = GetItemInSlot(INVENTORY_SLOT_LEFTHAND, oNPC);
|
||||
object oHelm = GetItemInSlot(INVENTORY_SLOT_HEAD, oNPC);
|
||||
object oNecklace = GetItemInSlot(INVENTORY_SLOT_NECK, oNPC);
|
||||
object oArms = GetItemInSlot(INVENTORY_SLOT_ARMS, oNPC);
|
||||
object oArrows = GetItemInSlot(INVENTORY_SLOT_ARROWS, oNPC);
|
||||
object oBelt = GetItemInSlot(INVENTORY_SLOT_BELT, oNPC);
|
||||
object oBolts = GetItemInSlot(INVENTORY_SLOT_BOLTS, oNPC);
|
||||
object oBoots = GetItemInSlot(INVENTORY_SLOT_BOOTS, oNPC);
|
||||
object oBullets = GetItemInSlot(INVENTORY_SLOT_BULLETS, oNPC);
|
||||
object oCloak = GetItemInSlot(INVENTORY_SLOT_CLOAK, oNPC);
|
||||
object oLeftRing = GetItemInSlot(INVENTORY_SLOT_LEFTRING, oNPC);
|
||||
object oRightRing = GetItemInSlot(INVENTORY_SLOT_RIGHTRING, oNPC);
|
||||
|
||||
//:: Give a 3% chance to drop each type of equipment
|
||||
int bDropArmor = d100() > 97;
|
||||
int bDropWeapon = d100() > 97;
|
||||
int bDropShield = d100() > 97;
|
||||
int bDropHelm = d100() > 97;
|
||||
int bDropNecklace = d100() > 97;
|
||||
int bDropArms = d100() > 97;
|
||||
int bDropArrows = d100() > 97;
|
||||
int bDropBelt = d100() > 97;
|
||||
int bDropBolts = d100() > 97;
|
||||
int bDropBoots = d100() > 97;
|
||||
int bDropBullets = d100() > 97;
|
||||
int bDropCloak = d100() > 97;
|
||||
int bDropLeftRing = d100() > 97;
|
||||
int bDropRightRing = d100() > 97;
|
||||
|
||||
//:: Set Droppable Flag as determined above.
|
||||
SetDroppableFlag(oArmor, bDropArmor);
|
||||
SetDroppableFlag(oWeapon, bDropWeapon);
|
||||
SetDroppableFlag(oShield, bDropShield);
|
||||
SetDroppableFlag(oHelm, bDropHelm);
|
||||
SetDroppableFlag(oNecklace, bDropNecklace);
|
||||
SetDroppableFlag(oArms, bDropArms);
|
||||
SetDroppableFlag(oArrows, bDropArrows);
|
||||
SetDroppableFlag(oBelt, bDropBelt);
|
||||
SetDroppableFlag(oBolts, bDropBolts);
|
||||
SetDroppableFlag(oBoots, bDropBoots);
|
||||
SetDroppableFlag(oBullets, bDropBullets);
|
||||
SetDroppableFlag(oCloak, bDropCloak);
|
||||
SetDroppableFlag(oLeftRing, bDropLeftRing);
|
||||
SetDroppableFlag(oRightRing, bDropRightRing);
|
||||
|
||||
}
|
||||
|
||||
|
||||
void main()
|
||||
{
|
||||
ExecuteScript("sf_xp", OBJECT_SELF);
|
||||
|
||||
RndDropGear(OBJECT_SELF);
|
||||
|
||||
}
|
@ -26,7 +26,7 @@ const int REWARD_GP = TRUE;
|
||||
// Default is 1.0 (1.0 means equal to the amount of XP given, 2.0 would mean
|
||||
// double the amount of gold and 0.5 would mean half).
|
||||
// It basically multiplies the XP reward (GP_REWARD_MULTIPLIER x XP = GP Reward)
|
||||
const float GP_REWARD_MULTIPLIER = 16.0;
|
||||
const float GP_REWARD_MULTIPLIER = 0.5;
|
||||
|
||||
// Bonus XP/GP reward for the dealing the killing blow to the creature
|
||||
// Default is 0.1 = 10%
|
||||
|
BIN
_module/poa.mod
BIN
_module/poa.mod
Binary file not shown.
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user