Item durability and +Damage
UltraFaceguy opened this issue ยท 21 comments
Dev Build #109
- Items spawned have ~1 durability when Damage is set to false
- Weapons with +# Damage cause the additional damage to inflict the wielder if they should be hit while holding said weapon. Standby for armor details.
EDIT: Armor works flawlessly, so far as I can tell. The issue is only with currently held weapons with + or - Damage
One simple way we could fix it is so that positive values always affect the person who was struck and negative values always affect the person doing the striking.
So if you have -3 damage on your armor and -3 damage on your weapon, when you strike it would be -6 damage, and if you had +2 on your armor and +4 on your weapon you would always do +6?
That could work very well, sounds great! I don't think the Damage stat should ever effect the rate at which the player with the enchants TAKES damage, but only count towards how much they deal, for better or worse. Perhaps add a new enchant to Lore.txt called Defense that does the inverse, only effects incoming damage?
Well, once @deathmarine and I hash out a standard way of handling effects that can work with damage and defense (it may change to attack and defense in the future), then there will be a dev build with that included.
Attack sounds fine, though it would probably mess up some items already in place XD
Oh well, we haven't had it for long, they can just find some new items haha!
I agree. When setting up lore enhancements in the beginning not a lot of thought was put into how each enhancement is to affect every entity and environment. It was moreless built off the ideas we both have with each effect like damage being global with armor enhancing the damage item or durability/defense affecting weapons in hand. Right now i think the best idea is to differentiate between strike enhancements and defense enhancements.
Try the newest development build (#110) and see if that fixes it.
Less frequent, but the additional damage does go into effect sometimes on the wielder. Items are still at almost no durability when created.
Interesting. Normal damage ticks such as fire or enemy strike do not activate this effect, but firing a bow into the air, switching to the +Damage item and getting hit with the arrow does. Perhaps it IS fixed, and projectile code is in place to calculate the damage bonus on the currently held item of the shooter when the hit damage is calculated?
Your last post is right. There's no way to check what bow an arrow is fired from in order to get the effect - the only way to even approximate it is to check the item they have in their hand when it hits.
I see, so +Damage on equipped bow is working then, more or less. Does +Damage on armor effect bows?
I think this resolves the +Damage on weapons then.
The code I pushed earlier makes it so only your weapon affects your damage and such when attacking. Armor has nothing to do with attacking. Armor is only considered when you're defending.
I see, so + Damage on armor will make the user take more damage then, correct?
If so, I'd like to request that some way be found for + and - Damage to effect your damage output, even when on armor. It makes the whole thing less confusing, and because it applies to projectiles, it synergizes well with plugins such as MagicSpells, allowing for an otherwise impossible increase in damage for the fairly under-powered against diamond armor mages, who much rely on spells and books that cannot be upgraded. This would gives them something to fight for as well.
I've played more than a few games where armor sockets can increase the attack power of the player, I think that having Damage on armor effect damage output is the way to go. I hope this request isn't too much, or you have to make a unique exception for this, but in my opinion it is a far better alternative.
What do you want me to focus on testing in #116? If you don't specify something I'll just go through everything XD
If you want to report things to us more quickly and more "as you find them," you can usually find one of both of us on the MobBountyReloaded IRC channel.