1
0
mirror of https://github.com/Refactorio/RedMew.git synced 2025-03-03 14:53:01 +02:00

979 Commits

Author SHA1 Message Date
Jayefuu
27ba6e412f Dump player inventories (not armor and weapons) after 15 mins 2021-03-02 20:46:42 +00:00
Jayefuu
81f10b1fe7 Limiting /zoom command to admins only
Would prefer a fast fix as players are abusing the fuck out of it in crash site after one of them found it :(
2021-02-27 19:18:31 +00:00
Jayefuu
329dfb346b Updated as per grilledham's comments. 2021-02-19 13:33:13 +00:00
Jayefuu
21fbde82fc Fixed coins ins chest count bug
- 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
2021-02-18 13:43:50 +00:00
James Gillham
0c63769c38 Fix error in player stats when robot built entity.
When the robot_owner is a spidertron there is no player for the owner and calling the player property would error, now we check that the owner is a character first.
2021-02-14 10:51:06 +00:00
grilledham
a3a389ff37
Merge pull request #1173 from grilledham/report_auto_bans
Send auto bans to discord moderation log channel.
2021-02-14 10:39:17 +00:00
Jayefuu
6851e36def
Update features/player_stats.lua
Co-authored-by: grilledham <jrdgillham@gmail.com>
2021-02-13 17:47:34 +00:00
James Gillham
9748482446 Send auto bans to discord moderation log channel. 2021-02-13 15:42:59 +00:00
Jayefuu
89f82d689f
Merge branch 'develop' into fish_munchers 2021-02-12 08:49:59 +00:00
grilledham
c26148b1e7
Merge pull request #1146 from Refactorio/entities_built_fix
Added player_built and player_crafted to the crash site awards ceremony
2021-02-11 19:26:34 +00:00
Jayefuu
d386dea2bf Updated as per suggestions 2021-02-11 11:25:39 +00:00
Jayefuu
826d5d3b99 Fixed logic error 2021-02-09 22:34:01 +00:00
Jayefuu
c2f2bf49e1 Updated with suggested corrections 2021-02-09 22:30:33 +00:00
Jayefuu
917c21da6a Sure I fixed this already :( 2021-02-09 19:53:27 +00:00
Jayefuu
f86ff01b31 Stupid lua checks 2021-02-09 18:14:59 +00:00
Jayefuu
5254a2ccf7 Fixed lua checks 2021-02-09 18:10:09 +00:00
Jayefuu
bb2da07962 Added recording and award for how many fish each player eats/uses 2021-02-09 18:08:03 +00:00
Jayefuu
1a72529e75 Updated behaviour for robot built entities
- Players get an increment to entities built when a robot they own builds something
- Players don't get an increment if they placed the blueprint and the base's roboport con bots build the entity OR if another players robots do the building.
2021-02-09 17:36:54 +00:00
James Gillham
71f6fede74 Add combat robots to corpse remover. 2021-02-06 15:56:03 +00:00
James Gillham
480f1dd888 Updates to sanitise_message. 2021-01-30 16:20:13 +00:00
Jayefuu
0430bfc64b Fixed bold titles and added sanitisation attempt 2021-01-29 09:06:51 +00:00
Jayefuu
48ca840671 Updated and tessted prettier line formatting 2021-01-28 09:14:32 +00:00
James Gillham
9ecf53d76a Add Player online time to discord report/jail embeds. 2021-01-27 21:27:41 +00:00
Jayefuu
9ce26844f1
Merge pull request #1153 from Refactorio/accessibility_notifications
Added white text above player when mentioned in chat
2021-01-23 17:41:42 +00:00
Jayefuu
f9e5752dd0 Removed old comments 2021-01-23 17:38:34 +00:00
Jayefuu
75df3186b8 Update chat_triggers.lua
- Changed font size and line_to_live slightly on feedback from nibu and diffie
- Added check for if player is dead. Assume that if they're dead they're probably not distracted and will pay attention to chat.
- Removed us of game.get player and replaced with player.name
2021-01-21 14:46:18 +00:00
James Gillham
a46435ec00 Fix desync when changing global.config.biter_corpse_remover.max_queue_size 2021-01-20 17:10:21 +00:00
Jayefuu
476b07a2ab Fixed locale issues 2021-01-20 08:48:08 +00:00
Jayefuu
c88520cccb Update chat_triggers.lua 2021-01-19 13:37:00 +00:00
Jayefuu
5a585e38d9 Update chat_triggers.lua 2021-01-19 13:36:25 +00:00
James Gillham
98b39b93bf Updated corpse remover to remove worms. 2021-01-12 16:51:30 +00:00
Jayefuu
0a4355eb2c Updated corpse remover to only remove biter corpses 2021-01-12 08:33:44 +00:00
James Gillham
21ec6fb120 Change biter corpse remover.
The biter corpse remover was attempting to be clever about removing corpses and only remove them when they exceeded a certain threshold per chunk. For some reason it is no longer working and I can't figure out why.
So I replaced it with a simpler approach. Now we keep track of the corpses in a queue. When the queue size exceeds the threshold we remove and destroy the oldest corpse.
2021-01-10 15:45:28 +00:00
Jayefuu
565249ff1b Added player_built and player_crafted to the crash site awards ceremony 2021-01-08 12:34:51 +00:00
Jayefuu
0089075f9c
Merge pull request #1138 from Refactorio/player_stats_kill_tracking
Player data types updated and saved to server on restart
2021-01-03 08:53:04 +00:00
grilledham
0717eb2a3e
Merge pull request #1142 from grilledham/info_gui_updates
Fix info_gui layout issues.
2021-01-02 12:22:00 +00:00
grilledham
e093b92dc9
Merge pull request #1141 from grilledham/player_leave_reason
Add player leave reasons
2021-01-02 12:18:42 +00:00
grilledham
ad929499c6
Merge pull request #1140 from grilledham/loader_snap
When rotating loader connect to container.
2021-01-02 12:13:52 +00:00
James Gillham
741267873f Use PlayerStat names in player_list.lua 2021-01-02 12:12:10 +00:00
James Gillham
0e768ec608 Expose PlayerStats names publicly. 2021-01-02 12:00:21 +00:00
James Gillham
27e76d2ed0 Refactor get player index logic 2021-01-02 11:37:54 +00:00
Jayefuu
50bf98f8f2 Updated as per suggestions
- Added small fixes to commands.lua
- Added logic to player_stats.lua to count kills made with vehicles. Tested on S10 with a passenger.
2021-01-02 11:37:53 +00:00
James Gillham
b527d146f8 More player_list tweaks. 2021-01-02 11:37:16 +00:00
James Gillham
24bedfb925 grilledham's review changes:
- Rename biter_kill_counter->entity_died
- Refactor logic in entity_died function to reduce table lookups.
- Fix nil cause bug.
- Fix player_list kills header different size to cells.
2021-01-02 11:37:16 +00:00
Jayefuu
9b39e35d0d Player data types updated
- Saves more kill data to Scoreboard
- Displays total kills in score board
- Saves player data to crash site scenario data set
- Added scenario name to data set so that if we later want to add data for danger ores we can filter it out
2021-01-02 11:37:16 +00:00
grilledham
b18dad52cb
Merge pull request #1137 from grilledham/server_start_data
Add server start_data.
2021-01-01 18:22:45 +00:00
James Gillham
345029c10b Fix info_gui layout issues. 2021-01-01 18:04:14 +00:00
James Gillham
a2331b0a53 Don't hard code the filter slot count. 2021-01-01 16:26:21 +00:00
James Gillham
b6053fd3e3 Preserve loader filters when connecting 2021-01-01 15:49:07 +00:00
James Gillham
4634bcca00 When rotating loader connect to container. 2020-12-31 22:55:26 +00:00