BlueGit

blue-star tribegen

Files

tribegen / web / src / Classes / Injury.php

Injury.php

Injury.php 536 B Download Raw
1<?php
2
3require_once __DIR__ . '/../../src/Database/Database.php';
4
5class Injury
6{
7 private static $cureMap = [
8 'wound' => 'basic_medicine',
9 'fracture' => 'bone-setting',
10 'infection' => 'healing_herbs',
11 'poison' => 'antidote',
12 'burn' => 'burn_salve',
13 'malnourished' => 'food', // Cured by having enough food
14 'old-age' => null // Cannot be cured
15 ];
16
17 public static function getCureForCategory($category)
18 {
19 return self::$cureMap[$category] ?? null;
20 }
21}