Charakterverwalter: Ausrüstungskatalog mit Selektor im Inventar

- data/item_catalog.csv als kuratierbare Master-Liste (481 Gegenstände nach
  OSE-Kernlisten plus Hausrat, Handel und Schatz), Preise in Silbertalern
  (OSE-Goldmünzen 1:1), Art aus WS_ITEM_CATEGORIES, Verfügbarkeit gestaffelt
  (Methaven/Garana/selten)
- tools/build_item_catalog.py erzeugt app/item_catalog_data.php und
  sql/seed_items.sql; item_catalog_sync() spiegelt den Katalog in die neue
  Tabelle item_catalog (Migration 3)
- Selektor-Dialog im Inventar filtert serverseitig nach Art, Verfügbarkeit und
  Suche (GET item_kind/item_avail/item_q) und übernimmt die Auswahl als
  Inventarzeile (POST /characters/{id}/items/from-catalog)
- Admin-Ansicht Ausrüstung listet den Katalog und liest die CSV neu ein
This commit is contained in:
torsten 2026-11-21 14:31:29 +01:00
parent b68e92f581
commit 5f01146d4b
17 changed files with 2029 additions and 4 deletions

View file

@ -461,6 +461,160 @@ function character_item_add(int $characterId, array $d): void
]);
}
/**
* Ausrüstungskatalog (Selektor im Inventar).
*
* Reihenfolge der Filter: Art (WS_ITEM_CATEGORIES) und Verfügbarkeit als Stufe –
* „Methaven“ liefert nur Dorfware, „Garana“ zusätzlich städtische Ware, „alle“
* auch das, was sonst nirgends zu kaufen ist.
*/
function item_catalog_sync(bool $force = false): int
{
require_once WS_APP . '/item_catalog_data.php';
$data = item_catalog_data();
$expected = count($data);
if (!$force) {
$current = (int) db()->query('SELECT COUNT(*) FROM item_catalog')->fetchColumn();
if ($current === $expected) {
return 0;
}
}
$stmt = db()->prepare(
'INSERT INTO item_catalog (name, kind, cost, weight, availability, note, sort_order)
VALUES (?, ?, ?, ?, ?, ?, ?)
ON DUPLICATE KEY UPDATE kind = VALUES(kind), cost = VALUES(cost), weight = VALUES(weight),
availability = VALUES(availability), note = VALUES(note), sort_order = VALUES(sort_order)'
);
$order = 0;
foreach ($data as $row) {
$order += 10;
$stmt->execute([
shorten((string) $row['name'], 120),
(string) $row['kind'],
(float) $row['cost'],
shorten((string) $row['weight'], 20),
(string) $row['availability'],
shorten((string) $row['note'], 255),
$order,
]);
}
return $expected;
}
/**
* Katalog durchsuchen.
*
* @param array{kind?:string,availability?:string,needle?:string,limit?:int} $filter
* @return list<array<string,mixed>>
*/
function item_catalog_search(array $filter = []): array
{
$where = [];
$args = [];
$kind = (string) ($filter['kind'] ?? '');
if (in_array($kind, WS_ITEM_CATEGORIES, true)) {
$where[] = 'kind = ?';
$args[] = $kind;
}
$availability = (string) ($filter['availability'] ?? '');
if ($availability === 'methaven') {
$where[] = "availability = 'methaven'";
} elseif ($availability === 'garana') {
$where[] = "availability IN ('methaven', 'garana')";
}
$needle = trim((string) ($filter['needle'] ?? ''));
if ($needle !== '') {
$where[] = '(name LIKE ? OR note LIKE ?)';
$args[] = '%' . $needle . '%';
$args[] = '%' . $needle . '%';
}
$limit = max(1, min(400, (int) ($filter['limit'] ?? 150)));
$sql = 'SELECT * FROM item_catalog'
. ($where === [] ? '' : ' WHERE ' . implode(' AND ', $where))
. ' ORDER BY sort_order, name LIMIT ' . $limit;
$stmt = db()->prepare($sql);
$stmt->execute($args);
return $stmt->fetchAll();
}
/** Anzahl der Treffer einer Katalogsuche (ohne Limit). */
function item_catalog_count(array $filter = []): int
{
$where = [];
$args = [];
$kind = (string) ($filter['kind'] ?? '');
if (in_array($kind, WS_ITEM_CATEGORIES, true)) {
$where[] = 'kind = ?';
$args[] = $kind;
}
$availability = (string) ($filter['availability'] ?? '');
if ($availability === 'methaven') {
$where[] = "availability = 'methaven'";
} elseif ($availability === 'garana') {
$where[] = "availability IN ('methaven', 'garana')";
}
$needle = trim((string) ($filter['needle'] ?? ''));
if ($needle !== '') {
$where[] = '(name LIKE ? OR note LIKE ?)';
$args[] = '%' . $needle . '%';
$args[] = '%' . $needle . '%';
}
$stmt = db()->prepare(
'SELECT COUNT(*) FROM item_catalog' . ($where === [] ? '' : ' WHERE ' . implode(' AND ', $where))
);
$stmt->execute($args);
return (int) $stmt->fetchColumn();
}
function item_catalog_find(int $id): ?array
{
$stmt = db()->prepare('SELECT * FROM item_catalog WHERE id = ? LIMIT 1');
$stmt->execute([$id]);
return $stmt->fetch() ?: null;
}
/** Preis eines Katalogeintrags als Text (Silbertaler, ohne Nachkommastellen wenn glatt). */
function item_cost_label(mixed $cost): string
{
$value = (float) $cost;
if ($value <= 0) {
return '–';
}
$text = number_format($value, 2, ',', '.');
$text = rtrim(rtrim($text, '0'), ',');
return $text . ' SM';
}
/** Gewicht eines Katalogeintrags in deutscher Schreibweise. */
function item_weight_label(mixed $weight): string
{
$text = trim((string) $weight);
return $text === '' ? '' : str_replace('.', ',', $text);
}
/** Katalogeintrag ins Inventar übernehmen (ein Stück, Art = Kategorie). */
function character_item_add_from_catalog(int $characterId, int $catalogId): bool
{
$entry = item_catalog_find($catalogId);
if ($entry === null) {
return false;
}
character_item_add($characterId, [
'name' => (string) $entry['name'],
'qty' => 1,
'category' => (string) $entry['kind'],
'weight' => (string) $entry['weight'],
'value' => item_cost_label($entry['cost']),
'equipped' => 0,
'note' => (string) $entry['note'],
]);
return true;
}
function character_item_delete(int $characterId, int $id): void
{
db()->prepare('DELETE FROM character_items WHERE id = ? AND character_id = ?')->execute([$id, $characterId]);

View file

@ -0,0 +1,498 @@
<?php
declare(strict_types=1);
/**
* Westreiche – Ausrüstungskatalog (generiert).
*
* Quelle: westreiche_website/data/item_catalog.csv – dort kuratieren und
* anschließend „python3 tools/build_item_catalog.py“ laufen lassen.
* Preise in Silbertalern (OSE-Goldmünzen 1:1).
*
* @return list<array{name:string,kind:string,cost:float,weight:string,availability:string,note:string}>
*/
function item_catalog_data(): array
{
return [
['name' => 'Knüppel', 'kind' => 'Waffe', 'cost' => 0.50, 'weight' => '1', 'availability' => 'methaven', 'note' => '1W3, stumpf'],
['name' => 'Lasso', 'kind' => 'Waffe', 'cost' => 1.00, 'weight' => '1', 'availability' => 'methaven', 'note' => 'Fängt Tiere und Personen'],
['name' => 'Messer', 'kind' => 'Waffe', 'cost' => 1.00, 'weight' => '0.5', 'availability' => 'methaven', 'note' => 'Alltagswerkzeug, 1W3'],
['name' => 'Mistgabel', 'kind' => 'Waffe', 'cost' => 1.00, 'weight' => '2', 'availability' => 'methaven', 'note' => '1W5, Bauernwaffe'],
['name' => 'Sichel', 'kind' => 'Waffe', 'cost' => 1.00, 'weight' => '0.5', 'availability' => 'methaven', 'note' => '1W4, Erntewerkzeug'],
['name' => 'Steinschleuder', 'kind' => 'Waffe', 'cost' => 1.00, 'weight' => '0.5', 'availability' => 'methaven', 'note' => '1W3, stumpf'],
['name' => 'Wurfspeer', 'kind' => 'Waffe', 'cost' => 1.00, 'weight' => '1', 'availability' => 'methaven', 'note' => 'OSE: 1W4, Wurfwaffe'],
['name' => 'Kurzstab', 'kind' => 'Waffe', 'cost' => 1.50, 'weight' => '1.5', 'availability' => 'methaven', 'note' => '1W4'],
['name' => 'Beil', 'kind' => 'Waffe', 'cost' => 2.00, 'weight' => '1.5', 'availability' => 'methaven', 'note' => '1W5, Werkzeug und Waffe'],
['name' => 'Dreschflegel', 'kind' => 'Waffe', 'cost' => 2.00, 'weight' => '2', 'availability' => 'methaven', 'note' => '1W5, Bauernwaffe'],
['name' => 'Kampfstab', 'kind' => 'Waffe', 'cost' => 2.00, 'weight' => '2', 'availability' => 'methaven', 'note' => 'OSE: 1W4, langsam, beidhändig'],
['name' => 'Netz', 'kind' => 'Waffe', 'cost' => 2.00, 'weight' => '1', 'availability' => 'methaven', 'note' => 'Fesselt auf kurze Distanz'],
['name' => 'Schleuder', 'kind' => 'Waffe', 'cost' => 2.00, 'weight' => '1', 'availability' => 'methaven', 'note' => 'OSE: 1W4, stumpf'],
['name' => 'Sense', 'kind' => 'Waffe', 'cost' => 2.00, 'weight' => '3', 'availability' => 'methaven', 'note' => '1W6, Bauernwaffe'],
['name' => 'Bolas', 'kind' => 'Waffe', 'cost' => 3.00, 'weight' => '1', 'availability' => 'garana', 'note' => 'Wurfwaffe, verwickelt Beine'],
['name' => 'Dolch', 'kind' => 'Waffe', 'cost' => 3.00, 'weight' => '1', 'availability' => 'methaven', 'note' => 'OSE: 1W4, Nahkampf und Wurf'],
['name' => 'Keule', 'kind' => 'Waffe', 'cost' => 3.00, 'weight' => '2.5', 'availability' => 'methaven', 'note' => 'OSE: 1W4, stumpf'],
['name' => 'Langstab', 'kind' => 'Waffe', 'cost' => 3.00, 'weight' => '2.5', 'availability' => 'garana', 'note' => '1W6, beidhändig'],
['name' => 'Speer', 'kind' => 'Waffe', 'cost' => 3.00, 'weight' => '1.5', 'availability' => 'methaven', 'note' => 'OSE: 1W6, auch Wurfwaffe'],
['name' => 'Kampfmesser', 'kind' => 'Waffe', 'cost' => 4.00, 'weight' => '1', 'availability' => 'methaven', 'note' => '1W4, versteckt führbar'],
['name' => 'Stabschleuder', 'kind' => 'Waffe', 'cost' => 4.00, 'weight' => '1.5', 'availability' => 'garana', 'note' => '1W4+1, beidhändig'],
['name' => 'Wurfbeil', 'kind' => 'Waffe', 'cost' => 4.00, 'weight' => '1.5', 'availability' => 'methaven', 'note' => 'OSE: 1W6, auch Wurfwaffe'],
['name' => 'Wurfsterne', 'kind' => 'Waffe', 'cost' => 4.00, 'weight' => '0.5', 'availability' => 'garana', 'note' => '1W3, je Wurf ein Stern'],
['name' => 'Blasrohr', 'kind' => 'Waffe', 'cost' => 5.00, 'weight' => '0.5', 'availability' => 'garana', 'note' => '1W2, Giftwaffen möglich'],
['name' => 'Kriegshammer', 'kind' => 'Waffe', 'cost' => 5.00, 'weight' => '1.5', 'availability' => 'methaven', 'note' => 'OSE: 1W6, stumpf'],
['name' => 'Lanze', 'kind' => 'Waffe', 'cost' => 5.00, 'weight' => '6', 'availability' => 'garana', 'note' => 'OSE: 1W6, Angriff im Galopp'],
['name' => 'Peitsche', 'kind' => 'Waffe', 'cost' => 5.00, 'weight' => '1', 'availability' => 'garana', 'note' => '1W2, Entwaffnen möglich'],
['name' => 'Streitkolben', 'kind' => 'Waffe', 'cost' => 5.00, 'weight' => '1.5', 'availability' => 'methaven', 'note' => 'OSE: 1W6, stumpf'],
['name' => 'Wurfmesser', 'kind' => 'Waffe', 'cost' => 5.00, 'weight' => '0.5', 'availability' => 'garana', 'note' => '1W3, Wurfwaffe'],
['name' => 'Dreizack', 'kind' => 'Waffe', 'cost' => 6.00, 'weight' => '2', 'availability' => 'garana', 'note' => '1W6+1, Stangenwaffe'],
['name' => 'Kriegsbeil', 'kind' => 'Waffe', 'cost' => 6.00, 'weight' => '2', 'availability' => 'garana', 'note' => '1W6'],
['name' => 'Glefe', 'kind' => 'Waffe', 'cost' => 7.00, 'weight' => '4', 'availability' => 'garana', 'note' => '1W8, Stangenwaffe'],
['name' => 'Hellebarde', 'kind' => 'Waffe', 'cost' => 7.00, 'weight' => '5', 'availability' => 'garana', 'note' => 'OSE: 1W10, langsam, beidhändig'],
['name' => 'Kurzschwert', 'kind' => 'Waffe', 'cost' => 7.00, 'weight' => '2', 'availability' => 'garana', 'note' => 'OSE: 1W6'],
['name' => 'Streitaxt', 'kind' => 'Waffe', 'cost' => 7.00, 'weight' => '2.5', 'availability' => 'garana', 'note' => 'OSE: 1W8, langsam, beidhändig'],
['name' => 'Morgenstern', 'kind' => 'Waffe', 'cost' => 8.00, 'weight' => '3', 'availability' => 'garana', 'note' => '1W6+1, stumpf'],
['name' => 'Pike', 'kind' => 'Waffe', 'cost' => 8.00, 'weight' => '6', 'availability' => 'garana', 'note' => '1W8, gegen Reiterei'],
['name' => 'Reiterhammer', 'kind' => 'Waffe', 'cost' => 9.00, 'weight' => '2', 'availability' => 'garana', 'note' => '1W6+1, mit Dorn'],
['name' => 'Langschwert', 'kind' => 'Waffe', 'cost' => 10.00, 'weight' => '3', 'availability' => 'garana', 'note' => 'OSE: 1W8'],
['name' => 'Säbel', 'kind' => 'Waffe', 'cost' => 10.00, 'weight' => '2.5', 'availability' => 'garana', 'note' => '1W6+1'],
['name' => 'Breitschwert', 'kind' => 'Waffe', 'cost' => 12.00, 'weight' => '3', 'availability' => 'garana', 'note' => '1W8, breite Klinge'],
['name' => 'Kettenwaffe', 'kind' => 'Waffe', 'cost' => 12.00, 'weight' => '3', 'availability' => 'garana', 'note' => '1W6, Umgehen von Schilden'],
['name' => 'Krummsäbel', 'kind' => 'Waffe', 'cost' => 12.00, 'weight' => '2.5', 'availability' => 'garana', 'note' => '1W8, Hiebwaffe'],
['name' => 'Jagdbogen', 'kind' => 'Waffe', 'cost' => 15.00, 'weight' => '1.5', 'availability' => 'garana', 'note' => '1W6, für die Jagd'],
['name' => 'Rapier', 'kind' => 'Waffe', 'cost' => 15.00, 'weight' => '2', 'availability' => 'garana', 'note' => '1W6+1, Stichwaffe'],
['name' => 'Zweihänder', 'kind' => 'Waffe', 'cost' => 15.00, 'weight' => '5', 'availability' => 'garana', 'note' => 'OSE: 1W10, langsam, beidhändig'],
['name' => 'Anderthalbhänder', 'kind' => 'Waffe', 'cost' => 18.00, 'weight' => '4', 'availability' => 'garana', 'note' => '1W8+1, ein- oder beidhändig'],
['name' => 'Bidenhänder', 'kind' => 'Waffe', 'cost' => 25.00, 'weight' => '6', 'availability' => 'garana', 'note' => '1W10+1, beidhändig'],
['name' => 'Kurzbogen', 'kind' => 'Waffe', 'cost' => 25.00, 'weight' => '2', 'availability' => 'garana', 'note' => 'OSE: 1W6, beidhändig'],
['name' => 'Leichte Armbrust', 'kind' => 'Waffe', 'cost' => 25.00, 'weight' => '3', 'availability' => 'garana', 'note' => '1W6, Nachladen'],
['name' => 'Schwere Armbrust', 'kind' => 'Waffe', 'cost' => 30.00, 'weight' => '5', 'availability' => 'garana', 'note' => 'OSE: 1W6, Nachladen, langsam, beidhändig'],
['name' => 'Silberdolch', 'kind' => 'Waffe', 'cost' => 30.00, 'weight' => '1', 'availability' => 'garana', 'note' => 'OSE: Silberwaffe gegen Untote und Werwesen'],
['name' => 'Handarmbrust', 'kind' => 'Waffe', 'cost' => 35.00, 'weight' => '2', 'availability' => 'selten', 'note' => '1W4, einhändig'],
['name' => 'Langbogen', 'kind' => 'Waffe', 'cost' => 40.00, 'weight' => '3', 'availability' => 'selten', 'note' => 'OSE: 1W6, beidhändig'],
['name' => 'Kompositbogen', 'kind' => 'Waffe', 'cost' => 50.00, 'weight' => '2', 'availability' => 'selten', 'note' => '1W6+1, Reiterbogen'],
['name' => 'Lederkappe', 'kind' => 'Rüstung', 'cost' => 1.00, 'weight' => '0.5', 'availability' => 'methaven', 'note' => 'einfacher Kopfschutz'],
['name' => 'Kettenhandschuhe', 'kind' => 'Rüstung', 'cost' => 6.00, 'weight' => '1', 'availability' => 'garana', 'note' => 'Paar'],
['name' => 'Wattierte Unterkleidung', 'kind' => 'Rüstung', 'cost' => 6.00, 'weight' => '3', 'availability' => 'methaven', 'note' => 'unter der Rüstung getragen'],
['name' => 'Armschienen', 'kind' => 'Rüstung', 'cost' => 8.00, 'weight' => '2', 'availability' => 'garana', 'note' => 'Paar, aus Metall'],
['name' => 'Kettenhaube', 'kind' => 'Rüstung', 'cost' => 8.00, 'weight' => '3', 'availability' => 'methaven', 'note' => 'schützt Kopf und Nacken'],
['name' => 'Beckenhaube', 'kind' => 'Rüstung', 'cost' => 10.00, 'weight' => '2', 'availability' => 'garana', 'note' => 'Helm mit Gesichtsschutz'],
['name' => 'Beinschienen', 'kind' => 'Rüstung', 'cost' => 10.00, 'weight' => '3', 'availability' => 'garana', 'note' => 'Paar, aus Metall'],
['name' => 'Gambeson', 'kind' => 'Rüstung', 'cost' => 12.00, 'weight' => '6', 'availability' => 'methaven', 'note' => 'RK 8 [11], gepolsterter Wams'],
['name' => 'Reitermantel', 'kind' => 'Rüstung', 'cost' => 15.00, 'weight' => '4', 'availability' => 'garana', 'note' => 'gefüttert, gegen Wetter und Streifschläge'],
['name' => 'Lederrüstung', 'kind' => 'Rüstung', 'cost' => 20.00, 'weight' => '10', 'availability' => 'methaven', 'note' => 'OSE: RK 7 [12]'],
['name' => 'Topfhelm', 'kind' => 'Rüstung', 'cost' => 20.00, 'weight' => '4', 'availability' => 'garana', 'note' => 'Ritterhelm, Sicht schmal'],
['name' => 'Beschlagener Wams', 'kind' => 'Rüstung', 'cost' => 22.00, 'weight' => '9', 'availability' => 'garana', 'note' => 'Leder mit Metallnieten'],
['name' => 'Verstärkte Lederrüstung', 'kind' => 'Rüstung', 'cost' => 25.00, 'weight' => '11', 'availability' => 'garana', 'note' => 'RK 7 [12], mit Metallplatten'],
['name' => 'Visierhelm', 'kind' => 'Rüstung', 'cost' => 25.00, 'weight' => '4', 'availability' => 'selten', 'note' => 'Helm mit aufklappbarem Visier'],
['name' => 'Brigantine', 'kind' => 'Rüstung', 'cost' => 35.00, 'weight' => '14', 'availability' => 'garana', 'note' => 'RK 6 [13], Nietenplatten auf Stoff'],
['name' => 'Kettenhemd', 'kind' => 'Rüstung', 'cost' => 40.00, 'weight' => '20', 'availability' => 'garana', 'note' => 'OSE: RK 5 [14]'],
['name' => 'Plattenrock', 'kind' => 'Rüstung', 'cost' => 40.00, 'weight' => '16', 'availability' => 'garana', 'note' => 'RK 5 [14], Metallplatten im Wams'],
['name' => 'Schuppenpanzer', 'kind' => 'Rüstung', 'cost' => 45.00, 'weight' => '22', 'availability' => 'garana', 'note' => 'RK 5 [14]'],
['name' => 'Lamellenpanzer', 'kind' => 'Rüstung', 'cost' => 50.00, 'weight' => '23', 'availability' => 'selten', 'note' => 'RK 5 [14], östliche Machart'],
['name' => 'Kettenpanzer (lang)', 'kind' => 'Rüstung', 'cost' => 55.00, 'weight' => '24', 'availability' => 'garana', 'note' => 'RK 5 [14], mit Kettenbeinlingen'],
['name' => 'Schienenharnisch', 'kind' => 'Rüstung', 'cost' => 55.00, 'weight' => '20', 'availability' => 'selten', 'note' => 'RK 4 [15]'],
['name' => 'Feldharnisch', 'kind' => 'Rüstung', 'cost' => 90.00, 'weight' => '26', 'availability' => 'selten', 'note' => 'RK 3 [16], leichter Plattenpanzer'],
['name' => 'Plattenpanzer', 'kind' => 'Rüstung', 'cost' => 120.00, 'weight' => '30', 'availability' => 'selten', 'note' => 'RK 3 [16], volle Rüstung'],
['name' => 'Turnierharnisch', 'kind' => 'Rüstung', 'cost' => 180.00, 'weight' => '38', 'availability' => 'selten', 'note' => 'nur für Turnier und Paraden'],
['name' => 'Buckler', 'kind' => 'Schild', 'cost' => 5.00, 'weight' => '2', 'availability' => 'methaven', 'note' => 'OSE: kleiner Faustschild, +1 RK'],
['name' => 'Rundschild', 'kind' => 'Schild', 'cost' => 10.00, 'weight' => '5', 'availability' => 'methaven', 'note' => 'OSE: +1 RK'],
['name' => 'Langschild', 'kind' => 'Schild', 'cost' => 15.00, 'weight' => '7', 'availability' => 'garana', 'note' => '+1 RK, verbesserte Deckung'],
['name' => 'Reiterschild', 'kind' => 'Schild', 'cost' => 18.00, 'weight' => '4', 'availability' => 'garana', 'note' => '+1 RK, für den Sattel'],
['name' => 'Turmschild', 'kind' => 'Schild', 'cost' => 25.00, 'weight' => '10', 'availability' => 'garana', 'note' => '+1 RK, sehr groß'],
['name' => 'Pavese', 'kind' => 'Schild', 'cost' => 30.00, 'weight' => '12', 'availability' => 'garana', 'note' => 'Stellschild mit Stütze'],
['name' => 'Kamm (Knochen)', 'kind' => 'Ausrüstung', 'cost' => 0.50, 'weight' => '0.1', 'availability' => 'methaven', 'note' => ''],
['name' => 'Kohle (Zeichenstift)', 'kind' => 'Ausrüstung', 'cost' => 0.50, 'weight' => '0.1', 'availability' => 'methaven', 'note' => ''],
['name' => 'Sack (Leinen)', 'kind' => 'Ausrüstung', 'cost' => 0.50, 'weight' => '0.3', 'availability' => 'methaven', 'note' => ''],
['name' => 'Schreibfeder', 'kind' => 'Ausrüstung', 'cost' => 0.50, 'weight' => '0.1', 'availability' => 'methaven', 'note' => 'Gänsefeder'],
['name' => 'Würfel (Spiel)', 'kind' => 'Ausrüstung', 'cost' => 0.50, 'weight' => '0.1', 'availability' => 'methaven', 'note' => ''],
['name' => 'Angelhaken (12)', 'kind' => 'Ausrüstung', 'cost' => 1.00, 'weight' => '0.1', 'availability' => 'methaven', 'note' => ''],
['name' => 'Angelschnur (15 m)', 'kind' => 'Ausrüstung', 'cost' => 1.00, 'weight' => '0.2', 'availability' => 'methaven', 'note' => ''],
['name' => 'Bandage (Leinen, 5 m)', 'kind' => 'Ausrüstung', 'cost' => 1.00, 'weight' => '0.2', 'availability' => 'methaven', 'note' => ''],
['name' => 'Becher (Zinn)', 'kind' => 'Ausrüstung', 'cost' => 1.00, 'weight' => '0.3', 'availability' => 'methaven', 'note' => ''],
['name' => 'Besteck (Messer, Löffel)', 'kind' => 'Ausrüstung', 'cost' => 1.00, 'weight' => '0.2', 'availability' => 'methaven', 'note' => ''],
['name' => 'Beutel (Leder)', 'kind' => 'Ausrüstung', 'cost' => 1.00, 'weight' => '0.2', 'availability' => 'methaven', 'note' => ''],
['name' => 'Bratspieß', 'kind' => 'Ausrüstung', 'cost' => 1.00, 'weight' => '0.5', 'availability' => 'methaven', 'note' => ''],
['name' => 'Eimer', 'kind' => 'Ausrüstung', 'cost' => 1.00, 'weight' => '1', 'availability' => 'methaven', 'note' => 'Holz'],
['name' => 'Fackelhalter', 'kind' => 'Ausrüstung', 'cost' => 1.00, 'weight' => '0.5', 'availability' => 'methaven', 'note' => 'Metallring mit Stiel'],
['name' => 'Feldschüssel', 'kind' => 'Ausrüstung', 'cost' => 1.00, 'weight' => '0.5', 'availability' => 'methaven', 'note' => 'Holz'],
['name' => 'Feuerstein und Stahl', 'kind' => 'Ausrüstung', 'cost' => 1.00, 'weight' => '0.2', 'availability' => 'methaven', 'note' => 'OSE: Feueranzünder'],
['name' => 'Gabel', 'kind' => 'Ausrüstung', 'cost' => 1.00, 'weight' => '1', 'availability' => 'methaven', 'note' => 'Heugabel'],
['name' => 'Geldbeutel', 'kind' => 'Ausrüstung', 'cost' => 1.00, 'weight' => '0.2', 'availability' => 'methaven', 'note' => 'mit Zugband'],
['name' => 'Gürtel', 'kind' => 'Ausrüstung', 'cost' => 1.00, 'weight' => '0.3', 'availability' => 'methaven', 'note' => ''],
['name' => 'Gürteltasche', 'kind' => 'Ausrüstung', 'cost' => 1.00, 'weight' => '0.5', 'availability' => 'methaven', 'note' => 'Leder'],
['name' => 'Hufeisen', 'kind' => 'Ausrüstung', 'cost' => 1.00, 'weight' => '1', 'availability' => 'methaven', 'note' => ''],
['name' => 'Hufnägel (20)', 'kind' => 'Ausrüstung', 'cost' => 1.00, 'weight' => '0.2', 'availability' => 'methaven', 'note' => ''],
['name' => 'Hundeleine', 'kind' => 'Ausrüstung', 'cost' => 1.00, 'weight' => '0.3', 'availability' => 'methaven', 'note' => ''],
['name' => 'Kapuze', 'kind' => 'Ausrüstung', 'cost' => 1.00, 'weight' => '0.3', 'availability' => 'methaven', 'note' => ''],
['name' => 'Kerzenhalter', 'kind' => 'Ausrüstung', 'cost' => 1.00, 'weight' => '0.5', 'availability' => 'methaven', 'note' => 'Messing'],
['name' => 'Korb', 'kind' => 'Ausrüstung', 'cost' => 1.00, 'weight' => '0.5', 'availability' => 'methaven', 'note' => 'Weide'],
['name' => 'Meißel', 'kind' => 'Ausrüstung', 'cost' => 1.00, 'weight' => '0.5', 'availability' => 'methaven', 'note' => 'Satz aus Stahl'],
['name' => 'Nagel (10 Stück)', 'kind' => 'Ausrüstung', 'cost' => 1.00, 'weight' => '0.5', 'availability' => 'methaven', 'note' => 'Eisennägel'],
['name' => 'Pergament (Blatt)', 'kind' => 'Ausrüstung', 'cost' => 1.00, 'weight' => '0.1', 'availability' => 'methaven', 'note' => ''],
['name' => 'Pferdebürste', 'kind' => 'Ausrüstung', 'cost' => 1.00, 'weight' => '0.3', 'availability' => 'methaven', 'note' => ''],
['name' => 'Sack (grob, groß)', 'kind' => 'Ausrüstung', 'cost' => 1.00, 'weight' => '0.5', 'availability' => 'methaven', 'note' => ''],
['name' => 'Salbentopf', 'kind' => 'Ausrüstung', 'cost' => 1.00, 'weight' => '0.3', 'availability' => 'methaven', 'note' => 'Ton mit Deckel'],
['name' => 'Seife (Stück)', 'kind' => 'Ausrüstung', 'cost' => 1.00, 'weight' => '0.2', 'availability' => 'methaven', 'note' => ''],
['name' => 'Seil (15 m)', 'kind' => 'Ausrüstung', 'cost' => 1.00, 'weight' => '5', 'availability' => 'methaven', 'note' => 'Hanf'],
['name' => 'Sichel (Werkzeug)', 'kind' => 'Ausrüstung', 'cost' => 1.00, 'weight' => '0.5', 'availability' => 'methaven', 'note' => 'Ernte'],
['name' => 'Striegel', 'kind' => 'Ausrüstung', 'cost' => 1.00, 'weight' => '0.2', 'availability' => 'methaven', 'note' => ''],
['name' => 'Teller (Zinn)', 'kind' => 'Ausrüstung', 'cost' => 1.00, 'weight' => '0.4', 'availability' => 'methaven', 'note' => ''],
['name' => 'Tinte (Flasche)', 'kind' => 'Ausrüstung', 'cost' => 1.00, 'weight' => '0.2', 'availability' => 'methaven', 'note' => ''],
['name' => 'Tintenfass', 'kind' => 'Ausrüstung', 'cost' => 1.00, 'weight' => '0.3', 'availability' => 'methaven', 'note' => 'Horn oder Ton'],
['name' => 'Wachs (Siegel)', 'kind' => 'Ausrüstung', 'cost' => 1.00, 'weight' => '0.2', 'availability' => 'methaven', 'note' => ''],
['name' => 'Waffenfett', 'kind' => 'Ausrüstung', 'cost' => 1.00, 'weight' => '0.2', 'availability' => 'methaven', 'note' => 'gegen Rost'],
['name' => 'Wasserschlauch', 'kind' => 'Ausrüstung', 'cost' => 1.00, 'weight' => '1', 'availability' => 'methaven', 'note' => 'Leder, fasst 1 Liter'],
['name' => 'Beil (Werkzeug)', 'kind' => 'Ausrüstung', 'cost' => 2.00, 'weight' => '1.5', 'availability' => 'methaven', 'note' => 'Handbeil'],
['name' => 'Dreschflegel (Werkzeug)', 'kind' => 'Ausrüstung', 'cost' => 2.00, 'weight' => '2', 'availability' => 'methaven', 'note' => 'Dreschen'],
['name' => 'Feile', 'kind' => 'Ausrüstung', 'cost' => 2.00, 'weight' => '0.5', 'availability' => 'methaven', 'note' => 'Schlosserfeile'],
['name' => 'Feldflasche', 'kind' => 'Ausrüstung', 'cost' => 2.00, 'weight' => '1', 'availability' => 'garana', 'note' => 'beschichtet, 2 Liter'],
['name' => 'Hacke', 'kind' => 'Ausrüstung', 'cost' => 2.00, 'weight' => '3', 'availability' => 'methaven', 'note' => 'Feldgerät'],
['name' => 'Halfter', 'kind' => 'Ausrüstung', 'cost' => 2.00, 'weight' => '1', 'availability' => 'methaven', 'note' => ''],
['name' => 'Hammer (klein)', 'kind' => 'Ausrüstung', 'cost' => 2.00, 'weight' => '1', 'availability' => 'methaven', 'note' => 'OSE'],
['name' => 'Handschuhe', 'kind' => 'Ausrüstung', 'cost' => 2.00, 'weight' => '0.3', 'availability' => 'methaven', 'note' => 'Leder'],
['name' => 'Hose (wollene)', 'kind' => 'Ausrüstung', 'cost' => 2.00, 'weight' => '0.8', 'availability' => 'methaven', 'note' => ''],
['name' => 'Kartenspiel', 'kind' => 'Ausrüstung', 'cost' => 2.00, 'weight' => '0.2', 'availability' => 'methaven', 'note' => ''],
['name' => 'Kleidung (einfach)', 'kind' => 'Ausrüstung', 'cost' => 2.00, 'weight' => '1', 'availability' => 'methaven', 'note' => 'Hose, Hemd, Gürtel'],
['name' => 'Kneifzange', 'kind' => 'Ausrüstung', 'cost' => 2.00, 'weight' => '0.5', 'availability' => 'methaven', 'note' => ''],
['name' => 'Korb (groß)', 'kind' => 'Ausrüstung', 'cost' => 2.00, 'weight' => '1.5', 'availability' => 'methaven', 'note' => ''],
['name' => 'Paddel', 'kind' => 'Ausrüstung', 'cost' => 2.00, 'weight' => '2', 'availability' => 'methaven', 'note' => ''],
['name' => 'Papier (10 Blatt)', 'kind' => 'Ausrüstung', 'cost' => 2.00, 'weight' => '0.2', 'availability' => 'garana', 'note' => ''],
['name' => 'Pfanne', 'kind' => 'Ausrüstung', 'cost' => 2.00, 'weight' => '1.5', 'availability' => 'methaven', 'note' => 'Eisen'],
['name' => 'Rasiermesser', 'kind' => 'Ausrüstung', 'cost' => 2.00, 'weight' => '0.2', 'availability' => 'methaven', 'note' => ''],
['name' => 'Riechsalz', 'kind' => 'Ausrüstung', 'cost' => 2.00, 'weight' => '0.1', 'availability' => 'garana', 'note' => ''],
['name' => 'Rock (einfach)', 'kind' => 'Ausrüstung', 'cost' => 2.00, 'weight' => '0.8', 'availability' => 'methaven', 'note' => ''],
['name' => 'Schaufel', 'kind' => 'Ausrüstung', 'cost' => 2.00, 'weight' => '3', 'availability' => 'methaven', 'note' => 'Holz und Eisen'],
['name' => 'Schleifstein', 'kind' => 'Ausrüstung', 'cost' => 2.00, 'weight' => '1', 'availability' => 'methaven', 'note' => 'Wetzstein'],
['name' => 'Schröpfkopf', 'kind' => 'Ausrüstung', 'cost' => 2.00, 'weight' => '0.3', 'availability' => 'garana', 'note' => 'Heilwerkzeug'],
['name' => 'Schuhe', 'kind' => 'Ausrüstung', 'cost' => 2.00, 'weight' => '0.6', 'availability' => 'methaven', 'note' => 'Leder'],
['name' => 'Seil (30 m)', 'kind' => 'Ausrüstung', 'cost' => 2.00, 'weight' => '10', 'availability' => 'methaven', 'note' => 'Hanf'],
['name' => 'Sense (Werkzeug)', 'kind' => 'Ausrüstung', 'cost' => 2.00, 'weight' => '3', 'availability' => 'methaven', 'note' => 'Mahd'],
['name' => 'Spaten', 'kind' => 'Ausrüstung', 'cost' => 2.00, 'weight' => '3', 'availability' => 'methaven', 'note' => 'Feldgerät'],
['name' => 'Speer zum Fischen', 'kind' => 'Ausrüstung', 'cost' => 2.00, 'weight' => '1.5', 'availability' => 'methaven', 'note' => ''],
['name' => 'Tunika', 'kind' => 'Ausrüstung', 'cost' => 2.00, 'weight' => '0.7', 'availability' => 'methaven', 'note' => ''],
['name' => 'Umhängetasche', 'kind' => 'Ausrüstung', 'cost' => 2.00, 'weight' => '1', 'availability' => 'methaven', 'note' => 'Leder'],
['name' => 'Weinschlauch', 'kind' => 'Ausrüstung', 'cost' => 2.00, 'weight' => '1', 'availability' => 'methaven', 'note' => 'Ziegenleder'],
['name' => 'Zunderdose', 'kind' => 'Ausrüstung', 'cost' => 2.00, 'weight' => '0.3', 'availability' => 'methaven', 'note' => 'mit Zunder und Schwamm'],
['name' => 'Öllampe', 'kind' => 'Ausrüstung', 'cost' => 2.00, 'weight' => '0.5', 'availability' => 'methaven', 'note' => 'Ton oder Metall'],
['name' => 'Angel (Rute)', 'kind' => 'Ausrüstung', 'cost' => 3.00, 'weight' => '1', 'availability' => 'methaven', 'note' => ''],
['name' => 'Axt (Werkzeug)', 'kind' => 'Ausrüstung', 'cost' => 3.00, 'weight' => '2', 'availability' => 'methaven', 'note' => 'zum Holzhacken'],
['name' => 'Bolzenköcher', 'kind' => 'Ausrüstung', 'cost' => 3.00, 'weight' => '1', 'availability' => 'garana', 'note' => 'fasst 30 Bolzen'],
['name' => 'Bootshaken', 'kind' => 'Ausrüstung', 'cost' => 3.00, 'weight' => '2', 'availability' => 'garana', 'note' => ''],
['name' => 'Decke (Wolle)', 'kind' => 'Ausrüstung', 'cost' => 3.00, 'weight' => '2', 'availability' => 'methaven', 'note' => ''],
['name' => 'Eimer (Leder)', 'kind' => 'Ausrüstung', 'cost' => 3.00, 'weight' => '1', 'availability' => 'garana', 'note' => 'faltbar'],
['name' => 'Hammer (groß)', 'kind' => 'Ausrüstung', 'cost' => 3.00, 'weight' => '3', 'availability' => 'methaven', 'note' => 'Schlosserhammer'],
['name' => 'Hängematte', 'kind' => 'Ausrüstung', 'cost' => 3.00, 'weight' => '1.5', 'availability' => 'methaven', 'note' => 'Tuch'],
['name' => 'Köcher', 'kind' => 'Ausrüstung', 'cost' => 3.00, 'weight' => '1', 'availability' => 'methaven', 'note' => 'fasst 20 Pfeile'],
['name' => 'Ruder', 'kind' => 'Ausrüstung', 'cost' => 3.00, 'weight' => '4', 'availability' => 'garana', 'note' => ''],
['name' => 'Steigbügel', 'kind' => 'Ausrüstung', 'cost' => 3.00, 'weight' => '1', 'availability' => 'methaven', 'note' => 'Paar'],
['name' => 'Stiefel (einfach)', 'kind' => 'Ausrüstung', 'cost' => 3.00, 'weight' => '1', 'availability' => 'methaven', 'note' => 'Leder'],
['name' => 'Wachstafel', 'kind' => 'Ausrüstung', 'cost' => 3.00, 'weight' => '0.5', 'availability' => 'methaven', 'note' => 'mittels Bleigriffel'],
['name' => 'Wundnadel und Faden', 'kind' => 'Ausrüstung', 'cost' => 3.00, 'weight' => '0.1', 'availability' => 'garana', 'note' => ''],
['name' => 'Zange', 'kind' => 'Ausrüstung', 'cost' => 3.00, 'weight' => '1', 'availability' => 'methaven', 'note' => 'Schmiedezange'],
['name' => 'Aderlassmesser', 'kind' => 'Ausrüstung', 'cost' => 4.00, 'weight' => '0.2', 'availability' => 'garana', 'note' => 'Heilwerkzeug'],
['name' => 'Kerzenuhr', 'kind' => 'Ausrüstung', 'cost' => 4.00, 'weight' => '0.5', 'availability' => 'garana', 'note' => 'Zeitmessung per Kerze'],
['name' => 'Mantel (Wolle)', 'kind' => 'Ausrüstung', 'cost' => 4.00, 'weight' => '2', 'availability' => 'methaven', 'note' => ''],
['name' => 'Moskitonetz', 'kind' => 'Ausrüstung', 'cost' => 4.00, 'weight' => '0.5', 'availability' => 'garana', 'note' => ''],
['name' => 'Schlafsack (Wolle)', 'kind' => 'Ausrüstung', 'cost' => 4.00, 'weight' => '3', 'availability' => 'methaven', 'note' => ''],
['name' => 'Schlosserfeile (fein)', 'kind' => 'Ausrüstung', 'cost' => 4.00, 'weight' => '0.4', 'availability' => 'garana', 'note' => ''],
['name' => 'Strickleiter (10 m)', 'kind' => 'Ausrüstung', 'cost' => 4.00, 'weight' => '3', 'availability' => 'garana', 'note' => ''],
['name' => 'Säge', 'kind' => 'Ausrüstung', 'cost' => 4.00, 'weight' => '1', 'availability' => 'methaven', 'note' => 'Zugsäge'],
['name' => 'Vogelkäfig', 'kind' => 'Ausrüstung', 'cost' => 4.00, 'weight' => '2', 'availability' => 'garana', 'note' => ''],
['name' => 'Wams', 'kind' => 'Ausrüstung', 'cost' => 4.00, 'weight' => '1', 'availability' => 'methaven', 'note' => ''],
['name' => 'Wasserfass (klein)', 'kind' => 'Ausrüstung', 'cost' => 4.00, 'weight' => '3', 'availability' => 'methaven', 'note' => 'Holz, 10 Liter'],
['name' => 'Wetzstein (fein)', 'kind' => 'Ausrüstung', 'cost' => 4.00, 'weight' => '0.8', 'availability' => 'garana', 'note' => ''],
['name' => 'Brettspiel (Mühle)', 'kind' => 'Ausrüstung', 'cost' => 5.00, 'weight' => '2', 'availability' => 'garana', 'note' => ''],
['name' => 'Fass (leer, klein)', 'kind' => 'Ausrüstung', 'cost' => 5.00, 'weight' => '8', 'availability' => 'garana', 'note' => ''],
['name' => 'Fischernetz', 'kind' => 'Ausrüstung', 'cost' => 5.00, 'weight' => '4', 'availability' => 'garana', 'note' => 'Wurfnetz für zwei Männer'],
['name' => 'Karrenrad', 'kind' => 'Ausrüstung', 'cost' => 5.00, 'weight' => '8', 'availability' => 'garana', 'note' => 'Ersatzrad für Karren'],
['name' => 'Kiste (Holz)', 'kind' => 'Ausrüstung', 'cost' => 5.00, 'weight' => '6', 'availability' => 'methaven', 'note' => ''],
['name' => 'Kleidung (Reisekleidung)', 'kind' => 'Ausrüstung', 'cost' => 5.00, 'weight' => '2', 'availability' => 'methaven', 'note' => 'derbes Tuch'],
['name' => 'Kletterhaken (10)', 'kind' => 'Ausrüstung', 'cost' => 5.00, 'weight' => '1', 'availability' => 'garana', 'note' => ''],
['name' => 'Kochgeschirr', 'kind' => 'Ausrüstung', 'cost' => 5.00, 'weight' => '3', 'availability' => 'methaven', 'note' => 'Topf mit Deckel'],
['name' => 'Musikinstrument (Flöte)', 'kind' => 'Ausrüstung', 'cost' => 5.00, 'weight' => '0.3', 'availability' => 'garana', 'note' => ''],
['name' => 'Packtaschen', 'kind' => 'Ausrüstung', 'cost' => 5.00, 'weight' => '2', 'availability' => 'garana', 'note' => ''],
['name' => 'Rucksack', 'kind' => 'Ausrüstung', 'cost' => 5.00, 'weight' => '2', 'availability' => 'methaven', 'note' => 'OSE: fasst 40 Gewichtseinheiten'],
['name' => 'Tinte (wertvoll)', 'kind' => 'Ausrüstung', 'cost' => 5.00, 'weight' => '0.2', 'availability' => 'garana', 'note' => 'tiefschwarz, lichtbeständig'],
['name' => 'Zaumzeug', 'kind' => 'Ausrüstung', 'cost' => 5.00, 'weight' => '2', 'availability' => 'methaven', 'note' => 'Leder'],
['name' => 'Bottich', 'kind' => 'Ausrüstung', 'cost' => 6.00, 'weight' => '10', 'availability' => 'garana', 'note' => ''],
['name' => 'Brennglas', 'kind' => 'Ausrüstung', 'cost' => 6.00, 'weight' => '0.2', 'availability' => 'garana', 'note' => 'Feuer mit Sonnenlicht'],
['name' => 'Pferdedecke', 'kind' => 'Ausrüstung', 'cost' => 6.00, 'weight' => '3', 'availability' => 'garana', 'note' => ''],
['name' => 'Satteltaschen', 'kind' => 'Ausrüstung', 'cost' => 6.00, 'weight' => '2', 'availability' => 'garana', 'note' => 'Paar'],
['name' => 'Schneeschuhe', 'kind' => 'Ausrüstung', 'cost' => 6.00, 'weight' => '2', 'availability' => 'garana', 'note' => ''],
['name' => 'Steigeisen', 'kind' => 'Ausrüstung', 'cost' => 6.00, 'weight' => '1.5', 'availability' => 'garana', 'note' => ''],
['name' => 'Umhang mit Kapuze', 'kind' => 'Ausrüstung', 'cost' => 6.00, 'weight' => '1.5', 'availability' => 'garana', 'note' => ''],
['name' => 'Vorschlaghammer', 'kind' => 'Ausrüstung', 'cost' => 6.00, 'weight' => '6', 'availability' => 'methaven', 'note' => '2W4 als Waffe'],
['name' => 'Wurfhaken', 'kind' => 'Ausrüstung', 'cost' => 6.00, 'weight' => '1.5', 'availability' => 'garana', 'note' => 'mit Seil'],
['name' => 'Ölstein', 'kind' => 'Ausrüstung', 'cost' => 6.00, 'weight' => '0.6', 'availability' => 'garana', 'note' => 'für feine Klingen'],
['name' => 'Blendlaterne', 'kind' => 'Ausrüstung', 'cost' => 8.00, 'weight' => '1', 'availability' => 'garana', 'note' => 'mit Blendschutz'],
['name' => 'Decke (Fell)', 'kind' => 'Ausrüstung', 'cost' => 8.00, 'weight' => '3', 'availability' => 'garana', 'note' => ''],
['name' => 'Dietrich (einzeln)', 'kind' => 'Ausrüstung', 'cost' => 8.00, 'weight' => '0.2', 'availability' => 'garana', 'note' => ''],
['name' => 'Eispickel', 'kind' => 'Ausrüstung', 'cost' => 8.00, 'weight' => '1.5', 'availability' => 'selten', 'note' => ''],
['name' => 'Enterhaken', 'kind' => 'Ausrüstung', 'cost' => 8.00, 'weight' => '2', 'availability' => 'garana', 'note' => ''],
['name' => 'Feldkessel', 'kind' => 'Ausrüstung', 'cost' => 8.00, 'weight' => '4', 'availability' => 'garana', 'note' => 'hängender Kessel'],
['name' => 'Lederrucksack', 'kind' => 'Ausrüstung', 'cost' => 8.00, 'weight' => '2', 'availability' => 'garana', 'note' => 'wassergeschützt'],
['name' => 'Musikinstrument (Trommel)', 'kind' => 'Ausrüstung', 'cost' => 8.00, 'weight' => '2', 'availability' => 'garana', 'note' => ''],
['name' => 'Notizbuch', 'kind' => 'Ausrüstung', 'cost' => 8.00, 'weight' => '1', 'availability' => 'garana', 'note' => 'Wachs- oder Pergamenttafeln'],
['name' => 'Pergament (10 Blatt)', 'kind' => 'Ausrüstung', 'cost' => 8.00, 'weight' => '1', 'availability' => 'garana', 'note' => ''],
['name' => 'Stiefel (fest)', 'kind' => 'Ausrüstung', 'cost' => 8.00, 'weight' => '1.5', 'availability' => 'garana', 'note' => 'genagelt, wasserdicht'],
['name' => 'Truhe (klein)', 'kind' => 'Ausrüstung', 'cost' => 8.00, 'weight' => '5', 'availability' => 'garana', 'note' => 'Eisenbeschlag'],
['name' => 'Verbandstasche', 'kind' => 'Ausrüstung', 'cost' => 8.00, 'weight' => '1', 'availability' => 'garana', 'note' => 'Bandagen, Salben, Nadel'],
['name' => 'Wagenrad', 'kind' => 'Ausrüstung', 'cost' => 8.00, 'weight' => '12', 'availability' => 'garana', 'note' => 'Ersatzrad für Wagen'],
['name' => 'Werkzeug (Schneider)', 'kind' => 'Ausrüstung', 'cost' => 8.00, 'weight' => '2', 'availability' => 'garana', 'note' => 'Nadeln, Schere, Maßband'],
['name' => 'Brechstange', 'kind' => 'Ausrüstung', 'cost' => 10.00, 'weight' => '5', 'availability' => 'methaven', 'note' => 'OSE'],
['name' => 'Gürtel (wertvoll)', 'kind' => 'Ausrüstung', 'cost' => 10.00, 'weight' => '0.3', 'availability' => 'garana', 'note' => 'mit Metallbeschlag'],
['name' => 'Kamm (Elfenbein)', 'kind' => 'Ausrüstung', 'cost' => 10.00, 'weight' => '0.1', 'availability' => 'selten', 'note' => ''],
['name' => 'Kochset (Reisender)', 'kind' => 'Ausrüstung', 'cost' => 10.00, 'weight' => '4', 'availability' => 'garana', 'note' => 'Topf, Becher, Besteck'],
['name' => 'Laterne', 'kind' => 'Ausrüstung', 'cost' => 10.00, 'weight' => '1', 'availability' => 'garana', 'note' => 'OSE: Öllaterne'],
['name' => 'Mantel (wetterfest)', 'kind' => 'Ausrüstung', 'cost' => 10.00, 'weight' => '3', 'availability' => 'garana', 'note' => 'gewachstes Tuch'],
['name' => 'Sattel (einfach)', 'kind' => 'Ausrüstung', 'cost' => 10.00, 'weight' => '5', 'availability' => 'garana', 'note' => 'OSE: Reitsattel'],
['name' => 'Seide (15 m)', 'kind' => 'Ausrüstung', 'cost' => 10.00, 'weight' => '3', 'availability' => 'garana', 'note' => 'leicht und reißfest'],
['name' => 'Siegel (Petschaft)', 'kind' => 'Ausrüstung', 'cost' => 10.00, 'weight' => '0.2', 'availability' => 'garana', 'note' => 'Wappen oder Zeichen'],
['name' => 'Spiegel (Stahl)', 'kind' => 'Ausrüstung', 'cost' => 10.00, 'weight' => '0.5', 'availability' => 'garana', 'note' => 'polierter Handspiegel'],
['name' => 'Wasserfass (groß)', 'kind' => 'Ausrüstung', 'cost' => 10.00, 'weight' => '10', 'availability' => 'garana', 'note' => 'Holz, 50 Liter'],
['name' => 'Werkzeug (Koch)', 'kind' => 'Ausrüstung', 'cost' => 10.00, 'weight' => '6', 'availability' => 'garana', 'note' => 'Messer, Pfannen, Quirl'],
['name' => 'Werkzeug (Schuster)', 'kind' => 'Ausrüstung', 'cost' => 10.00, 'weight' => '4', 'availability' => 'garana', 'note' => 'Ahlen, Leisten, Messer'],
['name' => 'Zeltplane', 'kind' => 'Ausrüstung', 'cost' => 10.00, 'weight' => '5', 'availability' => 'garana', 'note' => 'wachsgetränkt'],
['name' => 'Musikinstrument (Horn)', 'kind' => 'Ausrüstung', 'cost' => 12.00, 'weight' => '1', 'availability' => 'garana', 'note' => ''],
['name' => 'Schreibzeug (Set)', 'kind' => 'Ausrüstung', 'cost' => 12.00, 'weight' => '1', 'availability' => 'garana', 'note' => 'Feder, Tinte, Sanduhr'],
['name' => 'Sonnenuhr (tragbar)', 'kind' => 'Ausrüstung', 'cost' => 12.00, 'weight' => '0.3', 'availability' => 'garana', 'note' => ''],
['name' => 'Werkzeug (Fischer)', 'kind' => 'Ausrüstung', 'cost' => 12.00, 'weight' => '5', 'availability' => 'garana', 'note' => 'Netze, Haken, Schnur'],
['name' => 'Becher (Silber)', 'kind' => 'Ausrüstung', 'cost' => 15.00, 'weight' => '0.3', 'availability' => 'garana', 'note' => ''],
['name' => 'Grafschaftskarte', 'kind' => 'Ausrüstung', 'cost' => 15.00, 'weight' => '0.2', 'availability' => 'garana', 'note' => 'handgezeichnet'],
['name' => 'Werkzeug (Zimmermann)', 'kind' => 'Ausrüstung', 'cost' => 15.00, 'weight' => '8', 'availability' => 'garana', 'note' => 'Säge, Beitel, Winkel'],
['name' => 'Zelt (klein, 2 Personen)', 'kind' => 'Ausrüstung', 'cost' => 15.00, 'weight' => '8', 'availability' => 'garana', 'note' => ''],
['name' => 'Kleidung (fein)', 'kind' => 'Ausrüstung', 'cost' => 20.00, 'weight' => '2', 'availability' => 'garana', 'note' => 'Tuch eines Bürgers'],
['name' => 'Sanduhr', 'kind' => 'Ausrüstung', 'cost' => 20.00, 'weight' => '1', 'availability' => 'garana', 'note' => 'für eine Stunde'],
['name' => 'Truhe (groß)', 'kind' => 'Ausrüstung', 'cost' => 20.00, 'weight' => '15', 'availability' => 'garana', 'note' => 'mit Schloss'],
['name' => 'Werkzeug (Bergmann)', 'kind' => 'Ausrüstung', 'cost' => 20.00, 'weight' => '12', 'availability' => 'garana', 'note' => 'Hacke, Keil, Lampe'],
['name' => 'Amboss (klein)', 'kind' => 'Ausrüstung', 'cost' => 25.00, 'weight' => '20', 'availability' => 'garana', 'note' => 'für Feldesse'],
['name' => 'Buch (leer, ledergebunden)', 'kind' => 'Ausrüstung', 'cost' => 25.00, 'weight' => '2', 'availability' => 'garana', 'note' => '100 Seiten Pergament'],
['name' => 'Dietrich (Satz)', 'kind' => 'Ausrüstung', 'cost' => 25.00, 'weight' => '0.5', 'availability' => 'selten', 'note' => 'Werkzeug für Schlösser'],
['name' => 'Musikinstrument (Laute)', 'kind' => 'Ausrüstung', 'cost' => 25.00, 'weight' => '2', 'availability' => 'garana', 'note' => ''],
['name' => 'Parfüm (Flasche)', 'kind' => 'Ausrüstung', 'cost' => 25.00, 'weight' => '0.2', 'availability' => 'selten', 'note' => ''],
['name' => 'Werkzeug (Schmied)', 'kind' => 'Ausrüstung', 'cost' => 25.00, 'weight' => '15', 'availability' => 'garana', 'note' => 'Hammer, Zange, Feilen'],
['name' => 'Floß (klein)', 'kind' => 'Ausrüstung', 'cost' => 30.00, 'weight' => '30', 'availability' => 'garana', 'note' => 'für Flussfahrten'],
['name' => 'Karte (Region)', 'kind' => 'Ausrüstung', 'cost' => 30.00, 'weight' => '0.2', 'availability' => 'selten', 'note' => ''],
['name' => 'Sattel (Kriegssattel)', 'kind' => 'Ausrüstung', 'cost' => 30.00, 'weight' => '8', 'availability' => 'selten', 'note' => 'mit hoher Lehne'],
['name' => 'Werkzeug (Schlosser)', 'kind' => 'Ausrüstung', 'cost' => 30.00, 'weight' => '6', 'availability' => 'garana', 'note' => 'Feinwerkzeug'],
['name' => 'Spiegel (Silber)', 'kind' => 'Ausrüstung', 'cost' => 35.00, 'weight' => '0.6', 'availability' => 'selten', 'note' => ''],
['name' => 'Zelt (groß, 6 Personen)', 'kind' => 'Ausrüstung', 'cost' => 35.00, 'weight' => '18', 'availability' => 'garana', 'note' => ''],
['name' => 'Truhe (verschließbar, stark)', 'kind' => 'Ausrüstung', 'cost' => 45.00, 'weight' => '20', 'availability' => 'selten', 'note' => 'doppeltes Schloss'],
['name' => 'Kompass', 'kind' => 'Ausrüstung', 'cost' => 60.00, 'weight' => '0.3', 'availability' => 'selten', 'note' => 'seltener Zwergenkunst'],
['name' => 'Buch (Lehrbuch)', 'kind' => 'Ausrüstung', 'cost' => 80.00, 'weight' => '3', 'availability' => 'selten', 'note' => 'Fachwissen, je Thema'],
['name' => 'Kleidung (adlig)', 'kind' => 'Ausrüstung', 'cost' => 80.00, 'weight' => '3', 'availability' => 'selten', 'note' => 'Seide, Stickerei'],
['name' => 'Wasser (Schlauch)', 'kind' => 'Verbrauch', 'cost' => 0.00, 'weight' => '1', 'availability' => 'methaven', 'note' => 'kostenlos aus Brunnen'],
['name' => 'Bier (Krug)', 'kind' => 'Verbrauch', 'cost' => 0.10, 'weight' => '0.5', 'availability' => 'methaven', 'note' => ''],
['name' => 'Fackel (einzeln)', 'kind' => 'Verbrauch', 'cost' => 0.10, 'weight' => '0.5', 'availability' => 'methaven', 'note' => ''],
['name' => 'Kerze (einzeln)', 'kind' => 'Verbrauch', 'cost' => 0.10, 'weight' => '0.1', 'availability' => 'methaven', 'note' => ''],
['name' => 'Kreide (Stück)', 'kind' => 'Verbrauch', 'cost' => 0.10, 'weight' => '0.1', 'availability' => 'methaven', 'note' => ''],
['name' => 'Brot (Laib)', 'kind' => 'Verbrauch', 'cost' => 0.20, 'weight' => '1', 'availability' => 'methaven', 'note' => ''],
['name' => 'Schleudersteine (20)', 'kind' => 'Verbrauch', 'cost' => 0.20, 'weight' => '2', 'availability' => 'methaven', 'note' => ''],
['name' => 'Schreibsand', 'kind' => 'Verbrauch', 'cost' => 0.20, 'weight' => '0.2', 'availability' => 'methaven', 'note' => ''],
['name' => 'Käse (Stück)', 'kind' => 'Verbrauch', 'cost' => 0.30, 'weight' => '0.3', 'availability' => 'methaven', 'note' => ''],
['name' => 'Nüsse (Beutel)', 'kind' => 'Verbrauch', 'cost' => 0.30, 'weight' => '0.5', 'availability' => 'methaven', 'note' => ''],
['name' => 'Wein (Krug)', 'kind' => 'Verbrauch', 'cost' => 0.30, 'weight' => '0.7', 'availability' => 'methaven', 'note' => ''],
['name' => 'Wurst (Elle)', 'kind' => 'Verbrauch', 'cost' => 0.30, 'weight' => '0.5', 'availability' => 'methaven', 'note' => ''],
['name' => 'Bindfaden (Rolle)', 'kind' => 'Verbrauch', 'cost' => 0.50, 'weight' => '0.3', 'availability' => 'methaven', 'note' => ''],
['name' => 'Essig (Flasche)', 'kind' => 'Verbrauch', 'cost' => 0.50, 'weight' => '0.7', 'availability' => 'methaven', 'note' => ''],
['name' => 'Gesalzener Fisch', 'kind' => 'Verbrauch', 'cost' => 0.50, 'weight' => '1', 'availability' => 'methaven', 'note' => ''],
['name' => 'Getrocknetes Obst', 'kind' => 'Verbrauch', 'cost' => 0.50, 'weight' => '0.5', 'availability' => 'methaven', 'note' => ''],
['name' => 'Holzscheit (Bund)', 'kind' => 'Verbrauch', 'cost' => 0.50, 'weight' => '5', 'availability' => 'methaven', 'note' => ''],
['name' => 'Kohle (Zeichenkohle, Bund)', 'kind' => 'Verbrauch', 'cost' => 0.50, 'weight' => '0.2', 'availability' => 'methaven', 'note' => ''],
['name' => 'Met (Krug)', 'kind' => 'Verbrauch', 'cost' => 0.50, 'weight' => '0.8', 'availability' => 'garana', 'note' => ''],
['name' => 'Ration (Trockenkost, 1 Tag)', 'kind' => 'Verbrauch', 'cost' => 0.50, 'weight' => '1', 'availability' => 'methaven', 'note' => 'OSE: Standardration'],
['name' => 'Salz (Pfund)', 'kind' => 'Verbrauch', 'cost' => 0.50, 'weight' => '0.5', 'availability' => 'methaven', 'note' => 'lebenswichtig'],
['name' => 'Schnur (10 m)', 'kind' => 'Verbrauch', 'cost' => 0.50, 'weight' => '0.2', 'availability' => 'methaven', 'note' => ''],
['name' => 'Senf (Topf)', 'kind' => 'Verbrauch', 'cost' => 0.50, 'weight' => '0.3', 'availability' => 'methaven', 'note' => ''],
['name' => 'Tinte (Nachfüllung)', 'kind' => 'Verbrauch', 'cost' => 0.50, 'weight' => '0.2', 'availability' => 'methaven', 'note' => ''],
['name' => 'Wachsklumpen', 'kind' => 'Verbrauch', 'cost' => 0.50, 'weight' => '0.2', 'availability' => 'methaven', 'note' => ''],
['name' => 'Zunder (Beutel)', 'kind' => 'Verbrauch', 'cost' => 0.50, 'weight' => '0.1', 'availability' => 'methaven', 'note' => ''],
['name' => 'Bienenwachs', 'kind' => 'Verbrauch', 'cost' => 1.00, 'weight' => '0.5', 'availability' => 'methaven', 'note' => ''],
['name' => 'Fackeln (6 Stück)', 'kind' => 'Verbrauch', 'cost' => 1.00, 'weight' => '3', 'availability' => 'methaven', 'note' => ''],
['name' => 'Fett (Topf)', 'kind' => 'Verbrauch', 'cost' => 1.00, 'weight' => '0.5', 'availability' => 'methaven', 'note' => ''],
['name' => 'Futter (Sack)', 'kind' => 'Verbrauch', 'cost' => 1.00, 'weight' => '10', 'availability' => 'methaven', 'note' => ''],
['name' => 'Hafer (Sack)', 'kind' => 'Verbrauch', 'cost' => 1.00, 'weight' => '12', 'availability' => 'methaven', 'note' => ''],
['name' => 'Kerzen (10 Stück)', 'kind' => 'Verbrauch', 'cost' => 1.00, 'weight' => '1', 'availability' => 'methaven', 'note' => ''],
['name' => 'Kohle (Sack)', 'kind' => 'Verbrauch', 'cost' => 1.00, 'weight' => '8', 'availability' => 'methaven', 'note' => ''],
['name' => 'Kräuter (Heil, Bund)', 'kind' => 'Verbrauch', 'cost' => 1.00, 'weight' => '0.1', 'availability' => 'methaven', 'note' => ''],
['name' => 'Käse (Rad)', 'kind' => 'Verbrauch', 'cost' => 1.00, 'weight' => '2', 'availability' => 'methaven', 'note' => ''],
['name' => 'Lauge (Flasche)', 'kind' => 'Verbrauch', 'cost' => 1.00, 'weight' => '0.5', 'availability' => 'methaven', 'note' => ''],
['name' => 'Mehl (Sack)', 'kind' => 'Verbrauch', 'cost' => 1.00, 'weight' => '10', 'availability' => 'methaven', 'note' => ''],
['name' => 'Pech (Topf)', 'kind' => 'Verbrauch', 'cost' => 1.00, 'weight' => '0.5', 'availability' => 'methaven', 'note' => ''],
['name' => 'Pfeilspitzen (12)', 'kind' => 'Verbrauch', 'cost' => 1.00, 'weight' => '0.3', 'availability' => 'methaven', 'note' => ''],
['name' => 'Ration (Fleisch, 1 Tag)', 'kind' => 'Verbrauch', 'cost' => 1.00, 'weight' => '1', 'availability' => 'methaven', 'note' => ''],
['name' => 'Rauchkraut (Bund)', 'kind' => 'Verbrauch', 'cost' => 1.00, 'weight' => '0.1', 'availability' => 'garana', 'note' => ''],
['name' => 'Saatgut (Beutel)', 'kind' => 'Verbrauch', 'cost' => 1.00, 'weight' => '1', 'availability' => 'methaven', 'note' => ''],
['name' => 'Ration (Reisender, 1 Tag)', 'kind' => 'Verbrauch', 'cost' => 1.50, 'weight' => '0.8', 'availability' => 'garana', 'note' => 'haltbar, leicht'],
['name' => 'Schinken', 'kind' => 'Verbrauch', 'cost' => 1.50, 'weight' => '2', 'availability' => 'methaven', 'note' => ''],
['name' => 'Schnaps (Flasche)', 'kind' => 'Verbrauch', 'cost' => 1.50, 'weight' => '0.7', 'availability' => 'garana', 'note' => ''],
['name' => 'Hufeisen (Satz)', 'kind' => 'Verbrauch', 'cost' => 2.00, 'weight' => '2', 'availability' => 'methaven', 'note' => ''],
['name' => 'Opferkerzen (12)', 'kind' => 'Verbrauch', 'cost' => 2.00, 'weight' => '1', 'availability' => 'methaven', 'note' => ''],
['name' => 'Pfeife', 'kind' => 'Verbrauch', 'cost' => 2.00, 'weight' => '0.1', 'availability' => 'methaven', 'note' => ''],
['name' => 'Pfeile (20)', 'kind' => 'Verbrauch', 'cost' => 2.00, 'weight' => '1', 'availability' => 'methaven', 'note' => 'OSE: je 20 Stück'],
['name' => 'Räucherwerk (Bund)', 'kind' => 'Verbrauch', 'cost' => 2.00, 'weight' => '0.2', 'availability' => 'garana', 'note' => ''],
['name' => 'Teer (Eimer)', 'kind' => 'Verbrauch', 'cost' => 2.00, 'weight' => '3', 'availability' => 'garana', 'note' => ''],
['name' => 'Wein (Flasche, gut)', 'kind' => 'Verbrauch', 'cost' => 2.00, 'weight' => '1', 'availability' => 'garana', 'note' => ''],
['name' => 'Öl (Flasche, brennbar)', 'kind' => 'Verbrauch', 'cost' => 2.00, 'weight' => '1', 'availability' => 'methaven', 'note' => 'OSE: Lampenöl'],
['name' => 'Bolzen (20)', 'kind' => 'Verbrauch', 'cost' => 3.00, 'weight' => '1.5', 'availability' => 'garana', 'note' => ''],
['name' => 'Honig (Topf)', 'kind' => 'Verbrauch', 'cost' => 3.00, 'weight' => '1', 'availability' => 'garana', 'note' => ''],
['name' => 'Ration (Zwergenbrot, 1 Tag)', 'kind' => 'Verbrauch', 'cost' => 3.00, 'weight' => '0.5', 'availability' => 'garana', 'note' => 'lange haltbar'],
['name' => 'Riechfläschchen', 'kind' => 'Verbrauch', 'cost' => 3.00, 'weight' => '0.2', 'availability' => 'garana', 'note' => ''],
['name' => 'Seife (Vorrat)', 'kind' => 'Verbrauch', 'cost' => 3.00, 'weight' => '1', 'availability' => 'garana', 'note' => ''],
['name' => 'Tabak (Beutel)', 'kind' => 'Verbrauch', 'cost' => 3.00, 'weight' => '0.2', 'availability' => 'garana', 'note' => ''],
['name' => 'Gewürz (Zimt, Lot)', 'kind' => 'Verbrauch', 'cost' => 4.00, 'weight' => '0.1', 'availability' => 'selten', 'note' => ''],
['name' => 'Salz (Sack)', 'kind' => 'Verbrauch', 'cost' => 4.00, 'weight' => '10', 'availability' => 'garana', 'note' => ''],
['name' => 'Brandsalbe', 'kind' => 'Verbrauch', 'cost' => 5.00, 'weight' => '0.2', 'availability' => 'garana', 'note' => ''],
['name' => 'Eisenration (5 Tage)', 'kind' => 'Verbrauch', 'cost' => 5.00, 'weight' => '5', 'availability' => 'garana', 'note' => ''],
['name' => 'Gewürz (Pfeffer, Lot)', 'kind' => 'Verbrauch', 'cost' => 5.00, 'weight' => '0.1', 'availability' => 'selten', 'note' => ''],
['name' => 'Wurfsterne (5)', 'kind' => 'Verbrauch', 'cost' => 5.00, 'weight' => '0.5', 'availability' => 'garana', 'note' => ''],
['name' => 'Bier (Fass)', 'kind' => 'Verbrauch', 'cost' => 6.00, 'weight' => '30', 'availability' => 'garana', 'note' => ''],
['name' => 'Pfeile (20, Meisterarbeit)', 'kind' => 'Verbrauch', 'cost' => 6.00, 'weight' => '1', 'availability' => 'garana', 'note' => 'besserer Flug'],
['name' => 'Weihrauch (Dose)', 'kind' => 'Verbrauch', 'cost' => 6.00, 'weight' => '0.2', 'availability' => 'garana', 'note' => ''],
['name' => 'Wundsalbe', 'kind' => 'Verbrauch', 'cost' => 6.00, 'weight' => '0.2', 'availability' => 'garana', 'note' => 'beschleunigt Heilung'],
['name' => 'Zucker (Pfund)', 'kind' => 'Verbrauch', 'cost' => 6.00, 'weight' => '0.5', 'availability' => 'selten', 'note' => 'seltene Ware'],
['name' => 'Bolzen (20, Meisterarbeit)', 'kind' => 'Verbrauch', 'cost' => 8.00, 'weight' => '1.5', 'availability' => 'garana', 'note' => ''],
['name' => 'Kräuter (selten, Bund)', 'kind' => 'Verbrauch', 'cost' => 8.00, 'weight' => '0.1', 'availability' => 'garana', 'note' => ''],
['name' => 'Gewürz (Safran, Lot)', 'kind' => 'Verbrauch', 'cost' => 12.00, 'weight' => '0.05', 'availability' => 'selten', 'note' => ''],
['name' => 'Heiliges Öl', 'kind' => 'Verbrauch', 'cost' => 12.00, 'weight' => '0.2', 'availability' => 'garana', 'note' => ''],
['name' => 'Öl (Fass)', 'kind' => 'Verbrauch', 'cost' => 12.00, 'weight' => '20', 'availability' => 'garana', 'note' => ''],
['name' => 'Blendpulver', 'kind' => 'Verbrauch', 'cost' => 15.00, 'weight' => '0.1', 'availability' => 'garana', 'note' => ''],
['name' => 'Fiebersenker (Trank)', 'kind' => 'Verbrauch', 'cost' => 15.00, 'weight' => '0.3', 'availability' => 'garana', 'note' => ''],
['name' => 'Wein (Flasche, edel)', 'kind' => 'Verbrauch', 'cost' => 15.00, 'weight' => '1', 'availability' => 'selten', 'note' => ''],
['name' => 'Gift (einfach, Dosis)', 'kind' => 'Verbrauch', 'cost' => 20.00, 'weight' => '0.1', 'availability' => 'selten', 'note' => 'Hausregel: SL-Entscheid'],
['name' => 'Schlaftrunk', 'kind' => 'Verbrauch', 'cost' => 20.00, 'weight' => '0.3', 'availability' => 'garana', 'note' => ''],
['name' => 'Heiltrank (klein)', 'kind' => 'Verbrauch', 'cost' => 25.00, 'weight' => '0.5', 'availability' => 'garana', 'note' => 'Hausregel: heilt 1W6+1 TP'],
['name' => 'Weihwasser (Phiole)', 'kind' => 'Verbrauch', 'cost' => 25.00, 'weight' => '0.2', 'availability' => 'garana', 'note' => 'OSE: gegen Untote'],
['name' => 'Betäubungspulver', 'kind' => 'Verbrauch', 'cost' => 30.00, 'weight' => '0.1', 'availability' => 'selten', 'note' => ''],
['name' => 'Gegengift', 'kind' => 'Verbrauch', 'cost' => 40.00, 'weight' => '0.3', 'availability' => 'selten', 'note' => ''],
['name' => 'Heiltrank (groß)', 'kind' => 'Verbrauch', 'cost' => 80.00, 'weight' => '0.5', 'availability' => 'selten', 'note' => 'Hausregel: heilt 2W6+2 TP'],
['name' => 'Gift (stark, Dosis)', 'kind' => 'Verbrauch', 'cost' => 120.00, 'weight' => '0.1', 'availability' => 'selten', 'note' => ''],
['name' => 'Fibel (Bronze)', 'kind' => 'Schatz', 'cost' => 2.00, 'weight' => '0.05', 'availability' => 'methaven', 'note' => ''],
['name' => 'Götterfigur (Holz)', 'kind' => 'Schatz', 'cost' => 5.00, 'weight' => '0.5', 'availability' => 'garana', 'note' => ''],
['name' => 'Fremdländische Münze', 'kind' => 'Schatz', 'cost' => 8.00, 'weight' => '0.02', 'availability' => 'garana', 'note' => ''],
['name' => 'Silberring', 'kind' => 'Schatz', 'cost' => 8.00, 'weight' => '0.02', 'availability' => 'garana', 'note' => ''],
['name' => 'Weinkanne (Zinn)', 'kind' => 'Schatz', 'cost' => 8.00, 'weight' => '1.5', 'availability' => 'garana', 'note' => ''],
['name' => 'Bernstein (klein)', 'kind' => 'Schatz', 'cost' => 10.00, 'weight' => '0.05', 'availability' => 'garana', 'note' => ''],
['name' => 'Silberbarren', 'kind' => 'Schatz', 'cost' => 10.00, 'weight' => '0.5', 'availability' => 'garana', 'note' => ''],
['name' => 'Karneol', 'kind' => 'Schatz', 'cost' => 12.00, 'weight' => '0.05', 'availability' => 'garana', 'note' => ''],
['name' => 'Leuchter (Bronze)', 'kind' => 'Schatz', 'cost' => 12.00, 'weight' => '1.5', 'availability' => 'garana', 'note' => ''],
['name' => 'Ohrringe (Silber)', 'kind' => 'Schatz', 'cost' => 12.00, 'weight' => '0.02', 'availability' => 'garana', 'note' => ''],
['name' => 'Samt (Elle)', 'kind' => 'Schatz', 'cost' => 12.00, 'weight' => '0.2', 'availability' => 'selten', 'note' => ''],
['name' => 'Alte Münze (Sammlung)', 'kind' => 'Schatz', 'cost' => 15.00, 'weight' => '0.05', 'availability' => 'garana', 'note' => ''],
['name' => 'Bergkristall', 'kind' => 'Schatz', 'cost' => 15.00, 'weight' => '0.1', 'availability' => 'garana', 'note' => ''],
['name' => 'Brosche (Silber)', 'kind' => 'Schatz', 'cost' => 15.00, 'weight' => '0.05', 'availability' => 'garana', 'note' => ''],
['name' => 'Silberkette', 'kind' => 'Schatz', 'cost' => 15.00, 'weight' => '0.05', 'availability' => 'garana', 'note' => ''],
['name' => 'Armreif (Silber)', 'kind' => 'Schatz', 'cost' => 20.00, 'weight' => '0.1', 'availability' => 'garana', 'note' => ''],
['name' => 'Brokat (Elle)', 'kind' => 'Schatz', 'cost' => 20.00, 'weight' => '0.2', 'availability' => 'selten', 'note' => ''],
['name' => 'Pelz (Fuchs)', 'kind' => 'Schatz', 'cost' => 20.00, 'weight' => '1', 'availability' => 'garana', 'note' => ''],
['name' => 'Tafelgeschirr (Zinn, Set)', 'kind' => 'Schatz', 'cost' => 25.00, 'weight' => '4', 'availability' => 'garana', 'note' => ''],
['name' => 'Türkis', 'kind' => 'Schatz', 'cost' => 25.00, 'weight' => '0.05', 'availability' => 'garana', 'note' => ''],
['name' => 'Wappenrock (adlig)', 'kind' => 'Schatz', 'cost' => 25.00, 'weight' => '1', 'availability' => 'garana', 'note' => ''],
['name' => 'Perle (einzeln)', 'kind' => 'Schatz', 'cost' => 30.00, 'weight' => '0.02', 'availability' => 'garana', 'note' => ''],
['name' => 'Seide (Ball)', 'kind' => 'Schatz', 'cost' => 30.00, 'weight' => '0.5', 'availability' => 'selten', 'note' => ''],
['name' => 'Spiegelrahmen (geschnitzt)', 'kind' => 'Schatz', 'cost' => 30.00, 'weight' => '1', 'availability' => 'garana', 'note' => ''],
['name' => 'Bergkristall (geschliffen)', 'kind' => 'Schatz', 'cost' => 35.00, 'weight' => '0.1', 'availability' => 'selten', 'note' => ''],
['name' => 'Onyx', 'kind' => 'Schatz', 'cost' => 35.00, 'weight' => '0.05', 'availability' => 'selten', 'note' => ''],
['name' => 'Gebetsbuch (fein)', 'kind' => 'Schatz', 'cost' => 40.00, 'weight' => '1', 'availability' => 'garana', 'note' => ''],
['name' => 'Goldring (schlicht)', 'kind' => 'Schatz', 'cost' => 40.00, 'weight' => '0.02', 'availability' => 'garana', 'note' => ''],
['name' => 'Granat', 'kind' => 'Schatz', 'cost' => 40.00, 'weight' => '0.05', 'availability' => 'selten', 'note' => ''],
['name' => 'Weinpokal (Silber)', 'kind' => 'Schatz', 'cost' => 45.00, 'weight' => '0.4', 'availability' => 'garana', 'note' => ''],
['name' => 'Amethyst', 'kind' => 'Schatz', 'cost' => 50.00, 'weight' => '0.05', 'availability' => 'selten', 'note' => ''],
['name' => 'Anhänger (Elfenbein)', 'kind' => 'Schatz', 'cost' => 60.00, 'weight' => '0.05', 'availability' => 'selten', 'note' => ''],
['name' => 'Bernstein (groß)', 'kind' => 'Schatz', 'cost' => 60.00, 'weight' => '0.3', 'availability' => 'selten', 'note' => ''],
['name' => 'Götterfigur (Silber)', 'kind' => 'Schatz', 'cost' => 60.00, 'weight' => '0.3', 'availability' => 'selten', 'note' => ''],
['name' => 'Jade', 'kind' => 'Schatz', 'cost' => 60.00, 'weight' => '0.05', 'availability' => 'selten', 'note' => ''],
['name' => 'Leuchter (Silber)', 'kind' => 'Schatz', 'cost' => 60.00, 'weight' => '1.5', 'availability' => 'selten', 'note' => ''],
['name' => 'Schriftrolle (Kunstwerk)', 'kind' => 'Schatz', 'cost' => 60.00, 'weight' => '0.2', 'availability' => 'selten', 'note' => ''],
['name' => 'Teppich (gewebt)', 'kind' => 'Schatz', 'cost' => 60.00, 'weight' => '6', 'availability' => 'selten', 'note' => ''],
['name' => 'Diadem (Silber)', 'kind' => 'Schatz', 'cost' => 70.00, 'weight' => '0.3', 'availability' => 'selten', 'note' => ''],
['name' => 'Elfenbein (Stück)', 'kind' => 'Schatz', 'cost' => 80.00, 'weight' => '1', 'availability' => 'selten', 'note' => ''],
['name' => 'Lapislazuli', 'kind' => 'Schatz', 'cost' => 80.00, 'weight' => '0.05', 'availability' => 'selten', 'note' => ''],
['name' => 'Elfenbeinschnitzerei', 'kind' => 'Schatz', 'cost' => 90.00, 'weight' => '0.5', 'availability' => 'selten', 'note' => ''],
['name' => 'Goldkette', 'kind' => 'Schatz', 'cost' => 90.00, 'weight' => '0.1', 'availability' => 'selten', 'note' => ''],
['name' => 'Goldbarren (klein)', 'kind' => 'Schatz', 'cost' => 100.00, 'weight' => '0.5', 'availability' => 'selten', 'note' => ''],
['name' => 'Karte (Schatzkarte, echt)', 'kind' => 'Schatz', 'cost' => 100.00, 'weight' => '0.1', 'availability' => 'selten', 'note' => 'SL-Entscheid'],
['name' => 'Armreif (Gold)', 'kind' => 'Schatz', 'cost' => 120.00, 'weight' => '0.15', 'availability' => 'selten', 'note' => ''],
['name' => 'Topas', 'kind' => 'Schatz', 'cost' => 120.00, 'weight' => '0.05', 'availability' => 'selten', 'note' => ''],
['name' => 'Buch (selten, Sammlung)', 'kind' => 'Schatz', 'cost' => 150.00, 'weight' => '3', 'availability' => 'selten', 'note' => ''],
['name' => 'Pelz (Zobel)', 'kind' => 'Schatz', 'cost' => 150.00, 'weight' => '0.5', 'availability' => 'selten', 'note' => ''],
['name' => 'Perlenkette', 'kind' => 'Schatz', 'cost' => 150.00, 'weight' => '0.1', 'availability' => 'selten', 'note' => ''],
['name' => 'Goldring (mit Stein)', 'kind' => 'Schatz', 'cost' => 180.00, 'weight' => '0.02', 'availability' => 'selten', 'note' => ''],
['name' => 'Wandteppich (Bild)', 'kind' => 'Schatz', 'cost' => 180.00, 'weight' => '10', 'availability' => 'selten', 'note' => ''],
['name' => 'Aquamarin', 'kind' => 'Schatz', 'cost' => 200.00, 'weight' => '0.05', 'availability' => 'selten', 'note' => ''],
['name' => 'Reliquie (klein)', 'kind' => 'Schatz', 'cost' => 200.00, 'weight' => '0.3', 'availability' => 'selten', 'note' => 'SL-Entscheid'],
['name' => 'Opal', 'kind' => 'Schatz', 'cost' => 250.00, 'weight' => '0.05', 'availability' => 'selten', 'note' => ''],
['name' => 'Rubin (klein)', 'kind' => 'Schatz', 'cost' => 300.00, 'weight' => '0.05', 'availability' => 'selten', 'note' => ''],
['name' => 'Saphir', 'kind' => 'Schatz', 'cost' => 400.00, 'weight' => '0.05', 'availability' => 'selten', 'note' => ''],
['name' => 'Smaragd', 'kind' => 'Schatz', 'cost' => 500.00, 'weight' => '0.05', 'availability' => 'selten', 'note' => ''],
['name' => 'Krone (vergoldet)', 'kind' => 'Schatz', 'cost' => 800.00, 'weight' => '1', 'availability' => 'selten', 'note' => ''],
['name' => 'Rubin (groß)', 'kind' => 'Schatz', 'cost' => 1200.00, 'weight' => '0.1', 'availability' => 'selten', 'note' => ''],
['name' => 'Huhn', 'kind' => 'Sonstiges', 'cost' => 0.20, 'weight' => '0', 'availability' => 'methaven', 'note' => 'Nutztier'],
['name' => 'Mahlzeit (einfach)', 'kind' => 'Sonstiges', 'cost' => 0.20, 'weight' => '0', 'availability' => 'methaven', 'note' => ''],
['name' => 'Gans', 'kind' => 'Sonstiges', 'cost' => 0.40, 'weight' => '0', 'availability' => 'methaven', 'note' => 'Nutztier'],
['name' => 'Bad im Badehaus', 'kind' => 'Sonstiges', 'cost' => 0.50, 'weight' => '0', 'availability' => 'garana', 'note' => ''],
['name' => 'Fährmann (Überfahrt)', 'kind' => 'Sonstiges', 'cost' => 0.50, 'weight' => '0', 'availability' => 'methaven', 'note' => ''],
['name' => 'Herberge (Nacht, einfach)', 'kind' => 'Sonstiges', 'cost' => 0.50, 'weight' => '0', 'availability' => 'methaven', 'note' => ''],
['name' => 'Pferdepflege (Tag)', 'kind' => 'Sonstiges', 'cost' => 0.50, 'weight' => '0', 'availability' => 'methaven', 'note' => ''],
['name' => 'Katze (Mausefänger)', 'kind' => 'Sonstiges', 'cost' => 1.00, 'weight' => '0', 'availability' => 'methaven', 'note' => ''],
['name' => 'Mahlzeit (gut)', 'kind' => 'Sonstiges', 'cost' => 1.00, 'weight' => '0', 'availability' => 'garana', 'note' => ''],
['name' => 'Salzstein (Handelsware)', 'kind' => 'Sonstiges', 'cost' => 1.00, 'weight' => '2', 'availability' => 'methaven', 'note' => ''],
['name' => 'Stallplatz (Monat)', 'kind' => 'Sonstiges', 'cost' => 1.00, 'weight' => '0', 'availability' => 'methaven', 'note' => ''],
['name' => 'Träger (Tag)', 'kind' => 'Sonstiges', 'cost' => 1.00, 'weight' => '0', 'availability' => 'methaven', 'note' => 'Lohn für einen Tag'],
['name' => 'Handwerker (Tag)', 'kind' => 'Sonstiges', 'cost' => 2.00, 'weight' => '0', 'availability' => 'methaven', 'note' => 'Zimmerer, Schmied, etc.'],
['name' => 'Herberge (Nacht, gut)', 'kind' => 'Sonstiges', 'cost' => 2.00, 'weight' => '0', 'availability' => 'garana', 'note' => ''],
['name' => 'Kurier (Bote, Tag)', 'kind' => 'Sonstiges', 'cost' => 2.00, 'weight' => '0', 'availability' => 'garana', 'note' => ''],
['name' => 'Lagerraum (Monat, Methaven)', 'kind' => 'Sonstiges', 'cost' => 2.00, 'weight' => '0', 'availability' => 'methaven', 'note' => ''],
['name' => 'Schaf', 'kind' => 'Sonstiges', 'cost' => 2.00, 'weight' => '0', 'availability' => 'methaven', 'note' => 'Nutztier'],
['name' => 'Wache (Tag)', 'kind' => 'Sonstiges', 'cost' => 2.00, 'weight' => '0', 'availability' => 'garana', 'note' => ''],
['name' => 'Bleibarren', 'kind' => 'Sonstiges', 'cost' => 3.00, 'weight' => '3', 'availability' => 'garana', 'note' => ''],
['name' => 'Brieftaube', 'kind' => 'Sonstiges', 'cost' => 3.00, 'weight' => '0', 'availability' => 'garana', 'note' => ''],
['name' => 'Führer (Tag)', 'kind' => 'Sonstiges', 'cost' => 3.00, 'weight' => '0', 'availability' => 'garana', 'note' => 'Ortskundiger'],
['name' => 'Söldner (Tag)', 'kind' => 'Sonstiges', 'cost' => 3.00, 'weight' => '0', 'availability' => 'garana', 'note' => ''],
['name' => 'Ziege', 'kind' => 'Sonstiges', 'cost' => 3.00, 'weight' => '0', 'availability' => 'methaven', 'note' => 'Nutztier'],
['name' => 'Bootsmann (Tag)', 'kind' => 'Sonstiges', 'cost' => 4.00, 'weight' => '0', 'availability' => 'garana', 'note' => ''],
['name' => 'Kupferbarren', 'kind' => 'Sonstiges', 'cost' => 4.00, 'weight' => '3', 'availability' => 'garana', 'note' => ''],
['name' => 'Schwein', 'kind' => 'Sonstiges', 'cost' => 4.00, 'weight' => '0', 'availability' => 'methaven', 'note' => 'Nutztier'],
['name' => 'Werkzeugkiste (leer)', 'kind' => 'Sonstiges', 'cost' => 4.00, 'weight' => '3', 'availability' => 'methaven', 'note' => ''],
['name' => 'Hund (Hofhund)', 'kind' => 'Sonstiges', 'cost' => 5.00, 'weight' => '0', 'availability' => 'methaven', 'note' => ''],
['name' => 'Lagerraum (Monat, Garana)', 'kind' => 'Sonstiges', 'cost' => 5.00, 'weight' => '0', 'availability' => 'garana', 'note' => ''],
['name' => 'Schreiber (Auftrag)', 'kind' => 'Sonstiges', 'cost' => 5.00, 'weight' => '0', 'availability' => 'garana', 'note' => 'Brief oder Urkunde'],
['name' => 'Truhe mit Schloss (mietbar)', 'kind' => 'Sonstiges', 'cost' => 5.00, 'weight' => '0', 'availability' => 'garana', 'note' => 'Verwahrung in Garana'],
['name' => 'Träger (Woche)', 'kind' => 'Sonstiges', 'cost' => 5.00, 'weight' => '0', 'availability' => 'methaven', 'note' => ''],
['name' => 'Hanfballen', 'kind' => 'Sonstiges', 'cost' => 6.00, 'weight' => '8', 'availability' => 'methaven', 'note' => ''],
['name' => 'Herberge (Nacht, vornehm)', 'kind' => 'Sonstiges', 'cost' => 6.00, 'weight' => '0', 'availability' => 'selten', 'note' => ''],
['name' => 'Tuchballen (Wolle)', 'kind' => 'Sonstiges', 'cost' => 8.00, 'weight' => '8', 'availability' => 'garana', 'note' => ''],
['name' => 'Wagenplane', 'kind' => 'Sonstiges', 'cost' => 8.00, 'weight' => '0', 'availability' => 'garana', 'note' => ''],
['name' => 'Eisenbarren', 'kind' => 'Sonstiges', 'cost' => 10.00, 'weight' => '3', 'availability' => 'garana', 'note' => ''],
['name' => 'Esel', 'kind' => 'Sonstiges', 'cost' => 10.00, 'weight' => '0', 'availability' => 'methaven', 'note' => 'OSE: Lasttier'],
['name' => 'Übersetzer (Tag)', 'kind' => 'Sonstiges', 'cost' => 10.00, 'weight' => '0', 'availability' => 'selten', 'note' => ''],
['name' => 'Leinenballen', 'kind' => 'Sonstiges', 'cost' => 12.00, 'weight' => '8', 'availability' => 'garana', 'note' => ''],
['name' => 'Pferdegeschirr (Set)', 'kind' => 'Sonstiges', 'cost' => 12.00, 'weight' => '0', 'availability' => 'garana', 'note' => ''],
['name' => 'Kuh', 'kind' => 'Sonstiges', 'cost' => 15.00, 'weight' => '0', 'availability' => 'methaven', 'note' => 'Nutztier'],
['name' => 'Kundschafter (Tag)', 'kind' => 'Sonstiges', 'cost' => 15.00, 'weight' => '0', 'availability' => 'selten', 'note' => ''],
['name' => 'Zinnbarren', 'kind' => 'Sonstiges', 'cost' => 15.00, 'weight' => '3', 'availability' => 'selten', 'note' => ''],
['name' => 'Maultier', 'kind' => 'Sonstiges', 'cost' => 20.00, 'weight' => '0', 'availability' => 'methaven', 'note' => 'OSE: Reittier, zäh'],
['name' => 'Schleifrad', 'kind' => 'Sonstiges', 'cost' => 20.00, 'weight' => '20', 'availability' => 'garana', 'note' => ''],
['name' => 'Schlitten', 'kind' => 'Sonstiges', 'cost' => 20.00, 'weight' => '0', 'availability' => 'garana', 'note' => 'Wintertransport'],
['name' => 'Zeltstadt-Anteil', 'kind' => 'Sonstiges', 'cost' => 20.00, 'weight' => '0', 'availability' => 'garana', 'note' => 'Anteil an einem großen Zelt'],
['name' => 'Hund (Jagdhund)', 'kind' => 'Sonstiges', 'cost' => 25.00, 'weight' => '0', 'availability' => 'garana', 'note' => ''],
['name' => 'Karren (Handkarren)', 'kind' => 'Sonstiges', 'cost' => 25.00, 'weight' => '0', 'availability' => 'methaven', 'note' => 'OSE: zwei Räder'],
['name' => 'Ochse', 'kind' => 'Sonstiges', 'cost' => 30.00, 'weight' => '0', 'availability' => 'methaven', 'note' => 'Zugtier'],
['name' => 'Pony', 'kind' => 'Sonstiges', 'cost' => 30.00, 'weight' => '0', 'availability' => 'garana', 'note' => 'OSE: Reittier, klein'],
['name' => 'Karren (Eselskarren)', 'kind' => 'Sonstiges', 'cost' => 40.00, 'weight' => '0', 'availability' => 'garana', 'note' => ''],
['name' => 'Webstuhl (klein)', 'kind' => 'Sonstiges', 'cost' => 40.00, 'weight' => '25', 'availability' => 'garana', 'note' => ''],
['name' => 'Zugpferd', 'kind' => 'Sonstiges', 'cost' => 40.00, 'weight' => '0', 'availability' => 'garana', 'note' => 'OSE: schweres Zugpferd'],
['name' => 'Feldesse (mobil)', 'kind' => 'Sonstiges', 'cost' => 60.00, 'weight' => '35', 'availability' => 'selten', 'note' => ''],
['name' => 'Hund (Kriegshund)', 'kind' => 'Sonstiges', 'cost' => 60.00, 'weight' => '0', 'availability' => 'selten', 'note' => ''],
['name' => 'Reitpferd', 'kind' => 'Sonstiges', 'cost' => 75.00, 'weight' => '0', 'availability' => 'garana', 'note' => 'OSE: leichtes Reitpferd'],
['name' => 'Amboss (groß)', 'kind' => 'Sonstiges', 'cost' => 80.00, 'weight' => '60', 'availability' => 'selten', 'note' => ''],
['name' => 'Boot (Ruderboot)', 'kind' => 'Sonstiges', 'cost' => 80.00, 'weight' => '0', 'availability' => 'garana', 'note' => 'für vier Personen'],
['name' => 'Destille', 'kind' => 'Sonstiges', 'cost' => 120.00, 'weight' => '15', 'availability' => 'selten', 'note' => 'Alchemistenbedarf'],
['name' => 'Falke (abgerichtet)', 'kind' => 'Sonstiges', 'cost' => 120.00, 'weight' => '0', 'availability' => 'selten', 'note' => ''],
['name' => 'Wagen (Planwagen)', 'kind' => 'Sonstiges', 'cost' => 120.00, 'weight' => '0', 'availability' => 'garana', 'note' => 'OSE: vier Räder, mit Plane'],
['name' => 'Fischerboot', 'kind' => 'Sonstiges', 'cost' => 150.00, 'weight' => '0', 'availability' => 'garana', 'note' => ''],
['name' => 'Alchemielabor (tragbar)', 'kind' => 'Sonstiges', 'cost' => 200.00, 'weight' => '25', 'availability' => 'selten', 'note' => ''],
['name' => 'Kahn (Flusskahn)', 'kind' => 'Sonstiges', 'cost' => 250.00, 'weight' => '0', 'availability' => 'selten', 'note' => 'Fracht auf Flüssen'],
['name' => 'Streitross', 'kind' => 'Sonstiges', 'cost' => 250.00, 'weight' => '0', 'availability' => 'selten', 'note' => 'OSE: Kriegspferd'],
['name' => 'Kutsche', 'kind' => 'Sonstiges', 'cost' => 400.00, 'weight' => '0', 'availability' => 'selten', 'note' => ''],
['name' => 'Segelboot (klein)', 'kind' => 'Sonstiges', 'cost' => 400.00, 'weight' => '0', 'availability' => 'selten', 'note' => ''],
];
}

View file

@ -25,6 +25,23 @@ const WS_MIGRATIONS = [
2 => [
"ALTER TABLE character_skills ADD COLUMN IF NOT EXISTS attribute VARCHAR(3) NOT NULL DEFAULT '' AFTER name",
],
// 3: Katalog für Ausrüstung (Selektor im Inventar). Inhalt kommt aus
// item_catalog_sync()/sql/seed_items.sql, hier nur die Tabelle.
3 => [
"CREATE TABLE IF NOT EXISTS item_catalog (
id BIGINT UNSIGNED NOT NULL AUTO_INCREMENT,
name VARCHAR(120) NOT NULL,
kind VARCHAR(20) NOT NULL DEFAULT 'Ausrüstung',
cost DECIMAL(8,2) NOT NULL DEFAULT 0.00,
weight VARCHAR(20) NOT NULL DEFAULT '',
availability ENUM('methaven', 'garana', 'selten') NOT NULL DEFAULT 'garana',
note VARCHAR(255) NOT NULL DEFAULT '',
sort_order INT NOT NULL DEFAULT 0,
PRIMARY KEY (id),
UNIQUE KEY uq_item_catalog_name (name),
KEY idx_item_catalog_filter (kind, availability)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci",
],
];
function ws_migrations_apply(PDO $pdo): void

View file

@ -288,6 +288,17 @@ function page_handle(string $method, string $path): void
}
redirect('/characters/' . $character['id'] . '/edit#inventar');
}
if (preg_match('#^/characters/(\d+)/items/from-catalog$#', $path, $m) === 1) {
require_post();
$character = character_require((int) $m[1], $user);
$entry = item_catalog_find(post_int('catalog_id', 0));
if ($entry === null) {
flash('error', 'Diesen Gegenstand kennt der Katalog nicht.');
} elseif (character_item_add_from_catalog((int) $character['id'], (int) $entry['id'])) {
flash('success', '„' . (string) $entry['name'] . '“ ins Inventar übernommen.');
}
redirect('/characters/' . $character['id'] . '/edit#inventar');
}
/* ------------------------------------------------------------ Admin */
if ($path === '/admin/users') {
@ -344,12 +355,23 @@ function page_handle(string $method, string $path): void
redirect('/admin/skills');
}
if ($path === '/admin/equipment') {
$catalogFilters = ['kind' => query_string('kind'), 'needle' => query_string('q'), 'limit' => 400];
render_page('admin_equipment', [
'weapons' => weapons_catalog(),
'armors' => armors_catalog(),
'itemCatalog' => item_catalog_search($catalogFilters),
'itemCatalogCount' => item_catalog_count($catalogFilters),
'itemFilters' => $catalogFilters,
], 'Waffen & Rüstungen');
return;
}
if ($path === '/admin/equipment/items/sync') {
require_post();
auth_require_admin();
$count = item_catalog_sync(true);
flash('success', $count . ' Gegenstände in den Ausrüstungskatalog gespiegelt (data/item_catalog.csv).');
redirect('/admin/equipment');
}
if ($path === '/admin/spells') {
page_admin_spells($user);
return;
@ -575,8 +597,18 @@ function page_character_edit(string $method, int $id, array $user): void
}
$character = character_require($id, $user);
$armors = character_armors((int) $character['id']);
item_catalog_sync();
$itemFilters = [
'kind' => query_string('item_kind'),
'availability' => query_string('item_avail'),
'needle' => query_string('item_q'),
];
render_page('character_edit', [
'character' => $character,
'itemFilters' => $itemFilters,
'itemCatalog' => item_catalog_search($itemFilters),
'itemCatalogCount' => item_catalog_count($itemFilters),
'itemSelectorOpen' => $itemFilters['kind'] !== '' || $itemFilters['availability'] !== '' || $itemFilters['needle'] !== '',
'weapons' => character_weapons((int) $character['id']),
'armors' => $armors,
'weaponCatalog' => weapons_catalog(),

View file

@ -30,6 +30,17 @@ const WS_ALIGNMENTS = ['Rechtschaffen', 'Neutral', 'Chaotisch', 'Gut', 'Böse',
const WS_ITEM_CATEGORIES = ['Waffe', 'Rüstung', 'Schild', 'Ausrüstung', 'Verbrauch', 'Schatz', 'Sonstiges'];
/**
* Verfügbarkeit im Ausrüstungskatalog: Methaven (Dorf) und Garana (Kleinstadt)
* sind Stufen – was in Methaven zu haben ist, gibt es auch in Garana. Mächtige
* oder seltene Ware führt nur der Filter „Alle“.
*/
const WS_ITEM_AVAILABILITY = [
'methaven' => 'Methaven (Dorf)',
'garana' => 'Garana (Kleinstadt)',
'selten' => 'nur Alle',
];
/**
* Fertigkeitengruppen wie auf dem Westreiche-Charakterbogen
* (RPG/6-Dokumente/Charakterbogen.pdf): KÖRPER, WILDNIS, SOZIAL, WISSEN.