add fighting
@@ -836,7 +836,7 @@ class TribeGenApp
836
836
const statsGrid = document.getElementById('koboldStats');
837
837
statsGrid.innerHTML = '';
838
838
839
const stats = ['vitality', 'intelligence', 'tinkering', 'medicine', 'crafting', 'personality', 'will'];
839
const stats = ['vitality', 'intelligence', 'tinkering', 'medicine', 'crafting', 'personality', 'will', 'fighting'];
840
840
stats.forEach(stat =>
841
841
{
842
842
const value = kobold.stats[stat];
@@ -836,7 +836,7 @@ class TribeGenApp836
const statsGrid = document.getElementById('koboldStats');836
const statsGrid = document.getElementById('koboldStats');837
statsGrid.innerHTML = '';837
statsGrid.innerHTML = '';838
838
839
const stats = ['vitality', 'intelligence', 'tinkering', 'medicine', 'crafting', 'personality', 'will'];839
const stats = ['vitality', 'intelligence', 'tinkering', 'medicine', 'crafting', 'personality', 'will', 'fighting'];840
stats.forEach(stat =>840
stats.forEach(stat =>841
{841
{842
const value = kobold.stats[stat];842
const value = kobold.stats[stat];@@ -34,7 +34,8 @@ class Kobold
34
34
'medicine',
35
35
'crafting',
36
36
'personality',
37
'will'
37
'will',
38
'fighting'
38
39
];
39
40
40
41
public function __construct($id, $userId, $saveId, $name, $age, $spriteMorph, $isLeader = false)
@@ -34,7 +34,8 @@ class Kobold34
'medicine',34
'medicine',35
'crafting',35
'crafting',36
'personality',36
'personality',37
'will'37
'will',38
'fighting'38
];39
];39
40
40
public function __construct($id, $userId, $saveId, $name, $age, $spriteMorph, $isLeader = false)41
public function __construct($id, $userId, $saveId, $name, $age, $spriteMorph, $isLeader = false)@@ -162,7 +162,7 @@ class GameHelper
162
162
public static function generateRandomStats()
163
163
{
164
164
$stats = [];
165
$statNames = ['vitality', 'intelligence', 'tinkering', 'medicine', 'crafting', 'personality', 'will'];
165
$statNames = ['vitality', 'intelligence', 'tinkering', 'medicine', 'crafting', 'personality', 'will', 'fighting'];
166
166
167
167
foreach ($statNames as $stat) {
168
168
$stats[$stat] = rand(0, 100);
@@ -162,7 +162,7 @@ class GameHelper162
public static function generateRandomStats()162
public static function generateRandomStats()163
{163
{164
$stats = [];164
$stats = [];165
$statNames = ['vitality', 'intelligence', 'tinkering', 'medicine', 'crafting', 'personality', 'will'];165
$statNames = ['vitality', 'intelligence', 'tinkering', 'medicine', 'crafting', 'personality', 'will', 'fighting'];166
166
167
foreach ($statNames as $stat) {167
foreach ($statNames as $stat) {168
$stats[$stat] = rand(0, 100);168
$stats[$stat] = rand(0, 100);@@ -47,7 +47,8 @@ if ($method === 'POST') {
47
47
'medicine' => $kobold->getStat('medicine'),
48
48
'crafting' => $kobold->getStat('crafting'),
49
49
'personality' => $kobold->getStat('personality'),
50
'will' => $kobold->getStat('will')
50
'will' => $kobold->getStat('will'),
51
'fighting' => $kobold->getStat('fighting')
51
52
]
52
53
];
53
54
}
@@ -528,7 +529,8 @@ if ($method === 'POST') {
528
529
'medicine' => $kobold->getStat('medicine'),
529
530
'crafting' => $kobold->getStat('crafting'),
530
531
'personality' => $kobold->getStat('personality'),
531
'will' => $kobold->getStat('will')
532
'will' => $kobold->getStat('will'),
533
'fighting' => $kobold->getStat('fighting')
532
534
],
533
535
'items' => $kobold->getItems() ?? [],
534
536
'injuries' => $kInjuries,
@@ -47,7 +47,8 @@ if ($method === 'POST') {47
'medicine' => $kobold->getStat('medicine'),47
'medicine' => $kobold->getStat('medicine'),48
'crafting' => $kobold->getStat('crafting'),48
'crafting' => $kobold->getStat('crafting'),49
'personality' => $kobold->getStat('personality'),49
'personality' => $kobold->getStat('personality'),50
'will' => $kobold->getStat('will')50
'will' => $kobold->getStat('will'),51
'fighting' => $kobold->getStat('fighting')51
]52
]52
];53
];53
}54
}@@ -528,7 +529,8 @@ if ($method === 'POST') {528
'medicine' => $kobold->getStat('medicine'),529
'medicine' => $kobold->getStat('medicine'),529
'crafting' => $kobold->getStat('crafting'),530
'crafting' => $kobold->getStat('crafting'),530
'personality' => $kobold->getStat('personality'),531
'personality' => $kobold->getStat('personality'),531
'will' => $kobold->getStat('will')532
'will' => $kobold->getStat('will'),533
'fighting' => $kobold->getStat('fighting')532
],534
],533
'items' => $kobold->getItems() ?? [],535
'items' => $kobold->getItems() ?? [],534
'injuries' => $kInjuries,536
'injuries' => $kInjuries,