1
0
Fork 0
mirror of https://github.com/AquariaOSE/Aquaria.git synced 2025-08-10 16:19:59 +00:00

Add more script functions + little fix in entity poisoning

shot_getEffectTime()
shot_isIgnoreShield()
shot_getFirer()
shot_setTarget()
shot_getTarget()
getLastCollideTileType()
collideCircleWithGrid()
entity_getMaxHealth()
entity_setPoison()
entity_getPoison()
OT_* constants
This commit is contained in:
fgenesis 2013-02-04 15:16:57 +01:00
parent 188469102b
commit 4433237f3a
3 changed files with 86 additions and 5 deletions

View file

@ -1646,7 +1646,8 @@ void Entity::setPoison(float m, float t)
{
poison = m;
poisonTimer.start(t);
poisonBitTimer.start(dsq->continuity.poisonBitTime);
if (poison)
poisonBitTimer.start(dsq->continuity.poisonBitTime);
}
void Entity::onUpdate(float dt)