mirror of
https://github.com/badvision/lawless-legends.git
synced 2025-01-13 03:30:28 +00:00
Merge branch 'master' of https://github.com/badvision/lawless-legends
This commit is contained in:
commit
61e568f38d
@ -107,6 +107,7 @@ public class MythosEditor {
|
||||
JAXBElement<Block> root = new JAXBElement<>(qName, Block.class, script.getBlock());
|
||||
context.createMarshaller().marshal(root, buffer);
|
||||
String xml = buffer.toString();
|
||||
xml = xml.replaceAll("'", "'");
|
||||
xml = xml.replace("?>", "?><xml>");
|
||||
xml += "</xml>";
|
||||
System.out.println("xml: " + xml);
|
||||
|
@ -41,7 +41,7 @@ public class TileMap extends ArrayList<ArrayList<Tile>> implements Serializable
|
||||
loadFromMap(m);
|
||||
}
|
||||
|
||||
public static final double SATURATION = 0.75;
|
||||
public static final double SATURATION = 0.70;
|
||||
public static final double VALUE = 1.0;
|
||||
public static double HUE = 180;
|
||||
private final java.util.Map<Integer, List<Script>> locationScripts = new HashMap<>();
|
||||
@ -85,7 +85,7 @@ public class TileMap extends ArrayList<ArrayList<Tile>> implements Serializable
|
||||
private void registerLocationScript(int x, int y, Script s) {
|
||||
if (!scriptColors.containsKey(s)) {
|
||||
scriptColors.put(s, Color.hsb(HUE, SATURATION, VALUE));
|
||||
HUE = (HUE + 35) % 360;
|
||||
HUE = (HUE + 27) % 360;
|
||||
}
|
||||
int loc = getMortonNumber(x, y);
|
||||
List<Script> list = locationScripts.get(loc);
|
||||
|
@ -233,7 +233,7 @@ if (typeof Mythos === "undefined") {
|
||||
this.setColour(54);
|
||||
this.appendDummyInput()
|
||||
.appendField("Get Yes or No");
|
||||
this.setOutput(true, "boolean");
|
||||
this.setOutput(true, "Boolean");
|
||||
this.setTooltip('');
|
||||
}
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user