mirror of
https://github.com/Refactorio/RedMew.git
synced 2025-01-18 03:21:47 +02:00
21fbde82fc
- 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