Skip to content
Snippets Groups Projects
Commit 97fbd8c6 authored by Arkerthan's avatar Arkerthan
Browse files

Add links to displayed slaves in surrogacy screen

parent 28a4ad48
No related branches found
No related tags found
1 merge request!11092Fixes & Tweaks
...@@ -57,8 +57,9 @@ App.UI.surrogacyWorkaround = function() { ...@@ -57,8 +57,9 @@ App.UI.surrogacyWorkaround = function() {
for (const slave of V.slaves) { for (const slave of V.slaves) {
if (slave.balls > 0 && slave.pubertyXY === 1 && isSlaveAvailable(slave) && canBreed(donatrix, slave)) { if (slave.balls > 0 && slave.pubertyXY === 1 && isSlaveAvailable(slave) && canBreed(donatrix, slave)) {
App.UI.DOM.appendNewElement("div", node, App.UI.DOM.link( const div = App.UI.DOM.appendNewElement("div", node, App.UI.DOM.referenceSlaveWithPreview(slave, SlaveFullName(slave)));
SlaveFullName(slave), div.append(" ", App.UI.DOM.link(
"Select",
() => { () => {
V.impregnatrix = slave; V.impregnatrix = slave;
App.UI.reload(); App.UI.reload();
...@@ -114,8 +115,9 @@ App.UI.surrogacyWorkaround = function() { ...@@ -114,8 +115,9 @@ App.UI.surrogacyWorkaround = function() {
for (const slave of V.slaves) { for (const slave of V.slaves) {
if (canBeReceptrix(slave)) { if (canBeReceptrix(slave)) {
App.UI.DOM.appendNewElement("div", node, App.UI.DOM.link( const div = App.UI.DOM.appendNewElement("div", node, App.UI.DOM.referenceSlaveWithPreview(slave, SlaveFullName(slave)));
SlaveFullName(slave), div.append(" ", App.UI.DOM.link(
"Select",
() => { () => {
V.receptrix = slave; V.receptrix = slave;
App.UI.reload(); App.UI.reload();
......
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