Pawcio6
Member
- Joined
- Sep 26, 2009
- Messages
- 143
- Solutions
- 4
- Reaction score
- 15
Hi
I want to when you turn fightmode to defense this will multiple taking less dmg by armor too, and when 2 monsters attacks you first dmg is less but second is normal.The second thing is to count defense from weapon and shield becouse it work only on 1 item.Last one is change defense to work when taking all physical dmg not only melee ex. when monster have
and
I want to when you turn fightmode to defense this will multiple taking less dmg by armor too, and when 2 monsters attacks you first dmg is less but second is normal.The second thing is to count defense from weapon and shield becouse it work only on 1 item.Last one is change defense to work when taking all physical dmg not only melee ex. when monster have
defense dont work. Sorry for my poor english but i hope some1 undestrand 0.3.6 tfs i found some in sources<attacks><attack name="physical" interval="1000" chance="1000" range="7" min="-300" max="-500">
<attribute key="shootEffect" value="SMALLHOLY"/>
triedcase FIGHTMODE_DEFENSE:
{
if((OTSYS_TIME() - lastAttack) < const_cast<Player*>(this)->getAttackSpeed()) //attacking will cause us to get into normal defense
return 1.0f;
return 2.0f;
}
but it doesnt helpcase FIGHTMODE_DEFENSE:
return 2.0f;
and
some1 help ?return ((int32_t)std::ceil(((float)(defenseSkill * (defenseValue * 0.015)) + (defenseValue * 0.1)) * defenseFactor));