Merge remote-tracking branch 'origin/master'
This commit is contained in:
@@ -1438,6 +1438,8 @@ block.item-source.description = Infinitely outputs items. Sandbox only.
|
|||||||
block.item-void.description = Destroys any items. Sandbox only.
|
block.item-void.description = Destroys any items. Sandbox only.
|
||||||
block.liquid-source.description = Infinitely outputs liquids. Sandbox only.
|
block.liquid-source.description = Infinitely outputs liquids. Sandbox only.
|
||||||
block.liquid-void.description = Removes any liquids. Sandbox only.
|
block.liquid-void.description = Removes any liquids. Sandbox only.
|
||||||
|
block.payload-source.description = Infinitely outputs payloads. Sandbox only.
|
||||||
|
block.payload-void.description = Destroys any payloads. Sandbox only.
|
||||||
block.copper-wall.description = Protects structures from enemy projectiles.
|
block.copper-wall.description = Protects structures from enemy projectiles.
|
||||||
block.copper-wall-large.description = Protects structures from enemy projectiles.
|
block.copper-wall-large.description = Protects structures from enemy projectiles.
|
||||||
block.titanium-wall.description = Protects structures from enemy projectiles.
|
block.titanium-wall.description = Protects structures from enemy projectiles.
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ public class CircleFormation extends FormationPattern{
|
|||||||
@Override
|
@Override
|
||||||
public Vec3 calculateSlotLocation(Vec3 outLocation, int slotNumber){
|
public Vec3 calculateSlotLocation(Vec3 outLocation, int slotNumber){
|
||||||
if(slots > 1){
|
if(slots > 1){
|
||||||
float angle = (360f * slotNumber) / slots + slots == 8 ? 22.5f : 0;
|
float angle = (360f * slotNumber) / slots + (slots == 8 ? 22.5f : 0);
|
||||||
float radius = spacing / (float)Math.sin(180f / slots * Mathf.degRad);
|
float radius = spacing / (float)Math.sin(180f / slots * Mathf.degRad);
|
||||||
outLocation.set(Angles.trnsx(angle, radius), Angles.trnsy(angle, radius), angle);
|
outLocation.set(Angles.trnsx(angle, radius), Angles.trnsy(angle, radius), angle);
|
||||||
}else{
|
}else{
|
||||||
|
|||||||
Reference in New Issue
Block a user