Following Discord messages with @grilledham, updated the messages to be clearer.
Also updated some broken logic and reduced spam to admins if someone tries to set it below the minimum and it's already at the minimum.
Changes untestested. I'll test tonight or tomorrow if it passes review, not got Factorio on this laptop.
The new meta sucks. No one builds any walls or defences. Players can go 3 or 4 hours with no attacks so long as they craft nothing.
Now that the pollution from outposts is generated at position = {0,0}.... let's try a very small amount of pollution for every outpost captured to force at least a small amount of defences to be built.
This will be MUCH less pollution than if all of the items they get free were made in base, but it will still force at least a few defenses or clearing of nearby bases.
Starting with a value of 10 to see how it goes.
No one likes or uses the pollution multiplier feature I added.
Feedback suggests that it spawning at outposts makes the cause too obvious, so people complain about it. And it requires that outposts have to be defended.
Yet, people still complain crash site is too easy.
By moving the pollution spawning to the centre of the base the effect of more outposts is spread over the whole base and will trigger more attacks, but will challenge the whole base defences rather than just a single outpost.
- change Restart command to use server.start_game (offers setting the mod pack).
- Change danger ores and crashsite maps to use the new restart command.
- Removed events.on_player_mined_item from outpost_builder because we don't want to add coins every time they mine and it's duplicated in player_stats.
- Removed events.on_player_mined_item from player_stats because it doesn't tell us what entity the items came from.
- Added coin tracking to events.on_pre_player_mined_item event instead. Checks if the mined item was a chest with coins in it and adds to the player stats if so.
- Tested that coins from trees and rocks still track when market is enabled
- While I was at it, added a pretty coin floating text for when RNG gives coins from mining trees/rocks