show injuries in list
@@ -447,6 +447,16 @@ button {
447
447
color: #999;
448
448
}
449
449
450
.tribe-item.injured {
451
background: #ffe6e6;
452
border-color: #ff9999;
453
}
454
455
.tribe-item.injured:hover {
456
background: #ffcccc;
457
border-color: #ff6666;
458
}
459
450
460
/* Modal */
451
461
.modal {
452
462
position: fixed;
@@ -447,6 +447,16 @@ button {447
color: #999;447
color: #999;448
}448
}449
449
450
.tribe-item.injured {451
background: #ffe6e6;452
border-color: #ff9999;453
}454
455
.tribe-item.injured:hover {456
background: #ffcccc;457
border-color: #ff6666;458
}459
450
/* Modal */460
/* Modal */451
.modal {461
.modal {452
position: fixed;462
position: fixed;@@ -449,7 +449,8 @@ class TribeGenApp
449
449
{
450
450
const spriteUrl = `api/game/sprite?userId=${this.currentUser.id}&koboldId=${kobold.id}&age=${kobold.ageCategory}`;
451
451
const item = document.createElement('div');
452
item.className = 'tribe-item';
452
const isInjured = kobold.injuries && kobold.injuries.length > 0;
453
item.className = `tribe-item ${isInjured ? 'injured' : ''}`;
453
454
item.innerHTML = `
454
455
<table style="width:100%">
455
456
<td>
@@ -449,7 +449,8 @@ class TribeGenApp449
{449
{450
const spriteUrl = `api/game/sprite?userId=${this.currentUser.id}&koboldId=${kobold.id}&age=${kobold.ageCategory}`;450
const spriteUrl = `api/game/sprite?userId=${this.currentUser.id}&koboldId=${kobold.id}&age=${kobold.ageCategory}`;451
const item = document.createElement('div');451
const item = document.createElement('div');452
item.className = 'tribe-item';452
const isInjured = kobold.injuries && kobold.injuries.length > 0;453
item.className = `tribe-item ${isInjured ? 'injured' : ''}`;453
item.innerHTML = `454
item.innerHTML = `454
<table style="width:100%">455
<table style="width:100%">455
<td>456
<td>@@ -76,7 +76,7 @@ class ExplorationEvent extends Event
76
76
$this->story .= $injuredKobold->getName() . " broke a leg!\n";
77
77
}
78
78
79
$stickFound = rand(1, 100) <= 200;
79
$stickFound = rand(1, 100) <= 20;
80
80
if ($stickFound) {
81
81
$bestKobold = GameHelper::findBestKoboldForStat($explorers, "crafting");
82
82
@@ -76,7 +76,7 @@ class ExplorationEvent extends Event76
$this->story .= $injuredKobold->getName() . " broke a leg!\n";76
$this->story .= $injuredKobold->getName() . " broke a leg!\n";77
}77
}78
78
79
$stickFound = rand(1, 100) <= 200;79
$stickFound = rand(1, 100) <= 20;80
if ($stickFound) {80
if ($stickFound) {81
$bestKobold = GameHelper::findBestKoboldForStat($explorers, "crafting");81
$bestKobold = GameHelper::findBestKoboldForStat($explorers, "crafting");82
82