mirror of
https://github.com/PHIDIAS0303/ExpCluster.git
synced 2025-12-30 12:31:41 +09:00
fix
This commit is contained in:
@@ -229,7 +229,6 @@ Roles.new_role('Member','Mem')
|
|||||||
'command/save-quickbar',
|
'command/save-quickbar',
|
||||||
'gui/vlayer-edit',
|
'gui/vlayer-edit',
|
||||||
'command/personal-logistic',
|
'command/personal-logistic',
|
||||||
'command/personal-logistic-empty',
|
|
||||||
'command/auto-research',
|
'command/auto-research',
|
||||||
'command/manual-train',
|
'command/manual-train',
|
||||||
'command/lawnmower'
|
'command/lawnmower'
|
||||||
|
|||||||
@@ -13,16 +13,6 @@ local function pl(type, target, amount)
|
|||||||
c = target.clear_vehicle_logistic_slot
|
c = target.clear_vehicle_logistic_slot
|
||||||
s = target.set_vehicle_logistic_slot
|
s = target.set_vehicle_logistic_slot
|
||||||
|
|
||||||
elseif type == 'c' then
|
|
||||||
c = target.clear_personal_logistic_slot
|
|
||||||
s = target.set_personal_logistic_slot
|
|
||||||
|
|
||||||
for k, v in pairs(config.request) do
|
|
||||||
c(config.start + v.key)
|
|
||||||
s(config.start + v.key, {name=k, min=0, max=0})
|
|
||||||
end
|
|
||||||
|
|
||||||
return
|
|
||||||
else
|
else
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
@@ -79,11 +69,9 @@ Commands.new_command('personal-logistic', 'Set Personal Logistic (0 to cancel al
|
|||||||
:register(function(player, amount)
|
:register(function(player, amount)
|
||||||
if player.force.technologies['logistic-robotics'].researched then
|
if player.force.technologies['logistic-robotics'].researched then
|
||||||
if player.selected ~= nil then
|
if player.selected ~= nil then
|
||||||
if player.selected.name ~= nil then
|
if player.selected.name == 'spidertron' then
|
||||||
if player.selected.name == 'spidertron' then
|
pl('s', player.selected, amount / 10)
|
||||||
pl('s', player.selected, amount / 10)
|
return Commands.success
|
||||||
return Commands.success
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
else
|
else
|
||||||
pl('p', player, amount / 10)
|
pl('p', player, amount / 10)
|
||||||
@@ -93,14 +81,3 @@ Commands.new_command('personal-logistic', 'Set Personal Logistic (0 to cancel al
|
|||||||
player.print('Player logistic not researched')
|
player.print('Player logistic not researched')
|
||||||
end
|
end
|
||||||
end)
|
end)
|
||||||
|
|
||||||
Commands.new_command('personal-logistic-empty', 'Set Personal Logistic to All 0')
|
|
||||||
:add_alias('ple')
|
|
||||||
:register(function(player)
|
|
||||||
if player.force.technologies['logistic-robotics'].researched then
|
|
||||||
pl('c', player, 0)
|
|
||||||
return Commands.success
|
|
||||||
else
|
|
||||||
player.print('Player logistic not researched')
|
|
||||||
end
|
|
||||||
end)
|
|
||||||
|
|||||||
Reference in New Issue
Block a user