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

1722 Commits

Author SHA1 Message Date
James Gillham
8ab1d16386 Add danger ore patches. 2021-07-25 15:11:43 +01:00
James Gillham
26b84037b1 Report script kicks and bans to moderation-log channel. 2021-06-26 16:21:54 +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
02f943695b Fix placing blueprint refined concrete on blue-refined-concrete. 2021-06-12 15:02:21 +01:00
James Gillham
d1d46d361f Prevent ghost refined concrete on blue concrete 2021-05-31 12:49:58 +01:00
James Gillham
6323605775 Remove dense patches from all danger ore maps. 2021-05-31 12:49:58 +01:00
James Gillham
dab5dae07b Terraforming danger ore balance changes. 2021-05-31 12:49:58 +01:00
James Gillham
167438f6fe Change uranium patches to smaller and more frequent. 2021-05-25 20:18:39 +01:00
James Gillham
3715775cda comment out unused variable. 2021-05-23 13:38:28 +01:00
James Gillham
b5fca58c08 Increase player force minning speed +100%, remove free space around oil. 2021-05-23 13:29:43 +01:00
James Gillham
dc5e76d5eb Danger ore balance changes:
- Ore starts at lower value but grows exponentially.
- Smaller spawn.
- Greater oil value from distance.
- Richer uranium.
2021-05-23 13:29:43 +01:00
James Gillham
835e3064c4 Remove unused code. 2021-05-23 11:59:44 +01:00
James Gillham
fa6f70c235 Refactor danger_ore_circles.
- Create builder functions for ring_pattern and ring_weighted_pattern.
- Use main ore rorate to rotate start ores.
- Shuffle start ores.
- Use same land tiles for start ores.
- Shuffle shapes rather than mutating the config.
- Rename scenario template from danger-ore-cricle to danger-ore-circles.
- Set restart command to use 'danger-ore-circles'.
2021-05-22 16:50:22 +01:00
Soggs
d73f3344ea Fix Desync on Chunk generation for Danger Ores Circle. 2021-05-22 14:19:23 +02:00
Soggs
940315614c Hotfix for Desync on terrain generation. 2021-05-21 23:10:45 +02:00
Soggs
2c61140d1d
Change the builder to properly avoid water tiles in the starting ore ring.
Co-authored-by: grilledham <jrdgillham@gmail.com>
2021-05-20 20:56:16 +02:00
Soggs
f38999d674 Added Danger Ores Circles to the scenario templates. 2021-05-19 23:05:52 +02:00
Soggs
1d48034b93 More changes. 2021-05-19 22:59:07 +02:00
Soggs
4b80c8c819 Merge branch 'master' of https://github.com/Soggs/RedMew 2021-05-19 22:54:05 +02:00
Soggs
ca77b4ce3b Clean up and improvment to danger_ores_circles. 2021-05-19 22:53:13 +02:00
Soggs
a009e9fb51 Merge remote-tracking branch 'refs/remotes/upstream/develop' 2021-05-19 22:52:18 +02:00
Soggs
e801f1acbd
Update map_gen/maps/danger_ores/presets/danger_ore_circles.lua
Co-authored-by: grilledham <jrdgillham@gmail.com>
2021-05-19 22:05:09 +02:00
Soggs
ee748a7033 Fixing things because Build check made me break things. 2021-05-19 18:35:37 +02:00
Soggs
e769ec0f61 More Build checks 2021-05-19 18:25:51 +02:00
Soggs
480de9f27f Build checks... 2021-05-19 18:23:36 +02:00
Soggs
f1106061aa Added a Circles preset for Danger Ores. 2021-05-19 17:51:03 +02:00
James Gillham
75ef275a93 Use SnowZy's ore ratios for danger ore. 2021-05-18 16:54:36 +01:00
James Gillham
2e749601a9 Remove test code + increase name textfield width. 2021-05-15 12:24:56 +01:00
James Gillham
ca381aa289 Add config-restart command.
- 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.
2021-05-15 11:21:46 +01:00
James Gillham
66883a87b3 Change game.players -> game.get_player 2021-05-15 11:21:46 +01:00
James Gillham
ddc84d367d Blue concrete on landfill + danger_ore_chessboard_uniform. 2021-05-08 18:18:02 +01:00
James Gillham
84c3042c00 BlueRock's diggy suggestions. 2021-05-04 21:12:09 +01:00
James Gillham
0fded5f9ee Danger ore chessboard. 2021-05-03 15:16:45 +01:00
James Gillham
d7658fc1aa Danger ore split 2021-04-19 22:15:46 +01:00
James Gillham
56ac6954f4 Add hail hydra to danger_ore_normal_science 2021-04-14 20:54:46 +01:00
James Gillham
5975c700ae Add danger ore normal science 2021-04-13 21:44:54 +01:00
James Gillham
264ad2b2ce Liutio proposed changes to danger ore. 2021-04-09 21:09:07 +01:00
James Gillham
5823860a49 Update danger ores map descriptions 2021-04-08 17:56:28 +01:00
James Gillham
c54e75e6cc Add danger-ores scenario_templates 2021-04-08 17:56:28 +01:00
James Gillham
d26540c079 Add danger_ore_spiral.lua 2021-04-08 17:56:28 +01:00
James Gillham
9a5137a23b Update danger_ore maps
- Enabled dump inventories.
- Restart to danger-ore-next.
- make no stone the default.
2021-04-08 17:56:27 +01:00
James Gillham
85a7171406 danger ore updates 2021-04-08 16:43:56 +01:00
James Gillham
2987f8a47c Less stone for danger_ore_landfill 2021-03-31 20:59:06 +01:00
James Gillham
c33eed76ec Remove unsued variable. 2021-03-31 17:10:45 +01:00
James Gillham
5e025199d4 danger_ore_landfill 2021-03-31 17:04:43 +01:00
James Gillham
0cfe65b18a danger_ore_no_stone config changes 2021-03-31 16:30:51 +01:00
James Gillham
680580438c Add skip cutscene player setting. 2021-03-30 20:21:57 +01:00
James Gillham
e02d7bd47f Add danger_ore_no_stone preset. 2021-03-17 20:14:32 +00:00
James Gillham
32af8b8862 Fix no oil/uranium on danger ores gradient. 2021-03-08 21:47:14 +00:00
Jayefuu
8ae9c4ba0e Updated timer after testing on S10 2021-03-04 08:32:57 +00:00
James Gillham
02e2b59103 dump_offline_inventories fixes. 2021-03-03 20:13:25 +00:00
Jayefuu
a4d9707f42 WIP 2021-03-03 18:52:30 +00: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
James Gillham
03e40c57ea Increase danger ore richness 25% 2021-02-27 18:08:22 +00:00
Jayefuu
b74908f64b Updated errors 2021-02-24 19:04:03 +00:00
Jayefuu
4e466c8131 Added evo flying text on turret destruction to improve new player experience 2021-02-24 15:46:00 +00:00
Jayefuu
2be2501f39 Adjusted barrel prices to balance new meta
Players were buying a hundred barrels for 15 coins. Made blue belts V easy among other things, adjusted at request of Tigress.
2021-02-22 23:42:15 +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
21be255763 Updated as per suggestions 2021-02-19 14:25:17 +00:00
Jayefuu
55f0681bd6 Updated artillery behaviour to get rid of destroyer-capsule while avoiding part of pickup bug 2021-02-18 14:14:05 +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
grilledham
a62f81647b
Merge pull request #1174 from Refactorio/repair_tanks_everywhere!
Repair tanks in all versions
2021-02-14 10:41:09 +00:00
Jayefuu
94a50d3ec5 Fixed coin pickup on entity death 2021-02-13 18:55:57 +00:00
Jayefuu
1e96f3fd80 Repair tanks in all versions 2021-02-13 18:06:08 +00:00
Jayefuu
ca873a8d89
Merge pull request #1172 from Refactorio/biter_unit_group_pathing_fix
Changed magic crafter force to fix unit_group command failure
2021-02-13 17:53:49 +00:00
Jayefuu
5c3af6aed6 Changed magic crafter force to fix unit_group command failure 2021-02-12 12:21:50 +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
ff29cc958d Fixed mistake with scenario display name conversion 2021-02-09 22:32:36 +00:00
Jayefuu
c2f2bf49e1 Updated with suggested corrections 2021-02-09 22:30:33 +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
70fd9b50f8
Merge pull request #1170 from Refactorio/coin_spill_changes
Player kills deposit coins in inventory
2021-02-09 08:24:41 +00:00
Jayefuu
585b4e35e4 Updated as per suggestions 2021-02-08 22:53:59 +00:00
Jayefuu
c4d76243dc
Merge pull request #1167 from Refactorio/crash_site_outpost_pollution
Added configurable pollution to outposts for future testing
2021-02-08 22:47:49 +00:00
Jayefuu
28bcd68786 Updated as per review suggestions 2021-02-08 21:52:36 +00:00
Jayefuu
fed9388840 Fixed lua checks 2021-02-08 13:49:55 +00:00
Jayefuu
c9d8189218 Player kills deposit coins in inventory 2021-02-08 13:32:05 +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
b186e7cc10 Updated artillery turret bot spawn balance 2021-02-06 09:05:40 +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
e02d851dea Updated max_range for projectiles used in bot spawn 2021-02-02 07:33:22 +00:00
Jayefuu
eafb3d8bdd
Merge pull request #1163 from Refactorio/make_destroyers_attack_arty_wagon
Update destroyer attack behaviour for artillery wagons
2021-02-01 17:28:07 +00:00
Jayefuu
8e8b7ee818 Update events.lua 2021-02-01 17:06:43 +00:00
Jayefuu
d53e3d320c Updated as per suggestions
- Added function to check distance between two entities as I couldn't find one in utils
- Added call to check how far from destroyer to wagon
- Since there's now a check I removed the 2 second wait between spawning and starting to fire in favour of using distance instead (384, 386)
2021-02-01 16:09:07 +00:00
Jayefuu
f4ca719296
Merge pull request #1164 from EigenMan-Factorio/develop
Multi-coordinate support for /spy and /strike.
2021-02-01 15:15:49 +00:00
James Gillham
a7ce905428 Remove dynamic requires from diggy. 2021-01-30 21:56:29 +00:00
EigenMan-Factorio
421ff0959f Made changes to address items found during review:
- fixed code indenting
- added comments to warm about potential issues with surface names
- modified check for chest containing poison so it only happens once per /strike command
2021-01-30 11:12:38 -07:00
EigenMan-Factorio
76ae7c6d19 Added a limit of 10 coordinates per strike command. 2021-01-29 10:38:18 -07:00
EigenMan-Factorio
537f9386bb Added multi-coordinate support to the /spy and /strike commands. Also
added help text to the /strike command.
2021-01-29 06:26:57 -07:00
Jayefuu
78a5c27dc1 Update events.lua 2021-01-29 13:07:30 +00:00
Jayefuu
6a3682a114 Update events.lua 2021-01-29 13:05:21 +00:00
Jayefuu
61c8b33f8a Updated as per requests. 2021-01-28 09:19:36 +00:00
Jayefuu
025f35e3ce Fixed callback crash when no position for worm found
- If it couldn't find a non-colliding position it errored when trying to use the worm position to spawn biters
- This would cause the callback to stop working and the roboport wouldn't spawn worms.
-  Fixed by adding check for nil worm position
2021-01-26 16:29:17 +00:00
Jayefuu
6973042ce6
Merge pull request #1159 from Refactorio/airstrike_improvements
Added some rendering to make airstrike nicer to use
2021-01-26 07:52:17 +00:00
Jayefuu
2412e544c2 Updated as per suggestions
- Removed surface and force hard coding
- Added floating text on surface so players don't need to use map view to see strike sender
2021-01-25 07:53:29 +00:00
Jayefuu
88f80aa8e3 Fixed the message for spy cost 2021-01-24 15:52:38 +00:00
Jayefuu
cd791e73eb Added some rendering to make airstrike nicer to use
- Shows all players where the airstrike was aimed
- Shows the user of airstrike the radius their strike will roughly cover
2021-01-24 14:47:39 +00:00
Jayefuu
ab8a21ec4b Reduced cost of spy. It wasn't being used since strike is available early to mid game 2021-01-23 17:44:05 +00:00
Jayefuu
91f91dc04a
Merge pull request #1154 from Refactorio/airstrike_message_cooldown
Made strike command less spammy, replaced map pings with tags
2021-01-20 19:32:56 +00:00
Jayefuu
5301cba3ad Update commands.lua 2021-01-20 19:20:32 +00:00
Jayefuu
e15d0806e3 Removed print to player
Feedback from Anubi5 asked for no print to player. I think he's right, it's much more peaceful now.
2021-01-20 13:35:16 +00:00
Jayefuu
d33a2c5ea4 Made strike command less spammy, replaced map pings with tags 2021-01-20 08:38:41 +00:00
James Gillham
1032010907 Fix ore values + luacheck. 2021-01-13 21:14:00 +00:00
James Gillham
c0de80df29 Gradient danger ores 2021-01-13 21:08:32 +00:00
Jayefuu
df3230a8a4 Update scenario.lua 2021-01-11 20:31:42 +00:00
Jayefuu
cb2b142e42
Merge pull request #1144 from Refactorio/crash_site_dunes
Crash Site Arrakis
2021-01-08 19:13:45 +00:00
Jayefuu
c728304a10 Added discord prints to rocket tank and airstrike spawn market upgrades 2021-01-08 15:29:35 +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
Jayefuu
67ce804c64 Updated as per requests 2021-01-08 14:10:25 +00:00
Jayefuu
43260be5a3 fixed lua checks 2021-01-08 12:37:24 +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
dec40ab588 Added entity validity checks 2021-01-06 09:03:03 +00:00
Jayefuu
d1c5c8e366 Changed balance and updated as per requests
sandworms.lua
- Added feedback to player that places the roboport
- Added floating text *thump* as warning when roboport placed and 30 seconds before attack
- Changed worm/biter spawn balance
- Fixed failed lua check
- Changed spawn time to 5 to 15 minutes instead of 6 to 20 minutes

repair_cars.lua:
- Removed surplus else statement as requested
- Added ability for tanks to repair. Cars were very underwhelming past medium worms, their health is too low to be useful.

others:
- Fixed multiline strings in ScenarioInfo
2021-01-05 16:03:08 +00:00
Jayefuu
e77ae7fb9d Updated as per suggestions 2021-01-05 15:12:00 +00:00
Jayefuu
d57c498d64 Updated as per requests 2021-01-04 17:05:59 +00:00
Jayefuu
4667786cc9 Fixed failed lua checks 2021-01-04 10:46:57 +00:00
Jayefuu
1eb5f26559 Calculate awards and print to discord upon crash site restart 2021-01-04 10:44:31 +00:00
Jayefuu
87a6f2fd49 Fixed lua check fails 2021-01-03 15:42:54 +00:00
Jayefuu
ad4591a13f Crash Site Arrakis 2021-01-03 15:35:53 +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
b0ffbe43db
Merge pull request #1143 from grilledham/danger_ore_balance
terraforming danger ore balance updates
2021-01-02 23:42:08 +00:00
James Gillham
820b1e6995 terraforming danger ore balance updates 2021-01-02 23:40:30 +00:00
James Gillham
0e768ec608 Expose PlayerStats names publicly. 2021-01-02 12:00:21 +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
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
9564d51dcc Add server start_data. 2020-12-30 20:19:22 +00:00
Jayefuu
58eaa07add Updated price after balance testing 2020-12-30 15:16:28 +00:00
grilledham
b7ad574517
Merge pull request #1131 from grilledham/danger_ore_restart
Danger ore: Add simple rocket launch condition and restart command.
2020-12-29 12:58:32 +00:00
James Gillham
8f7d040c12 Change locale danger_ore->danger_ores 2020-12-29 12:38:25 +00:00
Jayefuu
7b4ac037f7 Updated crash site data save location
Changed  data_set name that crash site data is stored in from test set to real.
2020-12-29 06:29:42 +00:00
James Gillham
e55d8987e8 Add simple rocket launch condition and restart command. 2020-12-28 22:28:21 +00:00
Jayefuu
a93eb2d4ea
Merge pull request #1128 from Refactorio/rocket-tanks
Crash site rocket tanks
2020-12-28 08:32:17 +00:00
Jayefuu
903a78de54 Updated rocket tank balance
- Reduced intervals for each level from 3, 2, 1, 0.5 seconds to 2, 1.5, 1, 0.5 seconds.
- Reduced cost from 7500 per level to 4000 per level.

These changes should make the tank useful in the period of the game for which it's designed. I will watch the next few games to check balance and adjust if it's too OP.
2020-12-28 08:25:24 +00:00
James Gillham
2f53b43165 Send report to discord. 2020-12-27 15:57:22 +00:00
James Gillham
b6221a57c2 Fix broken item.name check 2020-12-27 14:17:42 +00:00
James Gillham
7501c7b28c Fix lua check 2020-12-27 14:07:06 +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
Jayefuu
deefaa6892 Final updates
- Made changes suggested by grilledham
- Disabled market item when research levels complete so that the tooltip can still be seen
- Changed cost to 7500 extra per level
2020-12-27 07:30:15 +00:00
Jayefuu
674fe5dd43 Updated as per grilledham's comments. 2020-12-27 07:07:53 +00:00
Jayefuu
81bf3dec1d Rocket tanks first draft 2020-12-26 17:08:59 +00:00
Jayefuu
f28f76157e Update commands.lua 2020-12-26 08:48:07 +00:00
Jayefuu
a27b428583 Fixed lua warnings 2020-12-24 11:40:17 +00:00
Jayefuu
d32fcefe0d Added additional statistics to JSON scenario data
Previously we couldn't tell if a restart was due to game win or fail. Statistics are now saved that include the start and end epoch, the game time in ticks (so we can gauge activity), how many biters, worms and nests were killed, how many enemy_entities remain (so we can tell if the map was cleared) and how many players participated in total.
2020-12-24 06:52:14 +00:00
James Gillham
663f40e6d9 Ping map-promotion channel on crashsite restart. 2020-12-23 16:08:20 +00:00
Jayefuu
2e1b2651cb Update events.lua 2020-12-14 19:27:08 +00:00
Jayefuu
c758b6d4a8
Merge pull request #1116 from Refactorio/artillery-pickup-bug-fix
Fixed artillery pickup exploit
2020-12-13 16:06:18 +00:00
Jayefuu
c078cc1b4d Update events.lua
Final comment update.
2020-12-13 16:05:23 +00:00
Jayefuu
7b248dc2d9 Update events.lua
- Updated comments to be accurate
- Changed balance after discussion with grilledham
2020-12-13 15:53:58 +00:00
Jayefuu
b3a0665566 Updated strike cost
The strike count and cost described by the market was correct but the actual number of capsules sent and the number of capsules removed from the chest was wrong. Bug due to starting index, have now updated the maths to be correct.

Tested and the market description, number of shots fired and the number of capsules removed from the chest are now correct.
2020-12-13 15:40:32 +00:00
Jayefuu
80675bf928 Updated logic order following discussion
Rearranged the order of the code so that it's more performant and added comments to further explain the logic and reasons for the complications, ie. the cheesing with artillery.
2020-12-13 14:49:49 +00:00
Jayefuu
09f25b2b05 Updated strike max range 2020-12-09 18:33:33 +00:00
Jayefuu
c79cbca22d Fixed /strike command range issue
Previously the airstrike was not reaching the corners of the map. There was a default max_range value of 1000 that limited how far the poison capsules could travel. Have set it to 1400 so that it can reach the corners of the map.

THIS NEEDS PLAY TESTING. Please don't merge until I've confirmed I've play tested it.
2020-12-08 09:12:12 +00:00
Jayefuu
052c6f17cc Update events.lua 2020-12-08 08:18:31 +00:00
Jayefuu
f42367bb7c whitespace 2020-11-29 21:54:15 +00:00
Jayefuu
fcca5de12a Logic change and lua check fixes 2020-11-29 21:52:41 +00:00
Jayefuu
ecff8f86eb Fixed part of artillery pickup exploit
- Current behaviour is that when destroyers/defenders are created their target position is set to the entity that killed them.
- If a player picks up the artillery after the capsules spawn then they lose their cause.target and stop, not reaching the cause of the turret death.
- I've changed this behaviour so that if the target.cause is artillery then it spawns a defender/destroyer projectile NOT an entity. The projectile target can therefore be a position not an entity. So the capsules won't stop if the artillery is picked up.
- If the cause is not artillery turret or wagon then a destroyer/defender capsule entity is spawned instead of a projectile because a projectile cannot track the player.
- If the player picks up the artillery turret before the projectile that kills a turret arrives then the event cause.name will be missing and no bots spawn at all. I have changed the behaviour so that "if not cause" then we assume they're doing something fucky. We won't have the entity cause name or position, so let's just spawn double the normal amount of destroyers and just send them at 0, 0 since we know nothing else to do with them.
2020-11-29 21:26:01 +00:00
grilledham
e86cc2a8f5
Merge pull request #1114 from Refactorio/crash-site-air-strrike
Airstrike command
2020-11-29 19:47:27 +00:00
Jayefuu
2a6092d2e4 Added chest check 2020-11-29 18:39:32 +00:00
Jayefuu
fd047c7868 Update commands.lua 2020-11-25 21:35:16 +00:00
Jayefuu
4cee264d63 Changed find_entitieS_filtered to count_entities_filtered 2020-11-25 21:33:04 +00:00
Jayefuu
2dffbba928 woops 2020-11-25 21:19:35 +00:00
Jayefuu
fa70f1e832 Updated as per comments 2020-11-25 21:18:07 +00:00
Jayefuu
40d3b4e452 Uncommented admin print 2020-11-25 15:32:52 +00:00
Jayefuu
13a2c40acb Updated localisation and inconsistencies 2020-11-25 14:57:05 +00:00
James Gillham
89b3af7f15 Fix diggy gui button styles 2020-11-24 20:20:45 +00:00
James Gillham
4c227a14e8 luacheck - remove trailing whitespace 2020-11-24 20:20:26 +00:00
James Gillham
2bd3348287 ammo-category fixes 2020-11-24 17:45:07 +00:00
James Gillham
762d31d465 Gui fixes 2020-11-24 17:44:31 +00:00
James Gillham
171737e587 Remove removed items/entities. 2020-11-24 16:39:22 +00:00
James Gillham
0b95a25f1d Change train_saviour to use 'player-port' instead of 'small-plane'. 2020-11-24 16:39:22 +00:00
James Gillham
dd0ddd131e technology renames. 2020-11-24 16:39:22 +00:00
James Gillham
df4225eca1 clean_cursor -> clear_cursor 2020-11-24 16:39:21 +00:00
Jayefuu
45759bd39c Updated grief check
- Changed grief check to use xpos, ypos and radius
- Tested it works
2020-11-20 21:43:19 +00:00
Jayefuu
b25547c160 Update commands.lua 2020-11-20 00:29:45 +00:00
Jayefuu
5e78cb52d2 Fixed lua checks 2020-11-19 21:25:56 +00:00
Jayefuu
e33ba4462f Merge branch 'crash-site-air-strrike' of https://github.com/Refactorio/RedMew into crash-site-air-strrike 2020-11-19 21:19:32 +00:00
Jayefuu
8092086a94 Final airstrike features
- Added balance
- Updated market item descriptions
- Checked errors
- Added toasts
2020-11-19 21:19:26 +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
fdb0cf3469 WIP - airstrike command
- Type `/strike [gps=x,y,surface] to send a large cloud of poison into the enemy
- Searches a chest near spawn for poison capsules. Current cost for command is 100 capsules but could be balanced.
- Needs market items adding for technology research, bought with coins.
- Variables strikeCount and strikeRadius start low. As the market upgrades are made (start at 5k each?) the size of teh strike and amount of capsules increases.
- Should be balanced to allow use from mid-game onwards. Don't allow early game use as manual throwing is fine for early outposts. This should be to speed up the boring end-game clearing of worms.
2020-11-17 20:56:53 +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
grilledham
b2f5cfb7c4
Merge pull request #1101 from Refactorio/crash-site-spy-command
Added a /spy command to allow players to reveal map
2020-11-10 21:04:59 +00:00
Jayefuu
2c744211b1 Add combat robots explode on artillery wagons.
When a combat robot expires and is targeting an artillery wagon, it will now explode. This is a work around for a factorio bug where combat robots do not attack artillery wagons.
2020-11-10 20:45:37 +00:00
Jayefuu
1afccaa664 Fixed as per requests
- fixed use of game.player
- if player surface contains a number, now won't fail.
2020-11-10 20:11:18 +00:00
Jayefuu
f2f2a6d766 Updated as per comments
- Changed get_inventory(1) to get_inventory(defines.inventory.character_main) to make it clearer which inventory we're getting.
- changed area charted to 3x3 full chunks cented on the chunk containing the pinged coordinate. Will now charta 96x96 tile area which is more reasonable considering the cost of /spy
2020-11-08 21:59:54 +00:00
grilledham
674e95993f
Revert "Crash Site: Enemy combat robots now explode when they timeout" 2020-11-07 19:26:09 +00:00
Jayefuu
f06d34ca48 Fixed failed checks 2020-11-06 18:56:42 +00:00
Jayefuu
358c13c8ca Changed as per description
- Updated local to be specific to player that used the command (woops!)
- Success message now prints to all players not the user.
2020-11-06 18:52:33 +00:00
Jayefuu
f19c399bc6 Updated as per suggestions 2020-11-05 18:28:34 +00:00
Jayefuu
6bce1ad294 Fixed failed checks. 2020-11-04 16:24:14 +00:00
Jayefuu
05828cba29 Added a /spy command to allow players to reveal map 2020-11-04 16:19:52 +00:00
Jayefuu
64d78f590c Enemy combat robots now explode when they timeout
Players were using remotely located artillery wagons in lakes to cheesily clear the map with no repercussions. Swarms of destroyer capsules would hover over the artillery but not target it. They would timeout and  the player could then refill the wagon with ammo.

I've changed the entity_died_events file to events.lua since it now has on_entity_died, on_player_died and on_combat_robot_expired.

I have added the on_combat_robot_expired event so that when the robots timeout they explode, damaging nearby entities.
2020-11-04 11:30:30 +00:00
Jayefuu
0c8a260bdf
Fixed failed checks 2020-10-29 16:38:14 +00:00
Jayefuu
f1956c7224
Begin logging crash site game time to scenario data
Added lines to store the unix time the restart happens as well as how many ticks the game lasted. Starting storing these now so I have some interesting data to use in a week or two.
2020-10-29 16:26:27 +00:00
Jayefuu
cd242aaa80
Update commands.lua 2020-10-24 11:43:31 +01:00
Jayefuu
073198530b
Update commands.lua
Added changed requested by grilledham:
- Used format_time function
- Added local var to show that text string was role ID.
- Added another commented var with the ID of a test role in case we want to test something and not ping @crash_site
- Added markdown to make printed string bold
2020-10-23 17:10:04 +01:00
Jayefuu
4b2b22b05c
Added Discord notification for "@crash site" when map restarts
Added discord notification for the @crash site role when crash site is restarted using the /restart command. Pings users with @Crash Site role and prints the map time to add to competitiveness.
2020-10-22 18:56:53 +01:00
Jayefuu
166186c11b
Update commands.lua
Added suggested text fixes and cleared up lua check failures.
2020-10-10 13:07:22 +01:00
Jayefuu
c674c1b5e5
Updated crashsite commands.lua to check total biter count
Allows players to restart if there are less than 20 biters left since they were struggling to find the last few.
2020-10-10 10:41:25 +01:00
James Gillham
3a3dcad250 Change crashsite cutscene surface to not spawn enemies. 2020-10-05 20:10:49 +01:00
Jayefuu
5840f143f2
Update map.lua
Uses new builder function to ensure there are no rocks in the position the silo will spawn.
2020-10-04 18:04:04 +01:00
Jayefuu
ff989b9c30
Updated to add Builders.remove_map_gen_simple_entity to remove rocks
Space race has a bug that sometimes a rock will spawn where the silo needs to be. But the code only removes trees. This will allow me to call a function to delete rocks.
2020-10-04 17:59:56 +01:00
grilledham
3e9b24fdf0
Merge pull request #1088 from Refactorio/Jayefuu-patch-1
Updated crash site /restart command so that auto trusted and regulars can call it when map is cleared
2020-10-03 21:07:51 +01:00
James Gillham
23bf630cc1 Fix non-admin restart
- Stop the entities count from counting entities on the 'nauvis' and 'cutscene' surfaces.
- Only print abort message to admins.
2020-10-03 15:32:57 +01:00
Jayefuu
ca483ed3c9
Update commands.lua
- Fixed LUA check failures
- Added suggestions by grilledham
- Tested /restart still works from server console
2020-10-01 21:52:47 +01:00
Jayefuu
467092cd6e
Update commands.lua
- Changed behaviour for non-admins. Now checks for spawners, biters and turrets but doesn't require walls and power structures to be destroyed for restart
- Added checks to limit non-admins from changing the scenario by using an argument after /restart. Now defaults to current scenario for non-admins.
2020-10-01 21:08:09 +01:00
Jayefuu
1684d8924a
Update commands.lua 2020-09-25 11:30:48 +01:00
James Gillham
4742ced9d6 danger_ore_deadlock_beltbox fix name and updates 2020-09-24 20:08:00 +01:00
Jayefuu
4b2510cc47
Updated crash site /restart command so that guests and regulars can call it when map is cleared
Updated crash site /restart command so that guests and regulars can call it when map is cleared
- Only admin can abort, once the map is cleared.
- Guests and Regular can both call /restart when all enemy units and structures are dead
- Tested on S10 by running this command:
/c local surface=game.player.surface
for key, entity in pairs(surface.find_entities_filtered({force="enemy"})) do
	entity.destroy()
end
- Need to merge into develop to test on live server in case conditions at the end of the game are different
- Thought about adding rocket launched condition but decided against it.
2020-09-23 11:14:36 +01:00
James Gillham
bffeb07ca3 Add missing utils.table require. 2020-09-16 20:07:31 +01:00
James Gillham
1487c55791 danger_ore_hub_spiral 2020-09-16 20:01:58 +01:00
James Gillham
2ba12674f2 Remove unused variable. 2020-09-13 14:10:02 +01:00
James Gillham
0c1dd6f1ff Terrafroming danger ore balance changes. 2020-09-13 13:59:36 +01:00
James Gillham
d47803796b Danger ore balance changes:
- Less trees.
- Increase purity of ores.
2020-09-03 14:15:29 +01:00
James Gillham
3cb3809b75 Danger ore - dump container's content as coal ore 2020-09-02 15:04:50 +01:00
James Gillham
d804d29617 terraforming_danger_ore always day 2020-09-02 13:21:16 +01:00
James Gillham
7f8de881f5 Fix seed issue 2020-09-02 13:21:00 +01:00
James Gillham
0ad994dca2 Refactor all the danger ore maps 2020-09-02 12:26:19 +01:00
TWLTriston
fc3b921daf * Fix to allow thermal water extractors (thermal-extractor) to be placed;
* Fix to logistics-0 reference
* Fix to use correct banned_entities.lua file
2020-08-31 13:50:47 +01:00
TWLTriston
5641e99c26 Changing default logistics researched 2020-08-31 13:50:47 +01:00
TWLTriston
c8cb5ba0e5 Tweaks to fluid % and fixing an undefined seed variable 2020-08-31 13:50:47 +01:00
TWLTriston
49b5058d13 Tweak to the purity settings and increased biter rocket clear at 10,000 rockets 2020-08-31 13:50:47 +01:00
TWLTriston
cfb553cca5 Building a bobs+angels version on top of the bobs. Abstracted the ratios build out and increased the rockets to be 1000 instead of 100. 2020-08-31 13:50:47 +01:00
grilledham
c0cc36ccd6 render pollution needed for chunks to unlock 2020-08-31 13:50:47 +01:00
grilledham
4bd615c7b7 updates 2020-08-31 13:50:47 +01:00
grilledham
df7d1a2d98 biter attacks on rocket launch 2020-08-31 13:50:47 +01:00
TWLTriston
8ae7eb6045 Partial commit for adding biter attacks. 2020-08-31 13:49:53 +01:00
grilledham
009bd913eb updated ore ratios 2020-08-31 13:49:53 +01:00
grilledham
e794e85340 reduce starting size to 80 2020-08-31 13:49:53 +01:00
grilledham
598888a3ee use weighted segments 2020-08-31 13:49:53 +01:00
grilledham
ae31250f24 added segment_weighted_pattern builder 2020-08-31 13:49:52 +01:00
TWLTriston
4b75706c10 Moved cobalt and gems to be random ore placements 2020-08-31 13:47:55 +01:00
grilledham
db413097cd updates 2020-08-31 13:47:55 +01:00
grilledham
23bac83a85 mixed_ores config 2020-08-31 13:47:55 +01:00
grilledham
c98be136df updated scenario info + upped pollution thresholds 2020-08-31 13:47:54 +01:00