Cleanup stack conveyor code (#1946)

- removes now obsolete adhoc boosteffect listing
- clarrify comments a bit more
- monospace align some code
- retexture to avoid shadow conflict
This commit is contained in:
Patrick 'Quezler' Mounier
2020-04-30 21:16:19 +02:00
committed by GitHub
parent d50092e9a2
commit a226cd390c
3 changed files with 5 additions and 7 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.5 KiB

After

Width:  |  Height:  |  Size: 1.4 KiB

View File

@ -52,7 +52,6 @@ public class Conveyor extends Block implements Autotiler{
//have to add a custom calculated speed, since the actual movement speed is apparently not linear
stats.add(BlockStat.itemsMoved, displayedSpeed, StatUnit.itemsSecond);
stats.add(BlockStat.boostEffect, "$blocks.itemsmoved");
}
@Override

View File

@ -58,7 +58,6 @@ public class StackConveyor extends Block implements Autotiler{
super.setStats();
stats.add(BlockStat.itemsMoved, speed * 60, StatUnit.perSecond);
stats.add(BlockStat.boostEffect, "$blocks.itemcapacity");
}
@Override
@ -129,7 +128,7 @@ public class StackConveyor extends Block implements Autotiler{
Tmp.v2.set(tile);
Tmp.v1.interpolate(Tmp.v2, 1f - cooldown, Interpolation.linear);
//fixme
//rotation
float a = (from.rotation()%4) * 90;
float b = (tile.rotation()%4) * 90;
if((from.rotation()%4) == 3 && (tile.rotation()%4) == 0) a = -1 * 90;
@ -195,7 +194,7 @@ public class StackConveyor extends Block implements Autotiler{
if(e.link == -1){
e.items.addAll(items);
e.link = tile.pos();
// ▲ new | old
// ▲ to | from
link = -1;
items.clear();