Database Inspector Features
Aetheria Database Tools now has the ability to customize the shapes of items and hardpoints, and displays hardpoints when editing hull shape List elements now have foldouts Lists are presented in the Database Inspector with colors when the list type implements ITintInspector interface
This commit is contained in:
parent
f643f6cc8a
commit
1debe67958
35 changed files with 3066 additions and 499 deletions
|
|
@ -231,7 +231,8 @@ public abstract class Entity
|
|||
if (!hardpoint.Shape[i]) return false;
|
||||
|
||||
// If there is any gear already occupying that space, it won't fit
|
||||
var itemCoord = hardpoint.Position + i;
|
||||
// Items placed in hardpoints are automatically aligned to hardpoint rotation
|
||||
var itemCoord = hardpoint.Position + itemData.Shape.Rotate(i, hardpoint.Rotation);
|
||||
if (_gearOccupancy[itemCoord.x, itemCoord.y] != null) return false;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue