The Cathedral of Attnam

Changes

Jump to navigation Jump to search
486 bytes added ,  02:06, 1 September 2014
Created page with "{{code}} IsPlant is a definition given by a character's entry inside char.dat. If a character is a plant, it takes 1.5x more damage from anything tagged IsGoodWithPlants - curren..."
{{code}}
IsPlant is a definition given by a character's entry inside char.dat. If a character is a plant, it takes 1.5x more damage from anything tagged IsGoodWithPlants - currently only scythes and sickles.

IsPlant currently has no other applications.
<pre>
double arm::GetTypeDamage(ccharacter* Enemy) const

{
if(!GetWielded() || !GetWielded()->IsGoodWithPlants() || !Enemy->IsPlant())
return Damage;
else
return Damage * 1.5;
}
</pre>
[[Category:Game Mechanics]]
Moderator
952

edits

Navigation menu