Jump to content

Elin:Code Analysis/Combat: Difference between revisions

m
→‎Weapon Hit Mechanics: Changed erroneous = to +
mNo edit summary
m (→‎Weapon Hit Mechanics: Changed erroneous = to +)
Line 139: Line 139:


"Curve" refers to the game's method for adding a sliding curve to the effectiveness of skill values
"Curve" refers to the game's method for adding a sliding curve to the effectiveness of skill values
  <nowiki>
   
CURVE( input, start, step, rate)
CURVE( input, start, step, rate)
if input <= start
if input <= start
return input
return input
 
repeat x10
repeat x10
{
{
num = start + repeatindex * step
  num = start + repeatindex * step
if input <= num
if input <= num
return input
return input
else
else
input = num = (input - num) * rate /100
input = num + (input - num) * rate /100
}
}
return input</nowiki>
return input


First the system evaluates the attacker's 'TO HIT' and the target's 'EVASION'
First the system evaluates the attacker's 'TO HIT' and the target's 'EVASION'
18

edits