mirror of
https://github.com/bryanthaboi/gen1recomp.git
synced 2026-08-15 15:51:17 +02:00
initial commit
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
-- Event flags stored in the save table, keyed by pokered event constant
|
||||
-- names (e.g. "EVENT_FOLLOWED_OAK_INTO_LAB").
|
||||
|
||||
local Flags = {}
|
||||
|
||||
function Flags.set(save, name)
|
||||
save.flags[name] = true
|
||||
end
|
||||
|
||||
function Flags.clear(save, name)
|
||||
save.flags[name] = nil
|
||||
end
|
||||
|
||||
function Flags.get(save, name)
|
||||
return save.flags[name] == true
|
||||
end
|
||||
|
||||
return Flags
|
||||
Reference in New Issue
Block a user