1
0
Fork 0
mirror of https://github.com/AquariaOSE/Aquaria.git synced 2025-02-18 02:34:57 +00:00

Deprecate entity_incrTargetLeaches() & entity_decrTargetLeaches() properly

This commit is contained in:
fgenesis 2017-01-21 03:33:04 +01:00
parent 3b759294df
commit fb3edf413d
2 changed files with 21 additions and 2 deletions

View file

@ -5569,6 +5569,22 @@ luaFunc(avatar_decrLeaches)
luaReturnNil();
}
luaFunc(entity_incrTargetLeaches) // DEPRECATED
{
Entity *e = entity(L);
if (e && e->getTargetEntity() == dsq->game->avatar)
dsq->game->avatar->leaches++;
luaReturnNil();
}
luaFunc(entity_decrTargetLeaches) // DEPRECATED
{
Entity *e = entity(L);
if (e && e->getTargetEntity() == dsq->game->avatar)
dsq->game->avatar->leaches--;
luaReturnNil();
}
luaFunc(entity_rotateToVel)
{
Entity *e = entity(L);
@ -10630,8 +10646,8 @@ static const struct {
// -- deprecated/compatibility related functions below here --
{"entity_incrTargetLeaches", l_avatar_incrLeaches},
{"entity_decrTargetLeaches", l_avatar_decrLeaches},
luaRegister(entity_incrTargetLeaches),
luaRegister(entity_decrTargetLeaches),
{"entity_soundFreq", l_entity_sound},
{"entity_interpolateTo", l_entity_setPosition},
{"entity_isFlippedHorizontal", l_entity_isfh},

View file

@ -14,3 +14,6 @@ quit = nil -- mods should not do this ever
doModSelect = nil
doLoadMenu = nil
appendUserDataPath = nil
entity_incrTargetLeaches = nil -- use avatar_incrLeaches() instead
entity_decrTargetLeaches = nil -- use avatar_decrLeaches() instead
entity_soundFreq = nil