mirror of
https://github.com/bryanthaboi/gen1recomp.git
synced 2026-08-12 08:21:02 +02:00
20 lines
729 B
Lua
20 lines
729 B
Lua
-- One-shot: injects a fake 3-mon party and writes it to disk for the
|
|
-- current identity, then exits. Meant to be followed by a normal
|
|
-- (driver-free) `love .` launch, since POKEPORT_DRIVER disables Discord
|
|
-- presence for the run -- this is how to get a ready-made party AND a
|
|
-- fully interactive session with real Discord presence.
|
|
return function(game)
|
|
local Pokemon = require("src.pokemon.Pokemon")
|
|
local SaveData = require("src.core.SaveData")
|
|
|
|
game.save.party = {
|
|
Pokemon.new(game.data, "CHARIZARD", 50),
|
|
Pokemon.new(game.data, "PIKACHU", 30),
|
|
Pokemon.new(game.data, "SNORLAX", 40),
|
|
}
|
|
game.save.player.name = "RED"
|
|
|
|
local ok = SaveData.save(game.save)
|
|
print("save_fake_party: saved =", ok)
|
|
end
|