add marescore for v1 battle support
This commit is contained in:
parent
833df135c7
commit
86eb4df0c5
1 changed files with 4 additions and 0 deletions
|
|
@ -376,6 +376,8 @@ static int player_get(lua_State *L)
|
|||
lua_pushinteger(L, plr->glanceDir);
|
||||
else if (fastcmp(field,"roundscore"))
|
||||
plr->roundscore = luaL_checkinteger(L, 3);
|
||||
else if (fastcmp(field,"marescore"))
|
||||
plr->roundscore = luaL_checkinteger(L, 3);
|
||||
else if (fastcmp(field,"emeralds"))
|
||||
lua_pushinteger(L, plr->emeralds);
|
||||
else if (fastcmp(field,"bumpers"))
|
||||
|
|
@ -744,6 +746,8 @@ static int player_set(lua_State *L)
|
|||
plr->glanceDir = luaL_checkinteger(L, 3);
|
||||
else if (fastcmp(field,"roundscore"))
|
||||
lua_pushinteger(L, plr->roundscore);
|
||||
else if (fastcmp(field,"marescore"))
|
||||
lua_pushinteger(L, plr->roundscore);
|
||||
else if (fastcmp(field,"emeralds"))
|
||||
plr->emeralds = luaL_checkinteger(L, 3);
|
||||
else if (fastcmp(field,"bumpers"))
|
||||
|
|
|
|||
Loading…
Reference in a new issue