Piotr
Member
To run some tests, I wanted to bring back the old (pre-AOS I believe) weapon poisoning system and I've encountered these:
Poisoning.cs
BaseWeapon.cs
I guess toying with these could get me started, but where's the script that allows weapons without Infectious Strike to apply the poison? I believe it was based on a chance and I'd like to take a look, but cannot find it.
Any help would be great.
Thanks!
Poisoning.cs
C#:
protected override void OnTarget(Mobile from, object targeted)
{
if (this.m_Potion.Deleted)
return;
bool startTimer = false;
if (targeted is Food || targeted is FukiyaDarts || targeted is Shuriken)
{
startTimer = true;
}
else if (targeted is BaseWeapon)
{
BaseWeapon weapon = (BaseWeapon)targeted;
if (Core.AOS)
{
startTimer = (weapon.PrimaryAbility == WeaponAbility.InfectiousStrike || weapon.SecondaryAbility == WeaponAbility.InfectiousStrike);
}
else if (weapon.Layer == Layer.OneHanded)
{
// Only Bladed or Piercing weapon can be poisoned
startTimer = (weapon.Type == WeaponType.Slashing || weapon.Type == WeaponType.Piercing);
}
}
BaseWeapon.cs
C#:
public bool CanShowPoisonCharges()
{
if (PrimaryAbility == WeaponAbility.InfectiousStrike || SecondaryAbility == WeaponAbility.InfectiousStrike)
return true;
return RootParent is Mobile && SkillMasterySpell.HasSpell((Mobile)RootParent, typeof(InjectedStrikeSpell));
}
I guess toying with these could get me started, but where's the script that allows weapons without Infectious Strike to apply the poison? I believe it was based on a chance and I'd like to take a look, but cannot find it.
Any help would be great.
Thanks!