|
-
September 12th, 2008, 05:36 PM
#1
How do I??
C# here
StatisticsValue is a struct of values (floats)
class Spell is defining some values that StaticsValue holds, the spell may have 1 or more values but not all of the values StatisticsValue holds.
StatisticsValue statEffect = spell.TargetEffectValue;
how do I multiply each of the values in the Spell by this value?
float ARCmodifier
something like
i = 0;
int total = spell.TargetEffectValue.count;
for (i = 1; i < total; i++)
{
statEffect * ARCmodifier;
}
I am doing it wrong - should I use a foreach??
I am still learning
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|