diff --git a/graphics/exported/equipment/fractalhull.png b/graphics/exported/equipment/fractalhull.png
new file mode 100644
index 0000000..6e023cf
Binary files /dev/null and b/graphics/exported/equipment/fractalhull.png differ
diff --git a/graphics/exported/equipment/gravitshield.png b/graphics/exported/equipment/gravitshield.png
new file mode 100644
index 0000000..68b259e
Binary files /dev/null and b/graphics/exported/equipment/gravitshield.png differ
diff --git a/graphics/exported/equipment/harcoatedhull.png b/graphics/exported/equipment/harcoatedhull.png
new file mode 100644
index 0000000..e068ffc
Binary files /dev/null and b/graphics/exported/equipment/harcoatedhull.png differ
diff --git a/graphics/exported/equipment/invertershield.png b/graphics/exported/equipment/invertershield.png
new file mode 100644
index 0000000..7256ca5
Binary files /dev/null and b/graphics/exported/equipment/invertershield.png differ
diff --git a/graphics/ui/actions.svg b/graphics/ui/actions.svg
index d8e39b6..b60bb71 100644
--- a/graphics/ui/actions.svg
+++ b/graphics/ui/actions.svg
@@ -16,12 +16,111 @@
version="1.1"
inkscape:version="0.92.1 r15371"
sodipodi:docname="actions.svg"
- inkscape:export-filename="/home/michael/workspace/perso/spacetac/out/assets/images/equipment/damageprotector.png"
+ inkscape:export-filename="/home/michael/workspace/perso/spacetac/graphics/exported/equipment/invertershield.png"
inkscape:export-xdpi="90"
inkscape:export-ydpi="90"
- viewBox="0 0 256 256">
+ viewBox="0 0 256 256"
+ enable-background="new">
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -627,6 +726,99 @@
stdDeviation="0.52701551"
id="feGaussianBlur5537" />
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ showguides="false"
+ inkscape:snap-others="true"
+ inkscape:snap-grids="false"
+ inkscape:snap-to-guides="true"
+ inkscape:object-paths="true">
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ style="display:none">
+ style="opacity:0.32900002" />
SpaceTac - Loot Generator Samples
+
@@ -63,12 +66,17 @@
window.onload = function () {
var generator = new TS.SpaceTac.LootGenerator();
var result = document.getElementById("result");
+ var current_level = 1;
+ var current_name = "";
- function update(level) {
+ function update() {
result.innerHTML = "";
generator.templates.forEach(function (template) {
+ if (template.name != current_name) {
+ return;
+ }
TS.iterenum(TS.SpaceTac.EquipmentQuality, function (quality) {
- var loot = template.generate(level, quality);
+ var loot = template.generate(current_level, quality);
let title = document.createElement("h2");
title.textContent = loot.getFullName() + " (Price " + loot.price.toString() + ")";
@@ -81,10 +89,24 @@
});
}
- update(1);
+ TS.sortedBy(generator.templates, function (template) {
+ return template.name;
+ }).forEach(function (template) {
+ var opt = document.createElement('option');
+ opt.value = template.name;
+ opt.innerHTML = template.name;
+ document.getElementById("template").appendChild(opt);
+ });
+
document.getElementById("level").onchange = function () {
- update(this.value);
+ current_level = this.value;
+ update();
}
+ document.getElementById("template").onchange = function () {
+ current_name = this.value;
+ update();
+ }
+ update();
};