0
0
Fork 0
mirror of https://github.com/Sanae6/SmoOnlineServer.git synced 2024-11-24 12:15:17 +00:00
SmoOnlineServer/Server
Robin C. Ladiges bec6dde076 refac the "speedrun" mode
By not detecting new saves correctly before, players were sent all moons while still being in cap kingdom.
Having those moons made the game crash if the cutscenes from cap to cascade were skipped.

Changes:
- Rename: `speedrun => `disableShineSync`.
- Correctly detect new saves by scenario 1 instead of 0.
- Let all stages that are not cap in scenario 1 enable shine sync again (e.g. for switching back to an older save).
- Only disable shine sync once and not on every stage change (e.g. when entering cap overworld again and again).
- Disable shine bag clearing by default, option to enable it again via `Shines/ClearOnNewSaves` (for speedruns).
- Persist shines after clearing (otherwise a server crash/restart might load old moons from a previous run and sync them).
- Clear only once per player till reaching cascade (otherwise collected moons might be cleared mid-run).
- Reduce delay from 15s to 2s (even w/o a delay I couldn't reproduce a crash, but keeping it feels safer).
- Only enable shine sync again after the delay, the delay was circumvented before by other tasks triggering shine sync earlier.
2024-06-21 14:53:56 -06:00
..
BanLists.cs crash ignored players 2024-04-27 15:14:38 -04:00
Client.cs fix: KeyNotFoundException 2024-04-27 17:11:13 -04:00
CommandHandler.cs Added quotable arguments, potential fix for ban * not banning anyone. 2022-07-27 12:14:56 -06:00
DiscordBot.cs only warn about the Discord channel settings when a Token is set 2022-10-10 19:37:37 -06:00
FlipOptions.cs Add scenario merging and run reformatting on solution 2022-03-01 15:08:53 -06:00
Program.cs refac the "speedrun" mode 2024-06-21 14:53:56 -06:00
Server.cs ignore & crash instead of disconnect clients after reaching the MaxPlayers limit 2024-04-27 15:14:38 -04:00
Server.csproj Add a simple discord bot to manage the server 2022-06-12 18:48:24 -06:00
Settings.cs refac the "speedrun" mode 2024-06-21 14:53:56 -06:00
Time.cs Add tag commands and improve command handling 2022-03-14 23:59:23 -06:00