1
0
mirror of https://github.com/Refactorio/RedMew.git synced 2025-01-05 22:53:39 +02:00
Commit Graph

3711 Commits

Author SHA1 Message Date
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
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
33e378ccda
Merge pull request #1112 from grilledham/1.1-breaking-changes
1.1 breaking changes
2020-11-28 20:01:20 +00:00
James Gillham
8a3de24a1a fix other_corpse_location message. 2020-11-28 16:49:12 +00:00
James Gillham
47b2c9b4ee more clean_cursor -> clear_cursor 2020-11-25 17:37:54 +00:00
James Gillham
0aa689127d train_saviour locale fix 2020-11-25 17:37:34 +00:00
James Gillham
deeb906bc0 luacheck remove unused label 2020-11-24 20:22:29 +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
c72bba28e5 Remove blueprint helper 2020-11-24 17:47:02 +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
199394ab43
Merge pull request #1113 from Refactorio/spidertron-artillery-immunity-fix-attempt-2
Spidertron artillery immunity fix
2020-11-18 17:10:47 +00:00
grilledham
97808c15e6
Merge pull request #1111 from grilledham/report_time_fix
Fix report showing outdated time.
2020-11-17 20:15:42 +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
James Gillham
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
Jayefuu
e7295d9579
Merge pull request #1110 from grilledham/jail-character-bug
Fix unjail invulnerable characters
2020-11-15 17:09:23 +00:00
James Gillham
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
grilledham
7350e8721d
Merge pull request #1105 from grilledham/feature/corpse_location
Ping corpse location on player death
2020-11-15 11:24:48 +00:00
James Gillham
9698d2b109 When not killed by player add 'a' in death message. 2020-11-14 21:44:07 +00:00
Jayefuu
c83f2b7206
Merge pull request #1109 from Refactorio/miner-grammor
Updated en locale message
2020-11-13 23:09:02 +00:00
James Gillham
671667adaf fix luacheck issues 2020-11-13 21:05:25 +00:00
Jayefuu
cf9e0b6d0c
Merge pull request #1108 from Refactorio/spidertron_jail_fix
Spidertron jail fix
2020-11-13 20:21:55 +00:00
Jayefuu
fd49d61d63 Updated en locale message 2020-11-13 20:21:03 +00:00
James Gillham
eb7b43cf1c Add player settings for corpse pings + tests. 2020-11-13 20:06:43 +00:00
Jayefuu
5098ab875a Whitespace (╯°□°)╯︵ ┻━┻ 2020-11-13 19:59:46 +00:00
Jayefuu
10bff3c5bc Linebreaks mkay! 2020-11-13 19:56:22 +00:00
Jayefuu
465f9441ec fixed whitespace 2020-11-13 19:36:46 +00:00
Jayefuu
9a2fcd03d5 Fixed jail bug when player in spidertron
As per issue #1102.
- 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
James Gillham
86cbfac9a7 Ping corpse location on player death 2020-11-10 21:11:24 +00:00
James Gillham
4a0b003567 formatting 2020-11-10 21:11:24 +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
grilledham
9ed9260a31
Merge pull request #1106 from Refactorio/crash-site-artillery-wagon-changes
Add combat robots explode on artillery wagons.
2020-11-10 20:48:33 +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
grilledham
c13b2822ca
Merge pull request #1094 from grilledham/gui_update
Gui update
2020-11-09 20:35:04 +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
33bcc880a0
Merge pull request #1104 from Refactorio/revert-1099-crash-site-artillery-wagon-changes
Revert "Crash Site: Enemy combat robots now explode when they timeout"
2020-11-07 19:27:17 +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
92373bce63
Merge pull request #1099 from Refactorio/crash-site-artillery-wagon-changes
Crash Site: Enemy combat robots now explode when they timeout
2020-11-05 16:40:36 +00:00