mirror of
https://github.com/AquariaOSE/Aquaria.git
synced 2025-08-07 06:40:22 +00:00
Deprecate entity_incrTargetLeaches() & entity_decrTargetLeaches() properly
This commit is contained in:
parent
3b759294df
commit
fb3edf413d
2 changed files with 21 additions and 2 deletions
|
@ -5569,6 +5569,22 @@ luaFunc(avatar_decrLeaches)
|
||||||
luaReturnNil();
|
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)
|
luaFunc(entity_rotateToVel)
|
||||||
{
|
{
|
||||||
Entity *e = entity(L);
|
Entity *e = entity(L);
|
||||||
|
@ -10630,8 +10646,8 @@ static const struct {
|
||||||
|
|
||||||
// -- deprecated/compatibility related functions below here --
|
// -- deprecated/compatibility related functions below here --
|
||||||
|
|
||||||
{"entity_incrTargetLeaches", l_avatar_incrLeaches},
|
luaRegister(entity_incrTargetLeaches),
|
||||||
{"entity_decrTargetLeaches", l_avatar_decrLeaches},
|
luaRegister(entity_decrTargetLeaches),
|
||||||
{"entity_soundFreq", l_entity_sound},
|
{"entity_soundFreq", l_entity_sound},
|
||||||
{"entity_interpolateTo", l_entity_setPosition},
|
{"entity_interpolateTo", l_entity_setPosition},
|
||||||
{"entity_isFlippedHorizontal", l_entity_isfh},
|
{"entity_isFlippedHorizontal", l_entity_isfh},
|
||||||
|
|
|
@ -14,3 +14,6 @@ quit = nil -- mods should not do this ever
|
||||||
doModSelect = nil
|
doModSelect = nil
|
||||||
doLoadMenu = nil
|
doLoadMenu = nil
|
||||||
appendUserDataPath = nil
|
appendUserDataPath = nil
|
||||||
|
entity_incrTargetLeaches = nil -- use avatar_incrLeaches() instead
|
||||||
|
entity_decrTargetLeaches = nil -- use avatar_decrLeaches() instead
|
||||||
|
entity_soundFreq = nil
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue