Skip to content

Commit

Permalink
Added warning on game load if quality is enabled.
Browse files Browse the repository at this point in the history
  • Loading branch information
Septiple committed Oct 30, 2024
1 parent 84d36a6 commit 0b8089c
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 1 deletion.
5 changes: 5 additions & 0 deletions changelog.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
---------------------------------------------------------------------------------------------------
Version: 3.0.14
Date: 2024-10-30
Changes:
- Added warning on game load if quality is enabled.
---------------------------------------------------------------------------------------------------
Version: 3.0.13
Date: 2024-10-29
Changes:
Expand Down
4 changes: 4 additions & 0 deletions control.lua
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,10 @@ py.on_event(defines.events.on_player_created, function(event)
player.print {"messages.warning-biters"}
end

if script.active_mods.quality then
player.print {"messages.warning-quality"}
end

Wiki.events.on_player_created(event)
end)

Expand Down
3 changes: 2 additions & 1 deletion locale/en/locale.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -860,4 +860,5 @@ shot=Edible
[messages]
welcome=Welcome to Pyanodon! Remember to check the Pyanodon Codex (button in the top left) for details on the gameplay.
warning-no-preset=It looks like you are not using the '__1__' map generation preset. Initial ore patches may run out quickly, but this is otherwise playable.
warning-biters=It looks like you have biters enabled. Pyanodon is not yet balanced with biters, the recommendation is to turn them off.
warning-biters=It looks like you have biters enabled. Pyanodon is not yet balanced with biters, the recommendation is to turn them off.
warning-quality=The quality mod has been enabled. This is only supported insofar that it loads and you can use it. It is absolutely unbalanced however, so it is not recommended to play Py with it turned on. The recycler in particular is comically unbalanced and should never be used.
5 changes: 5 additions & 0 deletions migrations/3.0.14.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
for _, player in pairs(game.players) do
if script.active_mods.quality then
player.print {"messages.warning-quality"}
end
end

0 comments on commit 0b8089c

Please sign in to comment.