lua_gettable -> lua_getfield
[sdlbotor.git] / objects.lua
blob8677630f48ea01dbaa22a426743c01cd745d114e
1 objects = { }
3 objects["acid"] =
5 tile = 0,
6 nuse = "Once",
7 Activation = function()
8 pos = player.getPosition();
9 map.acid( pos.x, pos.y );
10 end
13 objects["blueman"] =
15 tile = 1,
16 nuse = "Drop",
17 Pickup = function()
18 player.setImmune( 1 );
19 end,
20 Drop = function()
21 player.setImmune( 0 );
22 end