Skip to content
Snippets Groups Projects
Commit 8a72adab authored by lowercasedonkey's avatar lowercasedonkey
Browse files

fix sep

parent c323cbba
No related branches found
No related tags found
1 merge request!8296Death to js, store deaths in a distinct map instead of a slave property
......@@ -10,6 +10,7 @@ globalThis.allDeaths = function() {
const deceased = getSlave(id);
if (deceased) {
App.UI.DOM.appendNewElement("p", el, death(deceased, deathType));
el.append(sectionBreak());
removeSlave(deceased);
}
}
......@@ -18,6 +19,12 @@ globalThis.allDeaths = function() {
}
return el;
function sectionBreak() {
const hr = document.createElement("hr");
hr.style.margin = "0";
return hr;
}
};
/**
......@@ -32,7 +39,7 @@ globalThis.death = function(slave, deathType) {
He, His,
he, his
} = getPronouns(slave);
App.UI.DOM.appendNewElement("div", el, App.Art.SlaveArtElement(slave, 0, 0), ["imageRef", "smlImg"]);
App.UI.DOM.appendNewElement("div", el, App.Art.SlaveArtElement(slave, 0, 0), ["imageRef", "tinyImg"]);
switch (deathType) {
case "oldAge": {
......@@ -159,14 +166,8 @@ globalThis.death = function(slave, deathType) {
}
}
App.Events.addNode(el, r);
el.append(sectionBreak());
return el;
function sectionBreak() {
const hr = document.createElement("hr");
hr.style.margin = "0";
return hr;
}
return el;
};
globalThis.deathCheck = function() {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment