[1.0] help - how do I call phyiscal damage increase?

All development conversation and discussion takes place here

Moderator: Moderator

Post Reply
Message
Author
jenx
Sher'Tul Godslayer
Posts: 2263
Joined: Mon Feb 14, 2011 11:16 pm

[1.0] help - how do I call phyiscal damage increase?

#1 Post by jenx »

Can I simply do this?

Code: Select all

local dam_inc_physical = self.inc_damage["PHYSICAL"]
If not, how do I retrieve the physical damage increase?

And do I need to check first if there even is such a value, when it equals 0?
MADNESS rocks

lukep
Sher'Tul Godslayer
Posts: 1712
Joined: Mon Mar 14, 2011 10:32 am
Location: Canada

Re: [1.0] help - how do I call phyiscal damage increase?

#2 Post by lukep »

jenx wrote:And do I need to check first if there even is such a value, when it equals 0?
You can just add "or 0" at the end for that. I believe that that's what's done in some other places.
Some of my tools for helping make talents:
Melee Talent Creator
Annotated Talent Code (incomplete)

jenx
Sher'Tul Godslayer
Posts: 2263
Joined: Mon Feb 14, 2011 11:16 pm

Re: [1.0] help - how do I call phyiscal damage increase?

#3 Post by jenx »

I"ve tried that, but the line I proposed returns zero, even when physical damage increase is 10%. So I must have the notation wrong.

Any help?
MADNESS rocks

jenx
Sher'Tul Godslayer
Posts: 2263
Joined: Mon Feb 14, 2011 11:16 pm

Re: [1.0] help - how do I call phyiscal damage increase?

#4 Post by jenx »

I"ve found this notation in the code, which I think might work:

Code: Select all

self.inc_damage[DamageType.PHYSICAL]
MADNESS rocks

jenx
Sher'Tul Godslayer
Posts: 2263
Joined: Mon Feb 14, 2011 11:16 pm

Re: [1.0] help - how do I call phyiscal damage increase?

#5 Post by jenx »

it does!
MADNESS rocks

Post Reply