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:
parent
188469102b
commit
4433237f3a
3 changed files with 86 additions and 5 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue