1
0
mirror of https://github.com/Refactorio/RedMew.git synced 2024-12-14 10:13:13 +02:00
Commit Graph

44 Commits

Author SHA1 Message Date
James Gillham
d6a60bf09b Snap loader to container when built + extra cases for rotate loader. 2021-03-17 21:36:14 +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
Jayefuu
6851e36def
Update features/player_stats.lua
Co-authored-by: grilledham <jrdgillham@gmail.com>
2021-02-13 17:47:34 +00:00
Jayefuu
89f82d689f
Merge branch 'develop' into fish_munchers 2021-02-12 08:49:59 +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
Jayefuu
565249ff1b Added player_built and player_crafted to the crash site awards ceremony 2021-01-08 12:34:51 +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
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
James Gillham
a2d6b35478 check valid_for_read 2020-09-02 15:04:03 +01:00
grilledham
68c9f0ccf2 restored get_all_death_causes_by_player 2019-06-07 10:25:24 +01:00
Lynn
98f11ee163
Satisfy travis 2019-06-04 11:05:00 +02:00
Lynn
6db5901e99
Hotfix for broken GUI, translation parameter count 2019-06-04 10:56:18 +02:00
Lynn
97d96dedf3 Translate the name of death causes 2019-06-01 00:12:41 +02:00
Lynn
8a84ef7504 Cleanup of player stats functions 2019-05-31 23:18:19 +02:00
Lynn
b5b9a49fd1 Improved hotpath performance 2019-05-31 19:28:20 +02:00
Lynn
f8812f6189 Use ScoreTracker for global score display 2019-05-30 21:57:43 +02:00
Lynn
34e3190882 Use a uniform storage for score storage 2019-05-30 20:22:21 +02:00
grilledham
a0e178fc75 removed unsed Game variable 2019-05-16 12:11:01 +01:00
grilledham
880c0366d1 Game.get_player_by_index -> game.get_player 2019-05-16 11:10:56 +01:00
SimonFlapse
6b145dacbe More player -> character #2 2019-05-02 17:29:55 +02:00
Matthew Heguy
5e9cbdd32d Add /whois command
Rename stat get functions to match others
2019-02-02 18:09:47 -05:00
grilledham
43197de20a added total coins spent 2019-01-21 20:36:32 +00:00
grilledham
1981dd6c0f fix errors 2019-01-20 18:25:53 +00:00
grilledham
eaab7b9b3c removed stats tracking for damage. 2019-01-20 16:59:07 +00:00
grilledham
f093fee5ab fixed bugs 2019-01-09 22:30:05 +00:00
grilledham
14a81aedb4 Bug fixes (#620)
* fixed error on empty regular list

* fixed train kill count
2019-01-01 22:26:57 +01:00
Valansch
defd40db60
Update player_stats.lua 2018-12-17 18:04:46 +01:00
grilledham
03b6d9b288 extra checks in player_stats::entity_damaged 2018-12-16 11:13:15 +00:00
Matthew
88e7c46d2f Expanded stat tracking (#484)
* Add new stat tracking

* Add player_total_playtime and server storing+getting

* Cover case of not running on server

* Add player built entities, fix playtime tracking

* Add some stat display

* Remove total playtime
2018-12-15 21:28:53 +01:00
Lynn
2a8a047c64 Fixed coin mining and behavior in Diggy 2018-12-10 21:18:22 +01:00
Lynn
bbfcdd4629 Added a basic RedMew configuration setup (#502)
* Added a basic RedMew configuration setup
2018-12-06 12:18:52 +01:00
plague006
818391707e Move features into features folder 2018-11-11 03:08:50 -05:00