Difference between revisions of "Roundness"

From IvanWiki
Jump to navigation Jump to search
m
m
 
(4 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
{{spoiler}}
 
{{spoiler}}
 +
{{code}}
  
 
Roundness is an item value used to determine its capacity to block incoming attacks.<br>
 
Roundness is an item value used to determine its capacity to block incoming attacks.<br>
In general the higher an item's roundness and size is, the better it is at blocking attacks. If the item is a [[Shields|shield]] it gains an additional bonus.
+
In general the higher an item's roundness and size is, the better it is at blocking attacks. If the item is a [[Shields|shield]] its block modifier is doubled.
  
 
<pre>
 
<pre>
Line 13: Line 14:
 
}
 
}
 
</pre>
 
</pre>
 +
 +
[[Category:Game Mechanics]]

Latest revision as of 22:03, 23 September 2014

Spoiler Warning: This page contains spoilers which may affect your IVAN experience negatively

Coding: This article contains code which is for experienced users only, and may reveal game secrets


Roundness is an item value used to determine its capacity to block incoming attacks.
In general the higher an item's roundness and size is, the better it is at blocking attacks. If the item is a shield its block modifier is doubled.

long item::GetBlockModifier() const
{
  if(!IsShield(0))
    return GetSize() * GetRoundness() << 1;
  else
    return GetSize() * GetRoundness() << 2;
}