mirror of
https://github.com/IntQuant/noita_entangled_worlds.git
synced 2025-10-19 07:03:16 +00:00
Save slot enabler support
This commit is contained in:
parent
5febf559c0
commit
45ecd40c14
1 changed files with 7 additions and 1 deletions
|
@ -50,7 +50,13 @@ end
|
||||||
function rpc.check_gamemode(gamemode)
|
function rpc.check_gamemode(gamemode)
|
||||||
local mn = np.GetGameModeNr()
|
local mn = np.GetGameModeNr()
|
||||||
local gm = np.GetGameModeName(mn)
|
local gm = np.GetGameModeName(mn)
|
||||||
if gamemode ~= gm then
|
local not_fine = gamemode ~= gm
|
||||||
|
|
||||||
|
if gm == "save_slots_enabler" or gamemode == "save_slots_enabler" then
|
||||||
|
not_fine = not (gm == "" or gamemode == "")
|
||||||
|
return
|
||||||
|
end
|
||||||
|
if not_fine then
|
||||||
GamePrint("Player: " .. ctx.rpc_player_data.name .. ", is on a different gamemode number then you")
|
GamePrint("Player: " .. ctx.rpc_player_data.name .. ", is on a different gamemode number then you")
|
||||||
GamePrint("his game mode: ".. gamemode)
|
GamePrint("his game mode: ".. gamemode)
|
||||||
GamePrint("your game mode: ".. gm)
|
GamePrint("your game mode: ".. gm)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue