1
0
mirror of https://github.com/Refactorio/RedMew.git synced 2025-06-17 00:07:51 +02:00
Commit Graph

3711 Commits

Author SHA1 Message Date
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
052c6f17cc Update events.lua 2020-12-08 08:18:31 +00:00
f42367bb7c whitespace 2020-11-29 21:54:15 +00:00
fcca5de12a Logic change and lua check fixes 2020-11-29 21:52:41 +00:00
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
33e378ccda Merge pull request from grilledham/1.1-breaking-changes
1.1 breaking changes
release/2020-11-28-33e378c
2020-11-28 20:01:20 +00:00
8a3de24a1a fix other_corpse_location message. 2020-11-28 16:49:12 +00:00
47b2c9b4ee more clean_cursor -> clear_cursor 2020-11-25 17:37:54 +00:00
0aa689127d train_saviour locale fix 2020-11-25 17:37:34 +00:00
deeb906bc0 luacheck remove unused label 2020-11-24 20:22:29 +00:00
89b3af7f15 Fix diggy gui button styles 2020-11-24 20:20:45 +00:00
4c227a14e8 luacheck - remove trailing whitespace 2020-11-24 20:20:26 +00:00
c72bba28e5 Remove blueprint helper 2020-11-24 17:47:02 +00:00
2bd3348287 ammo-category fixes 2020-11-24 17:45:07 +00:00
762d31d465 Gui fixes 2020-11-24 17:44:31 +00:00
171737e587 Remove removed items/entities. 2020-11-24 16:39:22 +00:00
0b95a25f1d Change train_saviour to use 'player-port' instead of 'small-plane'. 2020-11-24 16:39:22 +00:00
dd0ddd131e technology renames. 2020-11-24 16:39:22 +00:00
df4225eca1 clean_cursor -> clear_cursor 2020-11-24 16:39:21 +00:00
199394ab43 Merge pull request from Refactorio/spidertron-artillery-immunity-fix-attempt-2
Spidertron artillery immunity fix
release/2020-11-18-199394a
2020-11-18 17:10:47 +00:00
97808c15e6 Merge pull request from grilledham/report_time_fix
Fix report showing outdated time.
release/2020-11-17-97808c1
2020-11-17 20:15:42 +00:00
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
6155a7d2f3 Fix report showing outdated time.
When an admin rejoins, if they have the reports open, reopen it again to update the time on the reports.
2020-11-15 20:10:20 +00:00
e7295d9579 Merge pull request from grilledham/jail-character-bug
Fix unjail invulnerable characters
release/2020-11-15-e7295d9
2020-11-15 17:09:23 +00:00
ecb0ee7867 Fix unjail invulnerable characters
- If a player didn't have a character when they were jailed we would record their previous destructible state as `nil` which was treated as `false`. Now we treat `nil` as no previous character info and set the previous destructible state on repsawn/join.
- If a player was unjailed when offline or dead, we wouldn't restore the player character's destructible state, now we wait for them to rejoin/respawn to do that.
2020-11-15 16:38:57 +00:00
7350e8721d Merge pull request from grilledham/feature/corpse_location
Ping corpse location on player death
release/2020-11-15-7350e87
2020-11-15 11:24:48 +00:00
9698d2b109 When not killed by player add 'a' in death message. 2020-11-14 21:44:07 +00:00
c83f2b7206 Merge pull request from Refactorio/miner-grammor
Updated en locale message
release/2020-11-13-c83f2b7
2020-11-13 23:09:02 +00:00
671667adaf fix luacheck issues 2020-11-13 21:05:25 +00:00
cf9e0b6d0c Merge pull request from Refactorio/spidertron_jail_fix
Spidertron jail fix
release/2020-11-13-cf9e0b6
2020-11-13 20:21:55 +00:00
fd49d61d63 Updated en locale message 2020-11-13 20:21:03 +00:00
eb7b43cf1c Add player settings for corpse pings + tests. 2020-11-13 20:06:43 +00:00
5098ab875a Whitespace (╯°□°)╯︵ ┻━┻ 2020-11-13 19:59:46 +00:00
10bff3c5bc Linebreaks mkay! 2020-11-13 19:56:22 +00:00
465f9441ec fixed whitespace 2020-11-13 19:36:46 +00:00
9a2fcd03d5 Fixed jail bug when player in spidertron
As per issue .
- Checks if player is in spidertron
- Sets autopilot destination to position when jail used.
- Tried using similar to the train check but it didn't work for spidertron.
2020-11-13 19:36:20 +00:00
86cbfac9a7 Ping corpse location on player death 2020-11-10 21:11:24 +00:00
4a0b003567 formatting 2020-11-10 21:11:24 +00:00
b2f5cfb7c4 Merge pull request from Refactorio/crash-site-spy-command
Added a /spy command to allow players to reveal map
release/2020-11-10-b2f5cfb
2020-11-10 21:04:59 +00:00
9ed9260a31 Merge pull request from Refactorio/crash-site-artillery-wagon-changes
Add combat robots explode on artillery wagons.
release/2020-11-10-9ed9260
2020-11-10 20:48:33 +00:00
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
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
c13b2822ca Merge pull request from grilledham/gui_update
Gui update
release/2020-11-09-c13b282
2020-11-09 20:35:04 +00:00
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
33bcc880a0 Merge pull request from Refactorio/revert-1099-crash-site-artillery-wagon-changes
Revert "Crash Site: Enemy combat robots now explode when they timeout"
release/2020-11-07-33bcc88
2020-11-07 19:27:17 +00:00
674e95993f Revert "Crash Site: Enemy combat robots now explode when they timeout" 2020-11-07 19:26:09 +00:00
f06d34ca48 Fixed failed checks 2020-11-06 18:56:42 +00:00
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
f19c399bc6 Updated as per suggestions 2020-11-05 18:28:34 +00:00
92373bce63 Merge pull request from Refactorio/crash-site-artillery-wagon-changes
Crash Site: Enemy combat robots now explode when they timeout
release/2020-11-05-92373bc
2020-11-05 16:40:36 +00:00