Browse Source

Allow selections when dumping, added thrusters and modules

master
NorbiPeti 4 years ago
parent
commit
bd813d852d
2 changed files with 39 additions and 1 deletions
  1. +3
    -1
      Pixi/Robots/RobotCommands.cs
  2. +36
    -0
      Pixi/blueprints.json

+ 3
- 1
Pixi/Robots/RobotCommands.cs View File

@@ -31,7 +31,9 @@ namespace Pixi.Robots
{
Player local = new Player(PlayerType.Local);
Block baseBlock = local.GetBlockLookedAt();
Block[] blocks = baseBlock.GetConnectedCubes();
Block[] blocks = local.GetSelectedBlocks();
if (blocks.Length == 0)
blocks = baseBlock.GetConnectedCubes();
bool isBaseScaled = !(baseBlock.Scale.x > 0 && baseBlock.Scale.x < 2 && baseBlock.Scale.y > 0 && baseBlock.Scale.y < 2 && baseBlock.Scale.z > 0 && baseBlock.Scale.z < 2);
if (isBaseScaled)
{


+ 36
- 0
Pixi/blueprints.json
File diff suppressed because it is too large
View File


Loading…
Cancel
Save