Atolls tutorial finalized & moved into bundles
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user