File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed
Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -28,6 +28,9 @@ class ScriptedThing : public Thing
2828 static int HasItem (lua_State* L);
2929 static int EquipItem (lua_State* L);
3030
31+ static int GetStat (lua_State* L);
32+ static int SetStat (lua_State* L);
33+
3134 static int GetPlayer (lua_State* L);
3235
3336 static int GainXP (lua_State* L);
Original file line number Diff line number Diff line change @@ -431,7 +431,7 @@ int ScriptedThing::DoAttack(lua_State* L)
431431 return 0 ;
432432}
433433
434- int GetStat (lua_State* L)
434+ int ScriptedThing:: GetStat (lua_State* L)
435435{
436436 Thing* ptrThing = (Thing*)lua_touserdata (L, 1 );
437437 std::string s_n (lua_tostring (L, 2 ));
@@ -443,7 +443,7 @@ int GetStat(lua_State* L)
443443 return 1 ;
444444}
445445
446- int SetStat (lua_State* L)
446+ int ScriptedThing:: SetStat (lua_State* L)
447447{
448448 assert (lua_isnumber (L, 3 ));
449449
You can’t perform that action at this time.
0 commit comments