mirror of
https://github.com/peter-tanner/spidertron-squad-control.git
synced 2024-11-30 11:00:17 +08:00
0.5.1: fixed switched shortcut tools
This commit is contained in:
parent
2ec3a88bc7
commit
6dc1b5dda2
|
@ -60,3 +60,11 @@ Date: 2020-11-28
|
||||||
- Added mod option to override the default tool/remote given by shortcut
|
- Added mod option to override the default tool/remote given by shortcut
|
||||||
- Added mod option to disable player alerts
|
- Added mod option to disable player alerts
|
||||||
- _NOTE: BETA RELEASE - USE AT YOUR OWN RISK!
|
- _NOTE: BETA RELEASE - USE AT YOUR OWN RISK!
|
||||||
|
|
||||||
|
---------------------------------------------------------------------------------------------------
|
||||||
|
Version: 0.5.1
|
||||||
|
Date: 2020-11-29
|
||||||
|
Features:
|
||||||
|
- NOTE: BETA RELEASE - USE AT YOUR OWN RISK!
|
||||||
|
Bugfixes:
|
||||||
|
- Fixed switched shortcuts
|
|
@ -58,9 +58,9 @@ script.on_event(defines.events.on_lua_shortcut, function(event)
|
||||||
local settings = settings.get_player_settings(game.players[index])
|
local settings = settings.get_player_settings(game.players[index])
|
||||||
local name = event.prototype_name
|
local name = event.prototype_name
|
||||||
if name == "squad-spidertron-remote" then
|
if name == "squad-spidertron-remote" then
|
||||||
GiveLinkTool(index, settings)
|
|
||||||
elseif name == "squad-spidertron-link-tool" then
|
|
||||||
GiveSquadTool(index, settings)
|
GiveSquadTool(index, settings)
|
||||||
|
elseif name == "squad-spidertron-link-tool" then
|
||||||
|
GiveLinkTool(index, settings)
|
||||||
elseif name == "squad-spidertron-follow" then
|
elseif name == "squad-spidertron-follow" then
|
||||||
-- squad_leader_state(index)
|
-- squad_leader_state(index)
|
||||||
SpiderbotFollow(game.players[index])
|
SpiderbotFollow(game.players[index])
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "Spider_Control",
|
"name": "Spider_Control",
|
||||||
"version": "0.5.0",
|
"version": "0.5.1",
|
||||||
"factorio_version": "1.1",
|
"factorio_version": "1.1",
|
||||||
"title": "Spidertron squad control [BETA RELEASE]",
|
"title": "Spidertron squad control [BETA RELEASE]",
|
||||||
"author": "npc_strider(morley376)",
|
"author": "npc_strider(morley376)",
|
||||||
|
|
Loading…
Reference in New Issue
Block a user