Difference between revisions of "Plant"

From IvanWiki
Jump to navigation Jump to search
(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...")
 
 
Line 13: Line 13:
 
}  
 
}  
 
</pre>
 
</pre>
 +
 +
== List of plants ==
 +
*[[Carnivorous plant]]s
 +
*[[Mushroom]]s
 +
 
[[Category:Game Mechanics]]
 
[[Category:Game Mechanics]]

Latest revision as of 01:16, 23 July 2015

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

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.

double arm::GetTypeDamage(ccharacter* Enemy) const 

{ 
  if(!GetWielded() || !GetWielded()->IsGoodWithPlants() || !Enemy->IsPlant()) 
    return Damage; 
  else 
    return Damage * 1.5; 
} 

List of plants