Atolls tutorial finalized & moved into bundles

This commit is contained in:
Anuken
2026-01-12 23:26:22 -05:00
parent a86761fea6
commit 6313a2b5cc
6 changed files with 20 additions and 2 deletions

View File

@@ -274,7 +274,7 @@ public class CommandAI extends AIController{
if(
(hasStance(UnitStance.patrol) && !hasStance(UnitStance.pursueTarget) && target != null && unit.within(target, unit.type.range - 2f) && !unit.type.circleTarget) ||
(command == UnitCommand.enterPayloadCommand && unit.within(targetPos, 4f) || (targetBuild != null && unit.within(targetBuild, targetBuild.block.size * tilesize/2f * 0.9f))) ||
(command == UnitCommand.loopPayloadCommand && unit.within(targetPos, 10f))
(command == UnitCommand.loopPayloadCommand && unit.within(vecMovePos, 10f))
){
move = false;
}
@@ -343,6 +343,10 @@ public class CommandAI extends AIController{
vecOut.set(vecMovePos);
}
if(command == UnitCommand.loopPayloadCommand){
alwaysArrive = true;
}
if(move){
if(unit.type.circleTarget && attackTarget != null){
target = attackTarget;

View File

@@ -441,7 +441,7 @@ public class FloorRenderer{
vidx += spriteSize;
//fixes graphical artifacting due to low precision positions/UVs. TODO: test for issues
final float grow = 0.01f;
final float grow = 0.03f;
x -= grow;
y -= grow;
width += grow*2f;

View File

@@ -47,6 +47,7 @@ public class MapLocales extends ObjectMap<String, StringMap> implements JsonSeri
public String getProperty(String key){
if(!containsProperty(currentLocale(), key)){
if(containsProperty("en", key)) return get("en").get(key);
if(bundle.has(key)) return bundle.get(key);
return "???" + key + "???";
}
return get(currentLocale()).get(key);