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

45 Commits

Author SHA1 Message Date
Soggs
2611831618
Made active outposts configurable via the config in presets (#1324)
- Which outposts are active can now be controlled via a property of config called active_outpost_types.
- Outpost distribution in each stage can now be controlled via a property of config for each stage, those properties are: stage1a_list, stage1b_list, stage2_list, stage3_list, stage4_list, mini1_list, mini2_list and mini3_list.
- Changed the name of the function itertor_builder to iterator_builder.
2022-06-20 19:48:03 +01:00
grilledham
ec4fc1cf98
Use on_entity_destroyed instead of on_entity_died for determining if an outpost is captured. (#1292) 2022-02-26 15:03:30 +00:00
Jayefuu
2276706743
Fixed LUA check 2021-09-30 11:24:50 +01:00
Jayefuu
ba696c50c3
Update map_gen/maps/crash_site/outpost_builder.lua
Co-authored-by: grilledham <jrdgillham@gmail.com>
2021-09-30 11:21:34 +01:00
Jayefuu
7666660268
Fixed failed lua checks 2021-09-29 08:34:56 +01:00
Jayefuu
894b605fe0
Updated pollution multiplier minimum limits
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.
2021-09-29 08:31:40 +01:00
Jayefuu
eef52b0e71 Missing return 2021-09-27 23:17:30 +01:00
Jayefuu
c4286ddf14 Fixed failed lua check 2021-09-27 22:11:06 +01:00
Jayefuu
75a8323fd0 Updated the starting pollution multiplier
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.
2021-09-27 22:09:15 +01:00
Jayefuu
3b72c497cb
Updated outpost pollution to spawn at map centre not at outposts
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.
2021-06-17 17:09:09 +01:00
James Gillham
7c390fb498 Fix steel recipe not showing for magic crafters if player force hasn't unlocked steel tech. 2021-02-28 11:16:33 +00:00
Jayefuu
82077da982
Merge pull request #1179 from Refactorio/coin_pickup_fix
Fixed player coin count bug from picking up chests
2021-02-20 08:15:24 +00:00
Jayefuu
4e172f4598 LUA checks 2021-02-19 15:30:29 +00:00
Jayefuu
790c2a1506 Updated as per review 2021-02-19 15:28:14 +00:00
Jayefuu
ddc234cfec Updated pollution multiplier commands
- Changed so that both can be run from server
- Gave regulars the ability to query the current pollution settings.
2021-02-19 14:51:53 +00:00
Jayefuu
e303430dc1 lua checks 2021-02-18 13:55:47 +00:00
Jayefuu
26e5c35a26 LUA checks 2021-02-18 13:46:31 +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
Jayefuu
5c3af6aed6 Changed magic crafter force to fix unit_group command failure 2021-02-12 12:21:50 +00:00
Jayefuu
fed9388840 Fixed lua checks 2021-02-08 13:49:55 +00:00
Jayefuu
8754040a47 Updated as per suggestions 2021-02-08 13:00:34 +00:00
Jayefuu
3fb08af57c
Update map_gen/maps/crash_site/outpost_builder.lua
Co-authored-by: grilledham <jrdgillham@gmail.com>
2021-02-07 12:07:28 +00:00
Jayefuu
a363a70f33 Whitespace 2021-02-05 15:26:09 +00:00
Jayefuu
20c21f9c9c Suggested changes 2021-02-05 15:24:18 +00:00
Jayefuu
0b1a030bfe Fixed lua checks 2021-02-03 10:59:47 +00:00
Jayefuu
759aef17b3 Updated as per suggestions and fixed furance to furnace
- Replaced furance with furnace in all files
- Attempted to fix global desync issue, but probably not right
- Added server_player so /get_pollution_multiplier can be called from server
2021-02-03 10:57:19 +00:00
Jayefuu
0cb766fd22
Update map_gen/maps/crash_site/outpost_builder.lua
Co-authored-by: grilledham <jrdgillham@gmail.com>
2021-02-03 08:24:38 +00:00
Jayefuu
c048a5f448 Update outpost_builder.lua 2021-02-02 18:33:54 +00:00
Jayefuu
d3aa8f18e0 Added configurable pollution to outposts
My plan is to make a harder crash site version where getting free resources from outposts creates pollution.

My intention is to balance it so it's still better to get items from outposts, but this commit is intended to give me a way to take saved games and test different amounts of pollution to check for balance. I don't intend to test this on live for a while but want to test it offline, this will give me the ability to turn it on half way through a game.

Need to consider how it doesn't take into account what the item is so it will be better to get free end-game items and probably limit how much iron we let into base later in the game. Might also create interesting meta where we are careful about what resources we take from outposts depending upon the pollution making setting.
2021-02-02 18:26:17 +00:00
Jayefuu
d67928ac30 Updated crash site upgrade toasts to include player name
It's handy to know who's doing the upgrading so I've added their name to all the crash site toasts. This branch depends on the arrakis/dunes one as in that branch I moved some things into a features folder.
2021-01-08 14:46:57 +00:00
James Gillham
a127196e9c Updates:
- update .luacheckrc.
- Add stack limits to airstrike and rocket tank market items.
- Refactor rocket_tanks.lua
2020-12-27 14:03:18 +00:00
grilledham
e86cc2a8f5
Merge pull request #1114 from Refactorio/crash-site-air-strrike
Airstrike command
2020-11-29 19:47:27 +00:00
James Gillham
1d0aaabf58 Make spawn chest indestructible/unminable 2020-11-19 19:30:41 +00:00
James Gillham
473874be35 Add retailer event handler for airstrike. 2020-11-17 21:35:12 +00:00
Jayefuu
4e4b62a152 Spidertron artillery immunity fix
- Added spidetron to artillery_target_entities list
- Added code to fire a rocket at spidertrons as well as the non-damaging artillery
- Tested effect of 4 and 8 artillery rockets on spidertron. Kills shields quick but spidertron takes about a minute to die. Enough to deter them from staying too long but not too OP.
2020-11-17 18:03:59 +00:00
Lynn
8a84ef7504 Cleanup of player stats functions 2019-05-31 23:18:19 +02:00
SimonFlapse
56b6dfbd01 More player -> character 2019-05-02 17:02:53 +02:00
grilledham
92d2ee4ae7 updates 2019-03-16 13:08:44 +00:00
grilledham
f1949e2b87 only render market text when in map view 2019-03-09 14:00:16 +00:00
grilledham
e53d91cfcf removed unused variables 2019-03-08 17:49:06 +00:00
grilledham
41f2fc8c50 render text when hover over market 2019-03-08 17:31:00 +00:00
grilledham
a59089c496 artillery targets players 2019-03-07 21:07:33 +00:00
grilledham
5f9ceda8e9 fix localised string to not exceed limit 2019-03-02 14:16:54 +00:00
plague006
a5fd1bce2e Fix outpost_builder, fix redmew_qol.
Add functions to donator and rank system to get full player tables.
2019-02-12 20:22:13 -05:00
Matthew
6aed6d6317
Change map loading method (#640)
Add map loader
2019-01-31 20:15:41 -05:00