mirror of
https://github.com/AquariaOSE/Aquaria.git
synced 2025-02-13 16:16:08 +00:00
add beam_setDamageType() Lua function
This commit is contained in:
parent
36247593d4
commit
f7740eb6e8
1 changed files with 11 additions and 0 deletions
|
@ -3746,6 +3746,16 @@ luaFunc(beam_setDamage)
|
||||||
luaReturnNil();
|
luaReturnNil();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
luaFunc(beam_setDamageType)
|
||||||
|
{
|
||||||
|
Beam *b = beam(L);
|
||||||
|
if (b)
|
||||||
|
{
|
||||||
|
b->damageData.damageType = (DamageType)lua_tointeger(L, 2);
|
||||||
|
}
|
||||||
|
luaReturnNil();
|
||||||
|
}
|
||||||
|
|
||||||
luaFunc(beam_setBeamWidth)
|
luaFunc(beam_setBeamWidth)
|
||||||
{
|
{
|
||||||
Beam *b = beam(L);
|
Beam *b = beam(L);
|
||||||
|
@ -7950,6 +7960,7 @@ static const struct {
|
||||||
luaRegister(beam_setDamage),
|
luaRegister(beam_setDamage),
|
||||||
luaRegister(beam_setBeamWidth),
|
luaRegister(beam_setBeamWidth),
|
||||||
luaRegister(beam_setFirer),
|
luaRegister(beam_setFirer),
|
||||||
|
luaRegister(beam_setDamageType),
|
||||||
|
|
||||||
luaRegister(getStringBank),
|
luaRegister(getStringBank),
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue