game: Inventar-Raster mit Icons, Klassenregeln, Gold und Verbrauch
BIN
art/final/Objects/item_dolch_64.png
Normal file
|
After Width: | Height: | Size: 1,021 B |
BIN
art/final/Objects/item_kette_64.png
Normal file
|
After Width: | Height: | Size: 4.5 KiB |
BIN
art/final/Objects/item_keule_64.png
Normal file
|
After Width: | Height: | Size: 1.5 KiB |
BIN
art/final/Objects/item_laterne_64.png
Normal file
|
After Width: | Height: | Size: 1.1 KiB |
BIN
art/final/Objects/item_leder_64.png
Normal file
|
After Width: | Height: | Size: 2 KiB |
BIN
art/final/Objects/item_platte_64.png
Normal file
|
After Width: | Height: | Size: 2.2 KiB |
BIN
art/final/Objects/item_schild_64.png
Normal file
|
After Width: | Height: | Size: 1.6 KiB |
BIN
art/final/Objects/item_schwert_64.png
Normal file
|
After Width: | Height: | Size: 540 B |
BIN
art/final/Objects/item_seil_64.png
Normal file
|
After Width: | Height: | Size: 2.5 KiB |
BIN
art/final/Objects/item_stab_64.png
Normal file
|
After Width: | Height: | Size: 719 B |
BIN
art/final/Objects/item_vorrat_64.png
Normal file
|
After Width: | Height: | Size: 1.2 KiB |
|
|
@ -193,3 +193,15 @@ datum,endpoint_id,request_id,prompt,seed,lizenz
|
|||
2026-11-17,fal-ai/flux-2-pro,01a1e9d1-4742-7970-b326-79a1d166440e,"painterly fantasy RPG scene, dense detail held together by strong value structure, deep blue-black shadows against a single warm amber light source, cool desaturated blues and umbers, warm cream highlights, high contrast, chunky readable volumes, light falling off in visible soft steps, no fine linework, atmosphere over clarity, late-1980s role-playing game cover-painting sensibility, first-person view of a harbor tavern interior at dusk, eye level, wide establishing framing, timber beams and a shuttered window with cold light behind it, dust in the warm light, one dominant shape, two supporting shapes, everything else quiet",,"FLUX.2 [pro] über fal.ai (BFL Non-Commercial License: Gewichte/Selbsthosting; Outputs nach §2d frei nutzbar, keine IP-Indemnity) - 1920x1080, 2.0736 MP, x-fal-billable-units 1.5 = 0.06 USD"
|
||||
2026-11-17,fal-ai/flux-2-pro,01a1e9d1-8eb3-7792-ab51-daf154aae382,"painterly fantasy RPG scene, dense detail held together by strong value structure, deep blue-black shadows against a single warm amber light source, cool desaturated blues and umbers, warm cream highlights, high contrast, chunky readable volumes, light falling off in visible soft steps, no fine linework, atmosphere over clarity, late-1980s role-playing game cover-painting sensibility, first-person view of a weapons merchant's stall in a town square at dusk, a stocky merchant standing behind a heavy wooden counter, three heavy swords and one axe hanging on a beam behind him, clean empty counter top, warm lantern light from one side, cool evening sky above the roofs, eye level, wide establishing framing, one dominant shape, two supporting shapes, everything else quiet",,"FLUX.2 [pro] über fal.ai (BFL Non-Commercial License: Gewichte/Selbsthosting; Outputs nach §2d frei nutzbar, keine IP-Indemnity) - 1920x1080, 2.0736 MP, x-fal-billable-units 1.5 = 0.06 USD"
|
||||
2026-11-17,fal-ai/flux-2-pro,01a1e9d5-05ce-7aa3-9143-6840822c6b0f,"painterly fantasy RPG scene, dense detail held together by strong value structure, deep blue-black shadows against a single warm amber light source, cool desaturated blues and umbers, warm cream highlights, high contrast, chunky readable volumes, light falling off in visible soft steps, no fine linework, atmosphere over clarity, late-1980s role-playing game cover-painting sensibility, a forest edge at dawn seen from a low rise, moss, roots and ferns, cold morning mist between the trunks, one warm shaft of light from the left, no people, no buildings, no animals, empty wilderness, eye level, wide establishing framing, one dominant shape, two supporting shapes, everything else quiet",,"FLUX.2 [pro] über fal.ai (BFL Non-Commercial License: Gewichte/Selbsthosting; Outputs nach §2d frei nutzbar, keine IP-Indemnity) - 1920x1080, 2.0736 MP, x-fal-billable-units 1.5 = 0.06 USD"
|
||||
2026-11-17,fal-ai/flux-2/klein/9b,01a1e9d8-b3f7-7390-bbd1-d24b84af6bbf,"single isolated game item icon, flat color shapes with hard edges, bold silhouette, limited palette of muted ochre, steel blue, olive green, warm cream and deep umber, readable at 64 pixels, isolated on a flat solid magenta background, centered, complete silhouette, no text, no letters, no frame, no cast shadow, an upright medieval sword with a steel blade, a gold crossguard and a leather grip",9101,"FLUX.2 [klein] 9B über fal.ai (BFL Non-Commercial License: Gewichte/Selbsthosting; Outputs nach §2d frei nutzbar, keine IP-Indemnity) - 512x512, 0.2621 MP, x-fal-billable-units 1.0 = 0.01 USD, 4 Bilder"
|
||||
2026-11-17,fal-ai/flux-2/klein/9b,01a1e9d8-c927-7c00-a191-2df2cfc4de3b,"single isolated game item icon, flat color shapes with hard edges, bold silhouette, limited palette of muted ochre, steel blue, olive green, warm cream and deep umber, readable at 64 pixels, isolated on a flat solid magenta background, centered, complete silhouette, no text, no letters, no frame, no cast shadow, a short single-edged dagger with a steel blade and a leather grip",9102,"FLUX.2 [klein] 9B über fal.ai (BFL Non-Commercial License: Gewichte/Selbsthosting; Outputs nach §2d frei nutzbar, keine IP-Indemnity) - 512x512, 0.2621 MP, x-fal-billable-units 1.0 = 0.01 USD, 4 Bilder"
|
||||
2026-11-17,fal-ai/flux-2/klein/9b,01a1e9d8-de27-7542-8188-1ffb5880350d,"single isolated game item icon, flat color shapes with hard edges, bold silhouette, limited palette of muted ochre, steel blue, olive green, warm cream and deep umber, readable at 64 pixels, isolated on a flat solid magenta background, centered, complete silhouette, no text, no letters, no frame, no cast shadow, a wooden quarterstaff with a slightly gnarled top",9103,"FLUX.2 [klein] 9B über fal.ai (BFL Non-Commercial License: Gewichte/Selbsthosting; Outputs nach §2d frei nutzbar, keine IP-Indemnity) - 512x512, 0.2621 MP, x-fal-billable-units 1.0 = 0.01 USD, 4 Bilder"
|
||||
2026-11-17,fal-ai/flux-2/klein/9b,01a1e9d8-f0c6-7cd0-bf38-5da24b710515,"single isolated game item icon, flat color shapes with hard edges, bold silhouette, limited palette of muted ochre, steel blue, olive green, warm cream and deep umber, readable at 64 pixels, isolated on a flat solid magenta background, centered, complete silhouette, no text, no letters, no frame, no cast shadow, a heavy wooden club with a thick rounded head",9104,"FLUX.2 [klein] 9B über fal.ai (BFL Non-Commercial License: Gewichte/Selbsthosting; Outputs nach §2d frei nutzbar, keine IP-Indemnity) - 512x512, 0.2621 MP, x-fal-billable-units 1.0 = 0.01 USD, 4 Bilder"
|
||||
2026-11-17,fal-ai/flux-2/klein/9b,01a1e9d9-0371-7131-96af-bdb9de47efec,"single isolated game item icon, flat color shapes with hard edges, bold silhouette, limited palette of muted ochre, steel blue, olive green, warm cream and deep umber, readable at 64 pixels, isolated on a flat solid magenta background, centered, complete silhouette, no text, no letters, no frame, no cast shadow, a leather cuirass, a sleeveless armor vest with straps",9105,"FLUX.2 [klein] 9B über fal.ai (BFL Non-Commercial License: Gewichte/Selbsthosting; Outputs nach §2d frei nutzbar, keine IP-Indemnity) - 512x512, 0.2621 MP, x-fal-billable-units 1.0 = 0.01 USD, 4 Bilder"
|
||||
2026-11-17,fal-ai/flux-2/klein/9b,01a1e9d9-18b7-7d70-b1d9-41ddc2b04160,"single isolated game item icon, flat color shapes with hard edges, bold silhouette, limited palette of muted ochre, steel blue, olive green, warm cream and deep umber, readable at 64 pixels, isolated on a flat solid magenta background, centered, complete silhouette, no text, no letters, no frame, no cast shadow, a chainmail shirt with short sleeves",9106,"FLUX.2 [klein] 9B über fal.ai (BFL Non-Commercial License: Gewichte/Selbsthosting; Outputs nach §2d frei nutzbar, keine IP-Indemnity) - 512x512, 0.2621 MP, x-fal-billable-units 1.0 = 0.01 USD, 4 Bilder"
|
||||
2026-11-17,fal-ai/flux-2/klein/9b,01a1e9d9-2b7c-7290-982f-c6293b1b1fbd,"single isolated game item icon, flat color shapes with hard edges, bold silhouette, limited palette of muted ochre, steel blue, olive green, warm cream and deep umber, readable at 64 pixels, isolated on a flat solid magenta background, centered, complete silhouette, no text, no letters, no frame, no cast shadow, a polished steel breastplate with shoulder plates",9107,"FLUX.2 [klein] 9B über fal.ai (BFL Non-Commercial License: Gewichte/Selbsthosting; Outputs nach §2d frei nutzbar, keine IP-Indemnity) - 512x512, 0.2621 MP, x-fal-billable-units 1.0 = 0.01 USD, 4 Bilder"
|
||||
2026-11-17,fal-ai/flux-2/klein/9b,01a1e9d9-3fec-70f2-bd00-c5c3b365d393,"single isolated game item icon, flat color shapes with hard edges, bold silhouette, limited palette of muted ochre, steel blue, olive green, warm cream and deep umber, readable at 64 pixels, isolated on a flat solid magenta background, centered, complete silhouette, no text, no letters, no frame, no cast shadow, a round wooden shield with an iron boss and a metal rim",9108,"FLUX.2 [klein] 9B über fal.ai (BFL Non-Commercial License: Gewichte/Selbsthosting; Outputs nach §2d frei nutzbar, keine IP-Indemnity) - 512x512, 0.2621 MP, x-fal-billable-units 1.0 = 0.01 USD, 4 Bilder"
|
||||
2026-11-17,fal-ai/flux-2/klein/9b,01a1e9d9-54f2-79d0-bef9-53b54cea4a8f,"single isolated game item icon, flat color shapes with hard edges, bold silhouette, limited palette of muted ochre, steel blue, olive green, warm cream and deep umber, readable at 64 pixels, isolated on a flat solid magenta background, centered, complete silhouette, no text, no letters, no frame, no cast shadow, a small iron lantern with warm light behind glass",9109,"FLUX.2 [klein] 9B über fal.ai (BFL Non-Commercial License: Gewichte/Selbsthosting; Outputs nach §2d frei nutzbar, keine IP-Indemnity) - 512x512, 0.2621 MP, x-fal-billable-units 1.0 = 0.01 USD, 4 Bilder"
|
||||
2026-11-17,fal-ai/flux-2/klein/9b,01a1e9d9-67b3-7960-bd91-7e85a0ad7b37,"single isolated game item icon, flat color shapes with hard edges, bold silhouette, limited palette of muted ochre, steel blue, olive green, warm cream and deep umber, readable at 64 pixels, isolated on a flat solid magenta background, centered, complete silhouette, no text, no letters, no frame, no cast shadow, a coiled hemp rope",9110,"FLUX.2 [klein] 9B über fal.ai (BFL Non-Commercial License: Gewichte/Selbsthosting; Outputs nach §2d frei nutzbar, keine IP-Indemnity) - 512x512, 0.2621 MP, x-fal-billable-units 1.0 = 0.01 USD, 4 Bilder"
|
||||
2026-11-17,fal-ai/flux-2/klein/9b,01a1e9d9-7bb3-78e1-85e0-8a42844e0d17,"single isolated game item icon, flat color shapes with hard edges, bold silhouette, limited palette of muted ochre, steel blue, olive green, warm cream and deep umber, readable at 64 pixels, isolated on a flat solid magenta background, centered, complete silhouette, no text, no letters, no frame, no cast shadow, a cloth bundle of dried food, bread and cheese",9111,"FLUX.2 [klein] 9B über fal.ai (BFL Non-Commercial License: Gewichte/Selbsthosting; Outputs nach §2d frei nutzbar, keine IP-Indemnity) - 512x512, 0.2621 MP, x-fal-billable-units 1.0 = 0.01 USD, 4 Bilder"
|
||||
2026-11-17,fal-ai/flux-2/klein/9b,01a1e9d9-feae-70b2-a91a-d586d61b0eba,"single isolated game item icon, a heavy chainmail hauberk made of small interlocking steel rings, clearly visible metal ring texture, metallic grey, short sleeves, hanging empty as a garment, flat color shapes with hard edges, bold silhouette, limited palette of steel blue, muted ochre and deep umber, readable at 64 pixels, isolated on a flat solid magenta background, centered, complete silhouette, no text, no letters, no frame, no cast shadow",9112,"FLUX.2 [klein] 9B über fal.ai (BFL Non-Commercial License: Gewichte/Selbsthosting; Outputs nach §2d frei nutzbar, keine IP-Indemnity) - 512x512, 0.2621 MP, x-fal-billable-units 1.0 = 0.01 USD, 4 Bilder"
|
||||
|
|
|
|||
|
|
|
@ -1,22 +1,29 @@
|
|||
# Inventar — Modal über der Karte
|
||||
|
||||
Stand: 17.11.2026 · erste Fassung, ohne Item-Icons.
|
||||
Stand: 17.11.2026 · **5×3-Raster mit Item-Icons**, Klassenbeschränkung,
|
||||
Gold und Verbrauchsgütern.
|
||||
|
||||
**Frage:** Reicht eine Liste mit Ausrüsten/Ablegen, solange es keine Icons
|
||||
gibt? **Ja** — die Mechanik ist sichtbar, das 5×3-Raster aus `ui.md` wartet
|
||||
auf die Icons.
|
||||
**Frage:** Trägt das Raster mit 64er-Icons den Screen, und halten die
|
||||
Klassenregeln? **Ja** — Aldric sieht seine Ausrüstung und den Rucksack auf
|
||||
einen Blick; der Magier bekommt beim Leder eine Begründung statt eines
|
||||
stummen Knopfs.
|
||||
|
||||
| Bild | Zeigt |
|
||||
|---|---|
|
||||
| [`_inventar_1920x1080.png`](_inventar_1920x1080.png) | Aldric: Schwert/Kette/Schild ausgerüstet, Rucksack mit Vorrat, Seil, Leder, Dolch |
|
||||
| [`_inventar_1920x1080.png`](_inventar_1920x1080.png) | Aldric: Schwert/Kette/Schild ausgerüstet, Rucksack mit Vorrat, Seil, Leder (gewählt), Dolch; Gold 20 |
|
||||
|
||||
## Aufbau
|
||||
|
||||
- Dim + `ModalPanel`, 1400×760, mittig.
|
||||
- Dim + `ModalPanel`, 1400×760, mittig; Gold oben rechts.
|
||||
- Partei-Reiter oben (bis sechs Figuren), ausgewählter Reiter gold.
|
||||
- Links **AUSGERÜSTET**: Waffe, Rüstung, Schild mit „Ablegen".
|
||||
- Rechts **RUCKSACK**: alle Gegenstände; ausrüstbare Typen (`weapon`, `armor`,
|
||||
`shield`) haben „Ausrüsten", Verbrauchsgüter nicht.
|
||||
- Links **AUSGERÜSTET**: Waffe, Rüstung, Schild als Icon + Name, mit „Ablegen".
|
||||
- Rechts **RUCKSACK**: 5×3-Raster à 88 px, 64er-Icon, Zähler unten rechts.
|
||||
Ein Klick wählt den Gegenstand; die Detailbox zeigt Name, Typ, RK/Schaden
|
||||
und die Aktion.
|
||||
- **Ausrüsten** ist gesperrt, wenn die Klasse den Gegenstand nicht tragen darf
|
||||
(`classes.json`: `weapons`, `armor`). Die Box nennt den Grund.
|
||||
- **Benutzen** bei Verbrauchsgütern: Vorrat heilt 1d6 TP und verschwindet;
|
||||
Laterne schaltet `flags["licht"]`; Seil meldet „noch keine Anwendung".
|
||||
- Fußzeile: RK, Angriff, TP der gewählten Figur.
|
||||
|
||||
Öffnen: Taste **I** oder der Knopf **INVENTAR** oben links in der Stadt.
|
||||
|
|
@ -27,11 +34,14 @@ Schließen: **I**, **Esc** oder „Schließen".
|
|||
- `inventory` ist eine Liste aus `{"id": ..., "count": n}`.
|
||||
- `equipment` referenziert ids: `{"weapon": "schwert", "armor": "kette",
|
||||
"shield": true}`.
|
||||
- Startausrüstung steht in `classes.json` (`starting_equipment`) und wird in
|
||||
`Game.neue_figur()` gesetzt; das Startgepäck (`items`) landet im Rucksack.
|
||||
- `Game.ausruesten()` nimmt ein Stück aus dem Rucksack und legt das vorher
|
||||
ausgerüstete Stück zurück. `Game.ablegen()` macht das Gegenteil. Beide
|
||||
ändern nur die Figur; `Game.rk()` rechnet sofort neu.
|
||||
- Startausrüstung und Startgepäck stehen in `classes.json`
|
||||
(`starting_equipment`) und werden in `Game.neue_figur()` gesetzt.
|
||||
- `Game.ausruesten()` prüft die Klassenbeschränkung, nimmt ein Stück aus dem
|
||||
Rucksack und legt das vorher ausgerüstete Stück zurück. `Game.ablegen()`
|
||||
macht das Gegenteil. `Game.rk()` rechnet sofort neu.
|
||||
- `Game.gold` ist Parteigold (Start 20) und liegt im Spielstand.
|
||||
- `Game.benutzen()` behandelt Verbrauchsgüter und gibt die Meldung für die UI
|
||||
zurück.
|
||||
|
||||
```bash
|
||||
godot --headless --path game -- --check
|
||||
|
|
@ -42,9 +52,9 @@ godot --path game res://tools/schuss.tscn -- \
|
|||
|
||||
## Offen
|
||||
|
||||
- **Item-Icons** und das 5×3-Raster aus `ui.md`; bis dahin ist die Liste die
|
||||
ehrliche Fassung.
|
||||
- **Benutzen** für Verbrauchsgüter (Vorrat, Trank) und Gold; `Game` hat noch
|
||||
kein Goldfeld.
|
||||
- **Tausch zwischen Figuren**, Gewicht/Traglast, Ausrüstungszwang je Klasse
|
||||
(der Magier kann derzeit jede Rüstung anlegen, wenn sie im Rucksack liegt).
|
||||
- **Tausch zwischen Figuren**, Gewicht/Traglast.
|
||||
- **Mehr als 15 Gegenstände**: Das Raster zeigt die erste Seite; Seitenwechsel
|
||||
fehlt noch.
|
||||
- **Echte Lichtwirkung** der Laterne (bisher nur ein Flag) und weitere
|
||||
Verbrauchsgüter (Tränke).
|
||||
- **Drag & Drop** statt Klick + Aktionsknopf.
|
||||
|
|
|
|||
|
Before Width: | Height: | Size: 16 KiB After Width: | Height: | Size: 33 KiB |
59
art/prep/item-icons/README.md
Normal file
|
|
@ -0,0 +1,59 @@
|
|||
# Item-Icons — elf Gegenstände in 64 px
|
||||
|
||||
Stand: 17.11.2026 · fal `klein/9b`, 512², 4 Varianten je Gegenstand.
|
||||
**48 Rohbilder (11 + Kette-Nachlauf), 11 gewählt, 0,076 $**
|
||||
(Lizenzzeilen in [`../../license-log.csv`](../../license-log.csv)).
|
||||
|
||||
**Frage:** Trägt ein 64er-Iconsatz das Inventar-Raster, ohne dass die Liste
|
||||
bleiben muss? **Ja.** Die Icons sind flach und kontrastreich; im 88er-Slot
|
||||
bleibt der Gegenstand auch ohne Text lesbar.
|
||||
|
||||
| Bild | Zeigt |
|
||||
|---|---|
|
||||
| [`_kontakt.png`](_kontakt.png) | alle 11 Gegenstände, je vier Varianten |
|
||||
| [`_kette_neu.png`](_kette_neu.png) | Nachlauf: Kette mit Ringtextur |
|
||||
| [`_final_64.png`](_final_64.png) | der gewählte Satz bei 1,5× auf Panelbraun |
|
||||
|
||||
## Auswahl
|
||||
|
||||
| Gegenstand | Variante | Warum |
|
||||
|---|---|---|
|
||||
| Schwert | 3 | gerade Klinge, goldene Parierstange |
|
||||
| Dolch | 1 | klare Klinge, Ledergriff |
|
||||
| Stab | 1 | dicker, leicht knorriger Schaft |
|
||||
| Keule | 1 | runder Kopf, klare Diagonale |
|
||||
| Leder | 1 | Wams mit Riemen, nicht nur ein Beutel |
|
||||
| Kette | **9112/2** | Nachlauf: Ringtextur statt T-Shirt |
|
||||
| Platte | 3 | Brustplatte mit Schulterstücken |
|
||||
| Schild | 1 | runder Holzschild mit Eisenbuckel |
|
||||
| Laterne | 1 | warmes Licht, klarer Rahmen |
|
||||
| Seil | 1 | geschlossener Ring, nicht zerrissen |
|
||||
| Vorrat | 1 | Bündel mit Brot und Käse |
|
||||
|
||||
Die erste Kette (9111) las sich als Stoffhemd. Der Nachlauf mit *„interlocking
|
||||
steel rings, clearly visible metal ring texture"* hat es korrigiert.
|
||||
|
||||
## Pipeline
|
||||
|
||||
```bash
|
||||
export FAL_KEY=...
|
||||
art/prep/item-icons/rendern.sh
|
||||
|
||||
python3 art/tools/pixelize.py <roh> -o art/final/Objects/item_<id>_64.png \
|
||||
--size 64x64 --colors 24 --cutout 12 --cutout-global --shrink 1 \
|
||||
--palette-figure --outline auto --recenter
|
||||
```
|
||||
|
||||
24 Farben wie bei den Klassen-Emblemen; der Freisteller entfernt das Magenta,
|
||||
`--shrink 1` den Saum, `--outline auto` setzt die 1-px-Kontur für den Slot.
|
||||
|
||||
## Einsatz
|
||||
|
||||
- `game/assets/objects/item_<id>_64.png`
|
||||
- Inventar: 64er-Icon im 88er-Slot, Zähler unten rechts, Tooltip = Name.
|
||||
- Die Zuordnung ist der Item-id gleich; kein zusätzliches Datenfeld.
|
||||
|
||||
## Offen
|
||||
|
||||
- Weitere Gegenstände (Tränke, Zauberkomponenten) bekommen beim Anlegen eine
|
||||
Zeile in `items.json` und ein Icon nach demselben Rezept.
|
||||
BIN
art/prep/item-icons/_final_64.png
Normal file
|
After Width: | Height: | Size: 24 KiB |
BIN
art/prep/item-icons/_kette_neu.png
Normal file
|
After Width: | Height: | Size: 318 KiB |
BIN
art/prep/item-icons/_kontakt.png
Normal file
|
After Width: | Height: | Size: 887 KiB |
1
art/prep/item-icons/base.txt
Normal file
|
|
@ -0,0 +1 @@
|
|||
single isolated game item icon, flat color shapes with hard edges, bold silhouette, limited palette of muted ochre, steel blue, olive green, warm cream and deep umber, readable at 64 pixels, isolated on a flat solid magenta background, centered, complete silhouette, no text, no letters, no frame, no cast shadow
|
||||
1
art/prep/item-icons/prompt_dolch.txt
Normal file
|
|
@ -0,0 +1 @@
|
|||
single isolated game item icon, flat color shapes with hard edges, bold silhouette, limited palette of muted ochre, steel blue, olive green, warm cream and deep umber, readable at 64 pixels, isolated on a flat solid magenta background, centered, complete silhouette, no text, no letters, no frame, no cast shadow, a short single-edged dagger with a steel blade and a leather grip
|
||||
1
art/prep/item-icons/prompt_kette.txt
Normal file
|
|
@ -0,0 +1 @@
|
|||
single isolated game item icon, a heavy chainmail hauberk made of small interlocking steel rings, clearly visible metal ring texture, metallic grey, short sleeves, hanging empty as a garment, flat color shapes with hard edges, bold silhouette, limited palette of steel blue, muted ochre and deep umber, readable at 64 pixels, isolated on a flat solid magenta background, centered, complete silhouette, no text, no letters, no frame, no cast shadow
|
||||
1
art/prep/item-icons/prompt_keule.txt
Normal file
|
|
@ -0,0 +1 @@
|
|||
single isolated game item icon, flat color shapes with hard edges, bold silhouette, limited palette of muted ochre, steel blue, olive green, warm cream and deep umber, readable at 64 pixels, isolated on a flat solid magenta background, centered, complete silhouette, no text, no letters, no frame, no cast shadow, a heavy wooden club with a thick rounded head
|
||||
1
art/prep/item-icons/prompt_laterne.txt
Normal file
|
|
@ -0,0 +1 @@
|
|||
single isolated game item icon, flat color shapes with hard edges, bold silhouette, limited palette of muted ochre, steel blue, olive green, warm cream and deep umber, readable at 64 pixels, isolated on a flat solid magenta background, centered, complete silhouette, no text, no letters, no frame, no cast shadow, a small iron lantern with warm light behind glass
|
||||
1
art/prep/item-icons/prompt_leder.txt
Normal file
|
|
@ -0,0 +1 @@
|
|||
single isolated game item icon, flat color shapes with hard edges, bold silhouette, limited palette of muted ochre, steel blue, olive green, warm cream and deep umber, readable at 64 pixels, isolated on a flat solid magenta background, centered, complete silhouette, no text, no letters, no frame, no cast shadow, a leather cuirass, a sleeveless armor vest with straps
|
||||
1
art/prep/item-icons/prompt_platte.txt
Normal file
|
|
@ -0,0 +1 @@
|
|||
single isolated game item icon, flat color shapes with hard edges, bold silhouette, limited palette of muted ochre, steel blue, olive green, warm cream and deep umber, readable at 64 pixels, isolated on a flat solid magenta background, centered, complete silhouette, no text, no letters, no frame, no cast shadow, a polished steel breastplate with shoulder plates
|
||||
1
art/prep/item-icons/prompt_schild.txt
Normal file
|
|
@ -0,0 +1 @@
|
|||
single isolated game item icon, flat color shapes with hard edges, bold silhouette, limited palette of muted ochre, steel blue, olive green, warm cream and deep umber, readable at 64 pixels, isolated on a flat solid magenta background, centered, complete silhouette, no text, no letters, no frame, no cast shadow, a round wooden shield with an iron boss and a metal rim
|
||||
1
art/prep/item-icons/prompt_schwert.txt
Normal file
|
|
@ -0,0 +1 @@
|
|||
single isolated game item icon, flat color shapes with hard edges, bold silhouette, limited palette of muted ochre, steel blue, olive green, warm cream and deep umber, readable at 64 pixels, isolated on a flat solid magenta background, centered, complete silhouette, no text, no letters, no frame, no cast shadow, an upright medieval sword with a steel blade, a gold crossguard and a leather grip
|
||||
1
art/prep/item-icons/prompt_seil.txt
Normal file
|
|
@ -0,0 +1 @@
|
|||
single isolated game item icon, flat color shapes with hard edges, bold silhouette, limited palette of muted ochre, steel blue, olive green, warm cream and deep umber, readable at 64 pixels, isolated on a flat solid magenta background, centered, complete silhouette, no text, no letters, no frame, no cast shadow, a coiled hemp rope
|
||||
1
art/prep/item-icons/prompt_stab.txt
Normal file
|
|
@ -0,0 +1 @@
|
|||
single isolated game item icon, flat color shapes with hard edges, bold silhouette, limited palette of muted ochre, steel blue, olive green, warm cream and deep umber, readable at 64 pixels, isolated on a flat solid magenta background, centered, complete silhouette, no text, no letters, no frame, no cast shadow, a wooden quarterstaff with a slightly gnarled top
|
||||
1
art/prep/item-icons/prompt_vorrat.txt
Normal file
|
|
@ -0,0 +1 @@
|
|||
single isolated game item icon, flat color shapes with hard edges, bold silhouette, limited palette of muted ochre, steel blue, olive green, warm cream and deep umber, readable at 64 pixels, isolated on a flat solid magenta background, centered, complete silhouette, no text, no letters, no frame, no cast shadow, a cloth bundle of dried food, bread and cheese
|
||||
89
art/prep/item-icons/rendern.log
Normal file
|
|
@ -0,0 +1,89 @@
|
|||
=== schwert (s9101) ===
|
||||
Modell: FLUX.2 [klein] 9B (fal-ai/flux-2/klein/9b) — 0.2621 MP × 0.006 $/megapixels × 4 Bilder = 0.0063 $
|
||||
Rohbild: /Users/torsten/Dokumente/workbench_taloria/assets/raw/Objects/item_schwert_s9101_1.png
|
||||
Rohbild: /Users/torsten/Dokumente/workbench_taloria/assets/raw/Objects/item_schwert_s9101_2.png
|
||||
Rohbild: /Users/torsten/Dokumente/workbench_taloria/assets/raw/Objects/item_schwert_s9101_3.png
|
||||
Rohbild: /Users/torsten/Dokumente/workbench_taloria/assets/raw/Objects/item_schwert_s9101_4.png
|
||||
Anfrage: /Users/torsten/Dokumente/workbench_taloria/assets/raw/Objects/item_schwert_s9101_1.json
|
||||
Lizenzlog: 1 Zeile ergänzt (request_id 01a1e9d8-b3f7-7390-bbd1-d24b84af6bbf)
|
||||
=== dolch (s9102) ===
|
||||
Modell: FLUX.2 [klein] 9B (fal-ai/flux-2/klein/9b) — 0.2621 MP × 0.006 $/megapixels × 4 Bilder = 0.0063 $
|
||||
Rohbild: /Users/torsten/Dokumente/workbench_taloria/assets/raw/Objects/item_dolch_s9102_1.png
|
||||
Rohbild: /Users/torsten/Dokumente/workbench_taloria/assets/raw/Objects/item_dolch_s9102_2.png
|
||||
Rohbild: /Users/torsten/Dokumente/workbench_taloria/assets/raw/Objects/item_dolch_s9102_3.png
|
||||
Rohbild: /Users/torsten/Dokumente/workbench_taloria/assets/raw/Objects/item_dolch_s9102_4.png
|
||||
Anfrage: /Users/torsten/Dokumente/workbench_taloria/assets/raw/Objects/item_dolch_s9102_1.json
|
||||
Lizenzlog: 1 Zeile ergänzt (request_id 01a1e9d8-c927-7c00-a191-2df2cfc4de3b)
|
||||
=== stab (s9103) ===
|
||||
Modell: FLUX.2 [klein] 9B (fal-ai/flux-2/klein/9b) — 0.2621 MP × 0.006 $/megapixels × 4 Bilder = 0.0063 $
|
||||
Rohbild: /Users/torsten/Dokumente/workbench_taloria/assets/raw/Objects/item_stab_s9103_1.png
|
||||
Rohbild: /Users/torsten/Dokumente/workbench_taloria/assets/raw/Objects/item_stab_s9103_2.png
|
||||
Rohbild: /Users/torsten/Dokumente/workbench_taloria/assets/raw/Objects/item_stab_s9103_3.png
|
||||
Rohbild: /Users/torsten/Dokumente/workbench_taloria/assets/raw/Objects/item_stab_s9103_4.png
|
||||
Anfrage: /Users/torsten/Dokumente/workbench_taloria/assets/raw/Objects/item_stab_s9103_1.json
|
||||
Lizenzlog: 1 Zeile ergänzt (request_id 01a1e9d8-de27-7542-8188-1ffb5880350d)
|
||||
=== keule (s9104) ===
|
||||
Modell: FLUX.2 [klein] 9B (fal-ai/flux-2/klein/9b) — 0.2621 MP × 0.006 $/megapixels × 4 Bilder = 0.0063 $
|
||||
Rohbild: /Users/torsten/Dokumente/workbench_taloria/assets/raw/Objects/item_keule_s9104_1.png
|
||||
Rohbild: /Users/torsten/Dokumente/workbench_taloria/assets/raw/Objects/item_keule_s9104_2.png
|
||||
Rohbild: /Users/torsten/Dokumente/workbench_taloria/assets/raw/Objects/item_keule_s9104_3.png
|
||||
Rohbild: /Users/torsten/Dokumente/workbench_taloria/assets/raw/Objects/item_keule_s9104_4.png
|
||||
Anfrage: /Users/torsten/Dokumente/workbench_taloria/assets/raw/Objects/item_keule_s9104_1.json
|
||||
Lizenzlog: 1 Zeile ergänzt (request_id 01a1e9d8-f0c6-7cd0-bf38-5da24b710515)
|
||||
=== leder (s9105) ===
|
||||
Modell: FLUX.2 [klein] 9B (fal-ai/flux-2/klein/9b) — 0.2621 MP × 0.006 $/megapixels × 4 Bilder = 0.0063 $
|
||||
Rohbild: /Users/torsten/Dokumente/workbench_taloria/assets/raw/Objects/item_leder_s9105_1.png
|
||||
Rohbild: /Users/torsten/Dokumente/workbench_taloria/assets/raw/Objects/item_leder_s9105_2.png
|
||||
Rohbild: /Users/torsten/Dokumente/workbench_taloria/assets/raw/Objects/item_leder_s9105_3.png
|
||||
Rohbild: /Users/torsten/Dokumente/workbench_taloria/assets/raw/Objects/item_leder_s9105_4.png
|
||||
Anfrage: /Users/torsten/Dokumente/workbench_taloria/assets/raw/Objects/item_leder_s9105_1.json
|
||||
Lizenzlog: 1 Zeile ergänzt (request_id 01a1e9d9-0371-7131-96af-bdb9de47efec)
|
||||
=== kette (s9106) ===
|
||||
Modell: FLUX.2 [klein] 9B (fal-ai/flux-2/klein/9b) — 0.2621 MP × 0.006 $/megapixels × 4 Bilder = 0.0063 $
|
||||
Rohbild: /Users/torsten/Dokumente/workbench_taloria/assets/raw/Objects/item_kette_s9106_1.png
|
||||
Rohbild: /Users/torsten/Dokumente/workbench_taloria/assets/raw/Objects/item_kette_s9106_2.png
|
||||
Rohbild: /Users/torsten/Dokumente/workbench_taloria/assets/raw/Objects/item_kette_s9106_3.png
|
||||
Rohbild: /Users/torsten/Dokumente/workbench_taloria/assets/raw/Objects/item_kette_s9106_4.png
|
||||
Anfrage: /Users/torsten/Dokumente/workbench_taloria/assets/raw/Objects/item_kette_s9106_1.json
|
||||
Lizenzlog: 1 Zeile ergänzt (request_id 01a1e9d9-18b7-7d70-b1d9-41ddc2b04160)
|
||||
=== platte (s9107) ===
|
||||
Modell: FLUX.2 [klein] 9B (fal-ai/flux-2/klein/9b) — 0.2621 MP × 0.006 $/megapixels × 4 Bilder = 0.0063 $
|
||||
Rohbild: /Users/torsten/Dokumente/workbench_taloria/assets/raw/Objects/item_platte_s9107_1.png
|
||||
Rohbild: /Users/torsten/Dokumente/workbench_taloria/assets/raw/Objects/item_platte_s9107_2.png
|
||||
Rohbild: /Users/torsten/Dokumente/workbench_taloria/assets/raw/Objects/item_platte_s9107_3.png
|
||||
Rohbild: /Users/torsten/Dokumente/workbench_taloria/assets/raw/Objects/item_platte_s9107_4.png
|
||||
Anfrage: /Users/torsten/Dokumente/workbench_taloria/assets/raw/Objects/item_platte_s9107_1.json
|
||||
Lizenzlog: 1 Zeile ergänzt (request_id 01a1e9d9-2b7c-7290-982f-c6293b1b1fbd)
|
||||
=== schild (s9108) ===
|
||||
Modell: FLUX.2 [klein] 9B (fal-ai/flux-2/klein/9b) — 0.2621 MP × 0.006 $/megapixels × 4 Bilder = 0.0063 $
|
||||
Rohbild: /Users/torsten/Dokumente/workbench_taloria/assets/raw/Objects/item_schild_s9108_1.png
|
||||
Rohbild: /Users/torsten/Dokumente/workbench_taloria/assets/raw/Objects/item_schild_s9108_2.png
|
||||
Rohbild: /Users/torsten/Dokumente/workbench_taloria/assets/raw/Objects/item_schild_s9108_3.png
|
||||
Rohbild: /Users/torsten/Dokumente/workbench_taloria/assets/raw/Objects/item_schild_s9108_4.png
|
||||
Anfrage: /Users/torsten/Dokumente/workbench_taloria/assets/raw/Objects/item_schild_s9108_1.json
|
||||
Lizenzlog: 1 Zeile ergänzt (request_id 01a1e9d9-3fec-70f2-bd00-c5c3b365d393)
|
||||
=== laterne (s9109) ===
|
||||
Modell: FLUX.2 [klein] 9B (fal-ai/flux-2/klein/9b) — 0.2621 MP × 0.006 $/megapixels × 4 Bilder = 0.0063 $
|
||||
Rohbild: /Users/torsten/Dokumente/workbench_taloria/assets/raw/Objects/item_laterne_s9109_1.png
|
||||
Rohbild: /Users/torsten/Dokumente/workbench_taloria/assets/raw/Objects/item_laterne_s9109_2.png
|
||||
Rohbild: /Users/torsten/Dokumente/workbench_taloria/assets/raw/Objects/item_laterne_s9109_3.png
|
||||
Rohbild: /Users/torsten/Dokumente/workbench_taloria/assets/raw/Objects/item_laterne_s9109_4.png
|
||||
Anfrage: /Users/torsten/Dokumente/workbench_taloria/assets/raw/Objects/item_laterne_s9109_1.json
|
||||
Lizenzlog: 1 Zeile ergänzt (request_id 01a1e9d9-54f2-79d0-bef9-53b54cea4a8f)
|
||||
=== seil (s9110) ===
|
||||
Modell: FLUX.2 [klein] 9B (fal-ai/flux-2/klein/9b) — 0.2621 MP × 0.006 $/megapixels × 4 Bilder = 0.0063 $
|
||||
Rohbild: /Users/torsten/Dokumente/workbench_taloria/assets/raw/Objects/item_seil_s9110_1.png
|
||||
Rohbild: /Users/torsten/Dokumente/workbench_taloria/assets/raw/Objects/item_seil_s9110_2.png
|
||||
Rohbild: /Users/torsten/Dokumente/workbench_taloria/assets/raw/Objects/item_seil_s9110_3.png
|
||||
Rohbild: /Users/torsten/Dokumente/workbench_taloria/assets/raw/Objects/item_seil_s9110_4.png
|
||||
Anfrage: /Users/torsten/Dokumente/workbench_taloria/assets/raw/Objects/item_seil_s9110_1.json
|
||||
Lizenzlog: 1 Zeile ergänzt (request_id 01a1e9d9-67b3-7960-bd91-7e85a0ad7b37)
|
||||
=== vorrat (s9111) ===
|
||||
Modell: FLUX.2 [klein] 9B (fal-ai/flux-2/klein/9b) — 0.2621 MP × 0.006 $/megapixels × 4 Bilder = 0.0063 $
|
||||
Rohbild: /Users/torsten/Dokumente/workbench_taloria/assets/raw/Objects/item_vorrat_s9111_1.png
|
||||
Rohbild: /Users/torsten/Dokumente/workbench_taloria/assets/raw/Objects/item_vorrat_s9111_2.png
|
||||
Rohbild: /Users/torsten/Dokumente/workbench_taloria/assets/raw/Objects/item_vorrat_s9111_3.png
|
||||
Rohbild: /Users/torsten/Dokumente/workbench_taloria/assets/raw/Objects/item_vorrat_s9111_4.png
|
||||
Anfrage: /Users/torsten/Dokumente/workbench_taloria/assets/raw/Objects/item_vorrat_s9111_1.json
|
||||
Lizenzlog: 1 Zeile ergänzt (request_id 01a1e9d9-7bb3-78e1-85e0-8a42844e0d17)
|
||||
=== fertig ===
|
||||
34
art/prep/item-icons/rendern.sh
Executable file
|
|
@ -0,0 +1,34 @@
|
|||
#!/usr/bin/env bash
|
||||
# Elf Item-Icons (64 px) für das Inventar — 512², 4 Varianten je Gegenstand.
|
||||
set -uo pipefail
|
||||
|
||||
HIER="$(cd "$(dirname "$0")" && pwd)"
|
||||
REPO="$(cd "$HIER/../../.." && pwd)"
|
||||
PY="$HOME/.venvs/art/bin/python"
|
||||
LOG="$HIER/rendern.log"
|
||||
|
||||
: > "$LOG"
|
||||
|
||||
lauf() {
|
||||
local id="$1" seed="$2"
|
||||
echo "=== $id (s$seed) ===" | tee -a "$LOG"
|
||||
"$PY" "$REPO/art/tools/falgen.py" \
|
||||
--endpoint fal-ai/flux-2/klein/9b \
|
||||
--prompt-file "$HIER/prompt_$id.txt" \
|
||||
--size 512x512 --seed "$seed" --num-images 4 \
|
||||
--kategorie Objects --name "item_${id}_s${seed}" 2>&1 | tee -a "$LOG"
|
||||
}
|
||||
|
||||
lauf schwert 9101
|
||||
lauf dolch 9102
|
||||
lauf stab 9103
|
||||
lauf keule 9104
|
||||
lauf leder 9105
|
||||
lauf kette 9106
|
||||
lauf platte 9107
|
||||
lauf schild 9108
|
||||
lauf laterne 9109
|
||||
lauf seil 9110
|
||||
lauf vorrat 9111
|
||||
|
||||
echo "=== fertig ===" | tee -a "$LOG"
|
||||
|
|
@ -546,9 +546,10 @@ Struktur, Datenmodell und Effekt-Vokabel stehen in [`engine.md`](engine.md).
|
|||
`tools/probe_erstellung.tscn`. Startausrüstung, vier Volk-Porträts
|
||||
(384 px) und vier Klassen-Embleme (64 px) sind in Maske und Roster —
|
||||
Entwurf in [`charaktererstellung.md`](charaktererstellung.md).
|
||||
- [x] **Inventar**: Modal über der Karte, Partei-Reiter, ausgerüstete Slots und
|
||||
Rucksack mit Ausrüsten/Ablegen; Startgepäck in `classes.json`. Bewusst eine
|
||||
Liste, kein 5×3-Raster, solange Item-Icons fehlen (`prep/inventar/`).
|
||||
- [x] **Inventar**: Modal über der Karte, Partei-Reiter, 5×3-Raster mit
|
||||
64er-Item-Icons, Ausrüsten/Ablegen, Klassenbeschränkung, Gold und
|
||||
Verbrauchsgüter; Startgepäck in `classes.json`.
|
||||
Belege: `prep/inventar/`, `prep/item-icons/`.
|
||||
- [ ] **Kartenwechsel** (Overland ↔ Stadt ↔ Dungeon).
|
||||
- [x] **Titelschirm** (`scenes/title/titel.tscn`): gemaltes Titelbild,
|
||||
vorgerenderte Wortmarke `ui/titel_taloria.png`, Neu/Weiter/Laden/Beenden.
|
||||
|
|
|
|||
|
|
@ -67,8 +67,9 @@ bespielbar (Ortsbild → Gebiet → zurück).
|
|||
| `art/final/Creatures/` | 11 Kreaturen **1:1** in Anzeigegröße (84/108/144/288/384/480) |
|
||||
| `game/scripts/systems/charakter.gd` | Punktekauf, Volksbonus, Ableitung und Prüfung der Erstellung |
|
||||
| `game/scenes/title/titel.*` | Titelschirm: Neu, Weiter, Laden (3 Slots), Beenden |
|
||||
| `game/scenes/ui/inventar.*` | Inventar-Modal: Partei-Reiter, Slots, Rucksack, Ausrüsten/Ablegen |
|
||||
| `game/scenes/ui/inventar.*` | Inventar-Modal: Partei-Reiter, 5×3-Raster, Slots, Klassenprüfung |
|
||||
| `art/prep/inventar/` | Beleg des Inventars: Screenshot, Datenmodell, offene Punkte |
|
||||
| `art/prep/item-icons/` | Beleg der elf Item-Icons (64 px): Auswahl, Kette-Nachlauf |
|
||||
| `game/scenes/creation/erstellung.*` | Roster (1–6) und Figurenmaske; Einstieg nach „Neu" |
|
||||
| `docs/charaktererstellung.md` | Entwurf der Party-Erstellung: Ablauf, Schirm, Regeln, Prüfkriterien |
|
||||
| `game/assets/gemalt/` | **gemalte Assets** (Hintergrund, Figuren, Props, Porträts, Ortsbild) |
|
||||
|
|
@ -162,8 +163,9 @@ Ohne Raws läuft das Spiel; sie fehlen nur, wenn `pixelize.py` oder
|
|||
|
||||
## Was diese Session gekostet hat
|
||||
|
||||
Renderings: **≈ 1,33 $** über 45 FLUX-Läufe (14.–17.11.). Davon
|
||||
Renderings: **≈ 1,41 $** über 57 FLUX-Läufe (14.–17.11.). Davon
|
||||
**0,372 $** Kreaturen (44 Rohbilder), **0,101 $** vier Volk-Porträts,
|
||||
**0,038 $** vier Klassen-Embleme und **0,373 $** fünf Vollbilder in 1920×1080
|
||||
(sechs erfolgreiche [pro]-Läufe). Jede Zeile steht mit `request_id` in
|
||||
**0,038 $** vier Klassen-Embleme, **0,373 $** fünf Vollbilder in 1920×1080
|
||||
(sechs erfolgreiche [pro]-Läufe) und **0,076 $** elf Item-Icons (inkl.
|
||||
Kette-Nachlauf). Jede Zeile steht mit `request_id` in
|
||||
[`../art/license-log.csv`](../art/license-log.csv).
|
||||
|
|
|
|||
|
|
@ -59,10 +59,10 @@ eigener Viewport — das ist die Draufsicht-Entscheidung aus
|
|||
Fenster liegen mittig über der abgedunkelten Karte; die Partyspalte bleibt
|
||||
sichtbar. Mock: [`../art/prep/map-mock/`](../art/prep/map-mock/) (`_mock_inventar`).
|
||||
|
||||
> **Umsetzung 17.11.2026:** Das Fenster zeigt eine **Liste** (ausgerüstete
|
||||
> Slots + Rucksack) statt des 5×3-Rasters. Grund: Es gibt noch keine
|
||||
> Item-Icons; ein Raster aus leeren Kästchen wäre unehrlicher. Das Raster kommt
|
||||
> mit den Icons. Beleg: [`../art/prep/inventar/`](../art/prep/inventar/README.md).
|
||||
> **Umsetzung 17.11.2026:** Das 5×3-Raster steht — 88er-Slots, 64er-Icons,
|
||||
> Zähler unten rechts, Detailbox mit Ausrüsten/Ablegen/Benutzen und
|
||||
> Klassenprüfung. Belege: [`../art/prep/inventar/`](../art/prep/inventar/README.md)
|
||||
> und [`../art/prep/item-icons/`](../art/prep/item-icons/README.md).
|
||||
|
||||
### Kampf
|
||||
|
||||
|
|
|
|||
BIN
game/assets/objects/item_dolch_64.png
Normal file
|
After Width: | Height: | Size: 983 B |
40
game/assets/objects/item_dolch_64.png.import
Normal file
|
|
@ -0,0 +1,40 @@
|
|||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://doqinpxu7nf0w"
|
||||
path="res://.godot/imported/item_dolch_64.png-5ba3c9f48682a49f578979157ab5b812.ctex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://assets/objects/item_dolch_64.png"
|
||||
dest_files=["res://.godot/imported/item_dolch_64.png-5ba3c9f48682a49f578979157ab5b812.ctex"]
|
||||
|
||||
[params]
|
||||
|
||||
compress/mode=0
|
||||
compress/high_quality=false
|
||||
compress/lossy_quality=0.7
|
||||
compress/uastc_level=0
|
||||
compress/rdo_quality_loss=0.0
|
||||
compress/hdr_compression=1
|
||||
compress/normal_map=0
|
||||
compress/channel_pack=0
|
||||
mipmaps/generate=false
|
||||
mipmaps/limit=-1
|
||||
roughness/mode=0
|
||||
roughness/src_normal=""
|
||||
process/channel_remap/red=0
|
||||
process/channel_remap/green=1
|
||||
process/channel_remap/blue=2
|
||||
process/channel_remap/alpha=3
|
||||
process/fix_alpha_border=true
|
||||
process/premult_alpha=false
|
||||
process/normal_map_invert_y=false
|
||||
process/hdr_as_srgb=false
|
||||
process/hdr_clamp_exposure=false
|
||||
process/size_limit=0
|
||||
detect_3d/compress_to=1
|
||||
BIN
game/assets/objects/item_kette_64.png
Normal file
|
After Width: | Height: | Size: 3.7 KiB |
40
game/assets/objects/item_kette_64.png.import
Normal file
|
|
@ -0,0 +1,40 @@
|
|||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://bkl7oxhn4a705"
|
||||
path="res://.godot/imported/item_kette_64.png-8589e2e600dce0d482c1e9cbb450d6bb.ctex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://assets/objects/item_kette_64.png"
|
||||
dest_files=["res://.godot/imported/item_kette_64.png-8589e2e600dce0d482c1e9cbb450d6bb.ctex"]
|
||||
|
||||
[params]
|
||||
|
||||
compress/mode=0
|
||||
compress/high_quality=false
|
||||
compress/lossy_quality=0.7
|
||||
compress/uastc_level=0
|
||||
compress/rdo_quality_loss=0.0
|
||||
compress/hdr_compression=1
|
||||
compress/normal_map=0
|
||||
compress/channel_pack=0
|
||||
mipmaps/generate=false
|
||||
mipmaps/limit=-1
|
||||
roughness/mode=0
|
||||
roughness/src_normal=""
|
||||
process/channel_remap/red=0
|
||||
process/channel_remap/green=1
|
||||
process/channel_remap/blue=2
|
||||
process/channel_remap/alpha=3
|
||||
process/fix_alpha_border=true
|
||||
process/premult_alpha=false
|
||||
process/normal_map_invert_y=false
|
||||
process/hdr_as_srgb=false
|
||||
process/hdr_clamp_exposure=false
|
||||
process/size_limit=0
|
||||
detect_3d/compress_to=1
|
||||
BIN
game/assets/objects/item_keule_64.png
Normal file
|
After Width: | Height: | Size: 1.3 KiB |
40
game/assets/objects/item_keule_64.png.import
Normal file
|
|
@ -0,0 +1,40 @@
|
|||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://1lx6eq7dmqtd"
|
||||
path="res://.godot/imported/item_keule_64.png-9e14329ca2fc8593ccea4653c95e1cfd.ctex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://assets/objects/item_keule_64.png"
|
||||
dest_files=["res://.godot/imported/item_keule_64.png-9e14329ca2fc8593ccea4653c95e1cfd.ctex"]
|
||||
|
||||
[params]
|
||||
|
||||
compress/mode=0
|
||||
compress/high_quality=false
|
||||
compress/lossy_quality=0.7
|
||||
compress/uastc_level=0
|
||||
compress/rdo_quality_loss=0.0
|
||||
compress/hdr_compression=1
|
||||
compress/normal_map=0
|
||||
compress/channel_pack=0
|
||||
mipmaps/generate=false
|
||||
mipmaps/limit=-1
|
||||
roughness/mode=0
|
||||
roughness/src_normal=""
|
||||
process/channel_remap/red=0
|
||||
process/channel_remap/green=1
|
||||
process/channel_remap/blue=2
|
||||
process/channel_remap/alpha=3
|
||||
process/fix_alpha_border=true
|
||||
process/premult_alpha=false
|
||||
process/normal_map_invert_y=false
|
||||
process/hdr_as_srgb=false
|
||||
process/hdr_clamp_exposure=false
|
||||
process/size_limit=0
|
||||
detect_3d/compress_to=1
|
||||
BIN
game/assets/objects/item_laterne_64.png
Normal file
|
After Width: | Height: | Size: 1 KiB |
40
game/assets/objects/item_laterne_64.png.import
Normal file
|
|
@ -0,0 +1,40 @@
|
|||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://b68fuwp4rktek"
|
||||
path="res://.godot/imported/item_laterne_64.png-75fe6c53021027132d619edd9ed39133.ctex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://assets/objects/item_laterne_64.png"
|
||||
dest_files=["res://.godot/imported/item_laterne_64.png-75fe6c53021027132d619edd9ed39133.ctex"]
|
||||
|
||||
[params]
|
||||
|
||||
compress/mode=0
|
||||
compress/high_quality=false
|
||||
compress/lossy_quality=0.7
|
||||
compress/uastc_level=0
|
||||
compress/rdo_quality_loss=0.0
|
||||
compress/hdr_compression=1
|
||||
compress/normal_map=0
|
||||
compress/channel_pack=0
|
||||
mipmaps/generate=false
|
||||
mipmaps/limit=-1
|
||||
roughness/mode=0
|
||||
roughness/src_normal=""
|
||||
process/channel_remap/red=0
|
||||
process/channel_remap/green=1
|
||||
process/channel_remap/blue=2
|
||||
process/channel_remap/alpha=3
|
||||
process/fix_alpha_border=true
|
||||
process/premult_alpha=false
|
||||
process/normal_map_invert_y=false
|
||||
process/hdr_as_srgb=false
|
||||
process/hdr_clamp_exposure=false
|
||||
process/size_limit=0
|
||||
detect_3d/compress_to=1
|
||||
BIN
game/assets/objects/item_leder_64.png
Normal file
|
After Width: | Height: | Size: 1.9 KiB |
40
game/assets/objects/item_leder_64.png.import
Normal file
|
|
@ -0,0 +1,40 @@
|
|||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://bv0a6761xtxcj"
|
||||
path="res://.godot/imported/item_leder_64.png-c727e531824447b73cd54778114ecdab.ctex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://assets/objects/item_leder_64.png"
|
||||
dest_files=["res://.godot/imported/item_leder_64.png-c727e531824447b73cd54778114ecdab.ctex"]
|
||||
|
||||
[params]
|
||||
|
||||
compress/mode=0
|
||||
compress/high_quality=false
|
||||
compress/lossy_quality=0.7
|
||||
compress/uastc_level=0
|
||||
compress/rdo_quality_loss=0.0
|
||||
compress/hdr_compression=1
|
||||
compress/normal_map=0
|
||||
compress/channel_pack=0
|
||||
mipmaps/generate=false
|
||||
mipmaps/limit=-1
|
||||
roughness/mode=0
|
||||
roughness/src_normal=""
|
||||
process/channel_remap/red=0
|
||||
process/channel_remap/green=1
|
||||
process/channel_remap/blue=2
|
||||
process/channel_remap/alpha=3
|
||||
process/fix_alpha_border=true
|
||||
process/premult_alpha=false
|
||||
process/normal_map_invert_y=false
|
||||
process/hdr_as_srgb=false
|
||||
process/hdr_clamp_exposure=false
|
||||
process/size_limit=0
|
||||
detect_3d/compress_to=1
|
||||
BIN
game/assets/objects/item_platte_64.png
Normal file
|
After Width: | Height: | Size: 2.1 KiB |
40
game/assets/objects/item_platte_64.png.import
Normal file
|
|
@ -0,0 +1,40 @@
|
|||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://sdq0lac24wwi"
|
||||
path="res://.godot/imported/item_platte_64.png-3cd44ffa026cbb7cc837c881865b55fa.ctex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://assets/objects/item_platte_64.png"
|
||||
dest_files=["res://.godot/imported/item_platte_64.png-3cd44ffa026cbb7cc837c881865b55fa.ctex"]
|
||||
|
||||
[params]
|
||||
|
||||
compress/mode=0
|
||||
compress/high_quality=false
|
||||
compress/lossy_quality=0.7
|
||||
compress/uastc_level=0
|
||||
compress/rdo_quality_loss=0.0
|
||||
compress/hdr_compression=1
|
||||
compress/normal_map=0
|
||||
compress/channel_pack=0
|
||||
mipmaps/generate=false
|
||||
mipmaps/limit=-1
|
||||
roughness/mode=0
|
||||
roughness/src_normal=""
|
||||
process/channel_remap/red=0
|
||||
process/channel_remap/green=1
|
||||
process/channel_remap/blue=2
|
||||
process/channel_remap/alpha=3
|
||||
process/fix_alpha_border=true
|
||||
process/premult_alpha=false
|
||||
process/normal_map_invert_y=false
|
||||
process/hdr_as_srgb=false
|
||||
process/hdr_clamp_exposure=false
|
||||
process/size_limit=0
|
||||
detect_3d/compress_to=1
|
||||
BIN
game/assets/objects/item_schild_64.png
Normal file
|
After Width: | Height: | Size: 1.6 KiB |
40
game/assets/objects/item_schild_64.png.import
Normal file
|
|
@ -0,0 +1,40 @@
|
|||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://qm777pyc5u5t"
|
||||
path="res://.godot/imported/item_schild_64.png-824eb212dcc17f66f27cc47974f41a0e.ctex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://assets/objects/item_schild_64.png"
|
||||
dest_files=["res://.godot/imported/item_schild_64.png-824eb212dcc17f66f27cc47974f41a0e.ctex"]
|
||||
|
||||
[params]
|
||||
|
||||
compress/mode=0
|
||||
compress/high_quality=false
|
||||
compress/lossy_quality=0.7
|
||||
compress/uastc_level=0
|
||||
compress/rdo_quality_loss=0.0
|
||||
compress/hdr_compression=1
|
||||
compress/normal_map=0
|
||||
compress/channel_pack=0
|
||||
mipmaps/generate=false
|
||||
mipmaps/limit=-1
|
||||
roughness/mode=0
|
||||
roughness/src_normal=""
|
||||
process/channel_remap/red=0
|
||||
process/channel_remap/green=1
|
||||
process/channel_remap/blue=2
|
||||
process/channel_remap/alpha=3
|
||||
process/fix_alpha_border=true
|
||||
process/premult_alpha=false
|
||||
process/normal_map_invert_y=false
|
||||
process/hdr_as_srgb=false
|
||||
process/hdr_clamp_exposure=false
|
||||
process/size_limit=0
|
||||
detect_3d/compress_to=1
|
||||
BIN
game/assets/objects/item_schwert_64.png
Normal file
|
After Width: | Height: | Size: 580 B |
40
game/assets/objects/item_schwert_64.png.import
Normal file
|
|
@ -0,0 +1,40 @@
|
|||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://dfisyg14fqkss"
|
||||
path="res://.godot/imported/item_schwert_64.png-8768e0caa5b6513b3639d40c815c1d38.ctex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://assets/objects/item_schwert_64.png"
|
||||
dest_files=["res://.godot/imported/item_schwert_64.png-8768e0caa5b6513b3639d40c815c1d38.ctex"]
|
||||
|
||||
[params]
|
||||
|
||||
compress/mode=0
|
||||
compress/high_quality=false
|
||||
compress/lossy_quality=0.7
|
||||
compress/uastc_level=0
|
||||
compress/rdo_quality_loss=0.0
|
||||
compress/hdr_compression=1
|
||||
compress/normal_map=0
|
||||
compress/channel_pack=0
|
||||
mipmaps/generate=false
|
||||
mipmaps/limit=-1
|
||||
roughness/mode=0
|
||||
roughness/src_normal=""
|
||||
process/channel_remap/red=0
|
||||
process/channel_remap/green=1
|
||||
process/channel_remap/blue=2
|
||||
process/channel_remap/alpha=3
|
||||
process/fix_alpha_border=true
|
||||
process/premult_alpha=false
|
||||
process/normal_map_invert_y=false
|
||||
process/hdr_as_srgb=false
|
||||
process/hdr_clamp_exposure=false
|
||||
process/size_limit=0
|
||||
detect_3d/compress_to=1
|
||||
BIN
game/assets/objects/item_seil_64.png
Normal file
|
After Width: | Height: | Size: 2.2 KiB |
40
game/assets/objects/item_seil_64.png.import
Normal file
|
|
@ -0,0 +1,40 @@
|
|||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://csayb2dah4o41"
|
||||
path="res://.godot/imported/item_seil_64.png-830e0b0be2ab0f8082fbe0c41dc5aa76.ctex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://assets/objects/item_seil_64.png"
|
||||
dest_files=["res://.godot/imported/item_seil_64.png-830e0b0be2ab0f8082fbe0c41dc5aa76.ctex"]
|
||||
|
||||
[params]
|
||||
|
||||
compress/mode=0
|
||||
compress/high_quality=false
|
||||
compress/lossy_quality=0.7
|
||||
compress/uastc_level=0
|
||||
compress/rdo_quality_loss=0.0
|
||||
compress/hdr_compression=1
|
||||
compress/normal_map=0
|
||||
compress/channel_pack=0
|
||||
mipmaps/generate=false
|
||||
mipmaps/limit=-1
|
||||
roughness/mode=0
|
||||
roughness/src_normal=""
|
||||
process/channel_remap/red=0
|
||||
process/channel_remap/green=1
|
||||
process/channel_remap/blue=2
|
||||
process/channel_remap/alpha=3
|
||||
process/fix_alpha_border=true
|
||||
process/premult_alpha=false
|
||||
process/normal_map_invert_y=false
|
||||
process/hdr_as_srgb=false
|
||||
process/hdr_clamp_exposure=false
|
||||
process/size_limit=0
|
||||
detect_3d/compress_to=1
|
||||
BIN
game/assets/objects/item_stab_64.png
Normal file
|
After Width: | Height: | Size: 757 B |
40
game/assets/objects/item_stab_64.png.import
Normal file
|
|
@ -0,0 +1,40 @@
|
|||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://cpcnmb0v6wbik"
|
||||
path="res://.godot/imported/item_stab_64.png-e225734de56fd862d42e8fee6fe0d838.ctex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://assets/objects/item_stab_64.png"
|
||||
dest_files=["res://.godot/imported/item_stab_64.png-e225734de56fd862d42e8fee6fe0d838.ctex"]
|
||||
|
||||
[params]
|
||||
|
||||
compress/mode=0
|
||||
compress/high_quality=false
|
||||
compress/lossy_quality=0.7
|
||||
compress/uastc_level=0
|
||||
compress/rdo_quality_loss=0.0
|
||||
compress/hdr_compression=1
|
||||
compress/normal_map=0
|
||||
compress/channel_pack=0
|
||||
mipmaps/generate=false
|
||||
mipmaps/limit=-1
|
||||
roughness/mode=0
|
||||
roughness/src_normal=""
|
||||
process/channel_remap/red=0
|
||||
process/channel_remap/green=1
|
||||
process/channel_remap/blue=2
|
||||
process/channel_remap/alpha=3
|
||||
process/fix_alpha_border=true
|
||||
process/premult_alpha=false
|
||||
process/normal_map_invert_y=false
|
||||
process/hdr_as_srgb=false
|
||||
process/hdr_clamp_exposure=false
|
||||
process/size_limit=0
|
||||
detect_3d/compress_to=1
|
||||
BIN
game/assets/objects/item_vorrat_64.png
Normal file
|
After Width: | Height: | Size: 1.2 KiB |
40
game/assets/objects/item_vorrat_64.png.import
Normal file
|
|
@ -0,0 +1,40 @@
|
|||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://xd2kxfekewfd"
|
||||
path="res://.godot/imported/item_vorrat_64.png-d6e9ef72f1005e418f3e8df8287bfc4b.ctex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://assets/objects/item_vorrat_64.png"
|
||||
dest_files=["res://.godot/imported/item_vorrat_64.png-d6e9ef72f1005e418f3e8df8287bfc4b.ctex"]
|
||||
|
||||
[params]
|
||||
|
||||
compress/mode=0
|
||||
compress/high_quality=false
|
||||
compress/lossy_quality=0.7
|
||||
compress/uastc_level=0
|
||||
compress/rdo_quality_loss=0.0
|
||||
compress/hdr_compression=1
|
||||
compress/normal_map=0
|
||||
compress/channel_pack=0
|
||||
mipmaps/generate=false
|
||||
mipmaps/limit=-1
|
||||
roughness/mode=0
|
||||
roughness/src_normal=""
|
||||
process/channel_remap/red=0
|
||||
process/channel_remap/green=1
|
||||
process/channel_remap/blue=2
|
||||
process/channel_remap/alpha=3
|
||||
process/fix_alpha_border=true
|
||||
process/premult_alpha=false
|
||||
process/normal_map_invert_y=false
|
||||
process/hdr_as_srgb=false
|
||||
process/hdr_clamp_exposure=false
|
||||
process/size_limit=0
|
||||
detect_3d/compress_to=1
|
||||
|
|
@ -1,9 +1,9 @@
|
|||
extends Control
|
||||
## Inventar als Modal über der Karte (docs/ui.md §1).
|
||||
##
|
||||
## Zeigt pro Party-Figur die ausgerüsteten Slots und den Rucksack. Ausrüsten
|
||||
## nimmt ein Stück aus dem Rucksack, Ablegen legt es zurück; die RK kommt aus
|
||||
## `Game.rk()` und ändert sich sofort.
|
||||
## 5×3-Raster mit Item-Icons, ausgerüstete Slots links, Details und Aktionen
|
||||
## rechts. Ausrüsten prüft die Klassenbeschränkung aus `classes.json`;
|
||||
## Verbrauchsgüter laufen über `Game.benutzen()`.
|
||||
|
||||
signal geschlossen
|
||||
|
||||
|
|
@ -14,9 +14,17 @@ const SLOTS := [
|
|||
{"key": "armor", "label": "Rüstung"},
|
||||
{"key": "shield", "label": "Schild"},
|
||||
]
|
||||
const SPALTEN := 5
|
||||
const ZEILEN := 3
|
||||
const KACHEL := 88
|
||||
const ABSTAND := 8
|
||||
const RASTER := Vector2(640, 200)
|
||||
|
||||
var _index := 0
|
||||
var _wurzel: Control
|
||||
var _sel_id := ""
|
||||
var _sel_quelle := "" ## "inventar" oder "slot"
|
||||
var _meldung := ""
|
||||
|
||||
|
||||
func _ready() -> void:
|
||||
|
|
@ -41,13 +49,47 @@ func _bauen() -> void:
|
|||
p.add_theme_stylebox_override("panel", THEME.flaeche(Color(1, 1, 1)))
|
||||
_wurzel.add_child(p)
|
||||
|
||||
var titel := Label.new()
|
||||
titel.text = "INVENTAR"
|
||||
titel.position = Vector2(40, 24)
|
||||
titel.add_theme_color_override("font_color", UiTheme.GOLD)
|
||||
p.add_child(titel)
|
||||
_titel(p)
|
||||
_reiter(p)
|
||||
_gold(p)
|
||||
|
||||
# Partei-Reiter
|
||||
if Game.party.is_empty():
|
||||
_label(p, "Keine Figur in der Party.", Vector2(40, 200))
|
||||
_schliessen_knopf(p)
|
||||
return
|
||||
|
||||
var figur: Dictionary = Game.party[_index]
|
||||
_ausgeruestet(p, figur)
|
||||
_rucksack(p, figur)
|
||||
_details(p, figur)
|
||||
|
||||
_label(p, "RK %d Angriff +%d TP %d/%d" % [
|
||||
Game.rk(figur), Game.angriffsbonus(figur),
|
||||
int(figur["hp"]["current"]), int(figur["hp"]["max"])],
|
||||
Vector2(40, 680), Vector2(700, 40))
|
||||
_schliessen_knopf(p)
|
||||
|
||||
|
||||
func _titel(p: Panel) -> void:
|
||||
var l := Label.new()
|
||||
l.text = "INVENTAR"
|
||||
l.position = Vector2(40, 24)
|
||||
l.add_theme_color_override("font_color", UiTheme.GOLD)
|
||||
p.add_child(l)
|
||||
|
||||
|
||||
func _gold(p: Panel) -> void:
|
||||
var l := Label.new()
|
||||
l.text = "Gold: %d" % Game.gold
|
||||
l.position = Vector2(1080, 24)
|
||||
l.size = Vector2(280, 40)
|
||||
l.horizontal_alignment = HORIZONTAL_ALIGNMENT_RIGHT
|
||||
l.clip_text = true
|
||||
l.add_theme_color_override("font_color", UiTheme.GOLD)
|
||||
p.add_child(l)
|
||||
|
||||
|
||||
func _reiter(p: Panel) -> void:
|
||||
var x := 40
|
||||
for i in Game.party.size():
|
||||
var b := Button.new()
|
||||
|
|
@ -57,53 +99,21 @@ func _bauen() -> void:
|
|||
b.focus_mode = Control.FOCUS_NONE
|
||||
b.clip_text = true
|
||||
b.modulate = Color(1.45, 1.25, 0.95) if i == _index else Color(1, 1, 1)
|
||||
b.pressed.connect(_waehlen.bind(i))
|
||||
b.pressed.connect(_waehlen_figur.bind(i))
|
||||
p.add_child(b)
|
||||
x += 180
|
||||
|
||||
if Game.party.is_empty():
|
||||
var leer := Label.new()
|
||||
leer.text = "Keine Figur in der Party."
|
||||
leer.position = Vector2(40, 180)
|
||||
p.add_child(leer)
|
||||
_schliessen_knopf(p)
|
||||
return
|
||||
|
||||
var figur: Dictionary = Game.party[_index]
|
||||
_ausgeruestet(p, figur)
|
||||
_rucksack(p, figur)
|
||||
|
||||
var werte := Label.new()
|
||||
werte.text = "RK %d Angriff +%d TP %d/%d" % [
|
||||
Game.rk(figur), Game.angriffsbonus(figur),
|
||||
int(figur["hp"]["current"]), int(figur["hp"]["max"])]
|
||||
werte.position = Vector2(40, 680)
|
||||
werte.size = Vector2(700, 40)
|
||||
werte.clip_text = true
|
||||
p.add_child(werte)
|
||||
|
||||
_schliessen_knopf(p)
|
||||
|
||||
# ------------------------------------------------------------- ausgerüstet --
|
||||
|
||||
func _ausgeruestet(p: Panel, figur: Dictionary) -> void:
|
||||
var kopf := Label.new()
|
||||
kopf.text = "AUSGERÜSTET"
|
||||
kopf.position = Vector2(40, 160)
|
||||
kopf.add_theme_color_override("font_color", UiTheme.GOLD)
|
||||
p.add_child(kopf)
|
||||
_label(p, "AUSGERÜSTET", Vector2(40, 160),
|
||||
Vector2(300, 40), UiTheme.GOLD)
|
||||
|
||||
var equipment: Dictionary = figur.get("equipment", {})
|
||||
for i in SLOTS.size():
|
||||
var slot: Dictionary = SLOTS[i]
|
||||
var y := 210 + i * 84
|
||||
var slot_label := Label.new()
|
||||
slot_label.text = str(slot["label"])
|
||||
slot_label.position = Vector2(40, y)
|
||||
slot_label.size = Vector2(160, 52)
|
||||
slot_label.vertical_alignment = VERTICAL_ALIGNMENT_CENTER
|
||||
slot_label.clip_text = true
|
||||
p.add_child(slot_label)
|
||||
|
||||
var y := 210 + i * 100
|
||||
var id := ""
|
||||
if str(slot["key"]) == "shield":
|
||||
if bool(equipment.get("shield", false)):
|
||||
|
|
@ -111,19 +121,17 @@ func _ausgeruestet(p: Panel, figur: Dictionary) -> void:
|
|||
else:
|
||||
id = str(equipment.get(slot["key"], ""))
|
||||
|
||||
var wert := Label.new()
|
||||
wert.text = _item_name(id) if not id.is_empty() else "—"
|
||||
wert.position = Vector2(210, y)
|
||||
wert.size = Vector2(260, 52)
|
||||
wert.vertical_alignment = VERTICAL_ALIGNMENT_CENTER
|
||||
wert.clip_text = true
|
||||
wert.modulate = Color(0.9, 0.84, 0.70)
|
||||
p.add_child(wert)
|
||||
if not id.is_empty():
|
||||
_icon(p, id, Vector2(40, y))
|
||||
_label(p, str(slot["label"]), Vector2(120, y + 12),
|
||||
Vector2(260, 40), UiTheme.CREAM_D)
|
||||
_label(p, _item_name(id) if not id.is_empty() else "—",
|
||||
Vector2(120, y + 44), Vector2(260, 40))
|
||||
|
||||
if not id.is_empty():
|
||||
var b := Button.new()
|
||||
b.text = "Ablegen"
|
||||
b.position = Vector2(480, y)
|
||||
b.position = Vector2(400, y + 6)
|
||||
b.size = Vector2(200, 52)
|
||||
b.focus_mode = Control.FOCUS_NONE
|
||||
b.clip_text = true
|
||||
|
|
@ -131,62 +139,205 @@ func _ausgeruestet(p: Panel, figur: Dictionary) -> void:
|
|||
p.add_child(b)
|
||||
|
||||
|
||||
# ---------------------------------------------------------------- Rucksack --
|
||||
|
||||
func _rucksack(p: Panel, figur: Dictionary) -> void:
|
||||
var kopf := Label.new()
|
||||
kopf.text = "RUCKSACK"
|
||||
kopf.position = Vector2(720, 160)
|
||||
kopf.add_theme_color_override("font_color", UiTheme.GOLD)
|
||||
p.add_child(kopf)
|
||||
_label(p, "RUCKSACK", RASTER + Vector2(0, -40),
|
||||
Vector2(300, 40), UiTheme.GOLD)
|
||||
|
||||
var inventar: Array = figur.get("inventory", [])
|
||||
if inventar.is_empty():
|
||||
var leer := Label.new()
|
||||
leer.text = "leer"
|
||||
leer.position = Vector2(720, 210)
|
||||
leer.modulate = Color(0.75, 0.70, 0.60)
|
||||
p.add_child(leer)
|
||||
for i in SPALTEN * ZEILEN:
|
||||
var x := RASTER.x + (i % SPALTEN) * (KACHEL + ABSTAND)
|
||||
var y := RASTER.y + (i / SPALTEN) * (KACHEL + ABSTAND)
|
||||
if i < inventar.size():
|
||||
var eintrag = inventar[i]
|
||||
var id := ""
|
||||
var anzahl := 1
|
||||
if typeof(eintrag) == TYPE_DICTIONARY:
|
||||
id = str(eintrag.get("id", ""))
|
||||
anzahl = int(eintrag.get("count", 1))
|
||||
else:
|
||||
id = str(eintrag)
|
||||
_slot_knopf(p, id, anzahl, Vector2(x, y))
|
||||
else:
|
||||
_leerer_slot(p, Vector2(x, y))
|
||||
|
||||
|
||||
func _slot_knopf(p: Panel, id: String, anzahl: int, pos: Vector2) -> void:
|
||||
var b := Button.new()
|
||||
b.position = pos
|
||||
b.size = Vector2(KACHEL, KACHEL)
|
||||
b.focus_mode = Control.FOCUS_NONE
|
||||
b.tooltip_text = _item_name(id)
|
||||
_slot_style(b, _sel_id == id and _sel_quelle == "inventar")
|
||||
b.pressed.connect(_waehlen_item.bind(id))
|
||||
p.add_child(b)
|
||||
|
||||
var t := _item_textur(id)
|
||||
if t != null:
|
||||
var icon := TextureRect.new()
|
||||
icon.texture = t
|
||||
icon.position = Vector2(12, 6)
|
||||
icon.size = Vector2(64, 64)
|
||||
icon.expand_mode = TextureRect.EXPAND_IGNORE_SIZE
|
||||
icon.stretch_mode = TextureRect.STRETCH_KEEP_ASPECT_CENTERED
|
||||
icon.texture_filter = CanvasItem.TEXTURE_FILTER_NEAREST
|
||||
icon.mouse_filter = Control.MOUSE_FILTER_IGNORE
|
||||
b.add_child(icon)
|
||||
|
||||
if anzahl > 1:
|
||||
var zahl := Label.new()
|
||||
zahl.text = str(anzahl)
|
||||
zahl.position = Vector2(44, 54)
|
||||
zahl.size = Vector2(40, 30)
|
||||
zahl.horizontal_alignment = HORIZONTAL_ALIGNMENT_RIGHT
|
||||
zahl.add_theme_color_override("font_outline_color", UiTheme.INK)
|
||||
zahl.add_theme_constant_override("outline_size", 6)
|
||||
zahl.mouse_filter = Control.MOUSE_FILTER_IGNORE
|
||||
b.add_child(zahl)
|
||||
|
||||
|
||||
func _leerer_slot(p: Panel, pos: Vector2) -> void:
|
||||
var panel := Panel.new()
|
||||
panel.position = pos
|
||||
panel.size = Vector2(KACHEL, KACHEL)
|
||||
var sb := StyleBoxFlat.new()
|
||||
sb.bg_color = Color(UiTheme.PANEL_LO, 0.7)
|
||||
sb.border_color = Color(UiTheme.LINE, 0.45)
|
||||
sb.set_border_width_all(2)
|
||||
panel.add_theme_stylebox_override("panel", sb)
|
||||
p.add_child(panel)
|
||||
|
||||
|
||||
func _slot_style(b: Button, gewaehlt: bool) -> void:
|
||||
var normal := StyleBoxFlat.new()
|
||||
normal.bg_color = UiTheme.PANEL_LO
|
||||
normal.border_color = UiTheme.GOLD if gewaehlt else UiTheme.LINE
|
||||
normal.set_border_width_all(2)
|
||||
var heiss := normal.duplicate() as StyleBoxFlat
|
||||
heiss.bg_color = UiTheme.PANEL_HI
|
||||
heiss.border_color = UiTheme.GOLD
|
||||
b.add_theme_stylebox_override("normal", normal)
|
||||
b.add_theme_stylebox_override("hover", heiss)
|
||||
b.add_theme_stylebox_override("pressed", heiss)
|
||||
b.add_theme_stylebox_override("focus", normal)
|
||||
|
||||
|
||||
# ----------------------------------------------------------------- Details --
|
||||
|
||||
func _details(p: Panel, figur: Dictionary) -> void:
|
||||
var box := Panel.new()
|
||||
box.position = Vector2(640, 510)
|
||||
box.size = Vector2(720, 150)
|
||||
box.add_theme_stylebox_override("panel", THEME.flaeche(Color(1, 1, 1)))
|
||||
p.add_child(box)
|
||||
|
||||
if _sel_id.is_empty():
|
||||
_label(box, "Wähle einen Gegenstand.", Vector2(20, 20),
|
||||
Vector2(680, 40), UiTheme.CREAM_D)
|
||||
if not _meldung.is_empty():
|
||||
_label(box, _meldung, Vector2(20, 80), Vector2(680, 36),
|
||||
Color(0.88, 0.78, 0.55))
|
||||
return
|
||||
|
||||
for i in inventar.size():
|
||||
var eintrag = inventar[i]
|
||||
var id := ""
|
||||
var anzahl := 1
|
||||
if typeof(eintrag) == TYPE_DICTIONARY:
|
||||
id = str(eintrag.get("id", ""))
|
||||
anzahl = int(eintrag.get("count", 1))
|
||||
_label(box, _item_name(_sel_id), Vector2(20, 16),
|
||||
Vector2(420, 40), UiTheme.GOLD)
|
||||
|
||||
var typ := _item_typ(_sel_id)
|
||||
var item: Dictionary = Content.entry("items", _sel_id)
|
||||
var beschreibung := "Sonstiges"
|
||||
match typ:
|
||||
"weapon":
|
||||
beschreibung = "Waffe - %s" % str(item.get("damage", "?"))
|
||||
"armor":
|
||||
beschreibung = "Rüstung - RK +%d" % int(item.get("ac_bonus", 0))
|
||||
"shield":
|
||||
beschreibung = "Schild - RK +%d" % int(item.get("ac_bonus", 0))
|
||||
_label(box, beschreibung, Vector2(20, 58), Vector2(420, 36), UiTheme.CREAM_D)
|
||||
|
||||
if _sel_quelle == "slot":
|
||||
_aktions_knopf(box, "Ablegen", _ablegen.bind(_sel_id))
|
||||
elif typ in ["weapon", "armor", "shield"]:
|
||||
var erlaubt: bool = Game.ausruesten_erlaubt(figur, _sel_id)
|
||||
if erlaubt:
|
||||
_aktions_knopf(box, "Ausrüsten", _ausruesten.bind(_sel_id))
|
||||
else:
|
||||
id = str(eintrag)
|
||||
if id.is_empty():
|
||||
continue
|
||||
var y := 210 + i * 56
|
||||
if y > 700:
|
||||
break
|
||||
_label(box, "Diese Klasse darf das nicht tragen.",
|
||||
Vector2(20, 104), Vector2(560, 36), Color(0.85, 0.55, 0.42))
|
||||
else:
|
||||
_aktions_knopf(box, "Benutzen", _benutzen.bind(_sel_id))
|
||||
|
||||
var item_label := Label.new()
|
||||
item_label.text = _item_name(id)
|
||||
item_label.position = Vector2(720, y)
|
||||
item_label.size = Vector2(340, 44)
|
||||
item_label.vertical_alignment = VERTICAL_ALIGNMENT_CENTER
|
||||
item_label.clip_text = true
|
||||
p.add_child(item_label)
|
||||
if not _meldung.is_empty():
|
||||
_label(box, _meldung, Vector2(20, 104), Vector2(660, 36),
|
||||
Color(0.88, 0.78, 0.55))
|
||||
|
||||
if anzahl > 1:
|
||||
var zahl := Label.new()
|
||||
zahl.text = "x%d" % anzahl
|
||||
zahl.position = Vector2(1070, y)
|
||||
zahl.size = Vector2(40, 44)
|
||||
zahl.vertical_alignment = VERTICAL_ALIGNMENT_CENTER
|
||||
p.add_child(zahl)
|
||||
|
||||
if _ist_ausruestbar(id):
|
||||
var b := Button.new()
|
||||
b.text = "Ausrüsten"
|
||||
b.position = Vector2(1120, y)
|
||||
b.size = Vector2(250, 44)
|
||||
b.focus_mode = Control.FOCUS_NONE
|
||||
b.clip_text = true
|
||||
b.pressed.connect(_ausruesten.bind(id))
|
||||
p.add_child(b)
|
||||
func _aktions_knopf(box: Panel, text: String, cb: Callable) -> void:
|
||||
var b := Button.new()
|
||||
b.text = text
|
||||
b.position = Vector2(450, 30)
|
||||
b.size = Vector2(250, 56)
|
||||
b.focus_mode = Control.FOCUS_NONE
|
||||
b.clip_text = true
|
||||
b.pressed.connect(cb)
|
||||
box.add_child(b)
|
||||
|
||||
|
||||
# -------------------------------------------------------------- Aktionen ----
|
||||
|
||||
func _waehlen_figur(index: int) -> void:
|
||||
_index = index
|
||||
_sel_id = ""
|
||||
_sel_quelle = ""
|
||||
_meldung = ""
|
||||
_bauen()
|
||||
|
||||
|
||||
func _waehlen_item(id: String) -> void:
|
||||
_sel_id = id
|
||||
_sel_quelle = "inventar"
|
||||
_meldung = ""
|
||||
_bauen()
|
||||
|
||||
|
||||
func _ausruesten(id: String) -> void:
|
||||
if Game.party.is_empty():
|
||||
return
|
||||
if Game.ausruesten(Game.party[_index], id):
|
||||
_meldung = "%s ausgerüstet." % _item_name(id)
|
||||
_sel_id = ""
|
||||
_sel_quelle = ""
|
||||
else:
|
||||
_meldung = "Nicht erlaubt oder nicht im Rucksack."
|
||||
_bauen()
|
||||
|
||||
|
||||
func _ablegen(slot: String) -> void:
|
||||
if Game.party.is_empty():
|
||||
return
|
||||
var figur: Dictionary = Game.party[_index]
|
||||
var id := ""
|
||||
if slot == "shield":
|
||||
id = "schild"
|
||||
else:
|
||||
id = str(figur.get("equipment", {}).get(slot, ""))
|
||||
if Game.ablegen(figur, slot):
|
||||
_meldung = "%s abgelegt." % _item_name(id)
|
||||
_sel_id = ""
|
||||
_sel_quelle = ""
|
||||
else:
|
||||
_meldung = "Slot ist leer."
|
||||
_bauen()
|
||||
|
||||
|
||||
func _benutzen(id: String) -> void:
|
||||
if Game.party.is_empty():
|
||||
return
|
||||
_meldung = Game.benutzen(Game.party[_index], id)
|
||||
if Game.inventar_hat(Game.party[_index], id) <= 0:
|
||||
_sel_id = ""
|
||||
_sel_quelle = ""
|
||||
_bauen()
|
||||
|
||||
|
||||
func _schliessen_knopf(p: Panel) -> void:
|
||||
|
|
@ -200,23 +351,41 @@ func _schliessen_knopf(p: Panel) -> void:
|
|||
p.add_child(b)
|
||||
|
||||
|
||||
func _waehlen(index: int) -> void:
|
||||
_index = index
|
||||
_bauen()
|
||||
# --------------------------------------------------------------- Bausteine --
|
||||
|
||||
func _label(eltern: Node, text: String, pos: Vector2,
|
||||
groesse: Vector2 = Vector2(300, 40), farbe: Color = UiTheme.CREAM) -> Label:
|
||||
var l := Label.new()
|
||||
l.text = text
|
||||
l.position = pos
|
||||
l.size = groesse
|
||||
l.vertical_alignment = VERTICAL_ALIGNMENT_CENTER
|
||||
l.clip_text = true
|
||||
l.add_theme_color_override("font_color", farbe)
|
||||
eltern.add_child(l)
|
||||
return l
|
||||
|
||||
|
||||
func _ausruesten(id: String) -> void:
|
||||
if Game.party.is_empty():
|
||||
func _icon(eltern: Node, id: String, pos: Vector2) -> void:
|
||||
var t := _item_textur(id)
|
||||
if t == null:
|
||||
return
|
||||
Game.ausruesten(Game.party[_index], id)
|
||||
_bauen()
|
||||
var icon := TextureRect.new()
|
||||
icon.texture = t
|
||||
icon.position = pos
|
||||
icon.size = Vector2(64, 64)
|
||||
icon.expand_mode = TextureRect.EXPAND_IGNORE_SIZE
|
||||
icon.stretch_mode = TextureRect.STRETCH_KEEP_ASPECT_CENTERED
|
||||
icon.texture_filter = CanvasItem.TEXTURE_FILTER_NEAREST
|
||||
icon.mouse_filter = Control.MOUSE_FILTER_IGNORE
|
||||
eltern.add_child(icon)
|
||||
|
||||
|
||||
func _ablegen(slot: String) -> void:
|
||||
if Game.party.is_empty():
|
||||
return
|
||||
Game.ablegen(Game.party[_index], slot)
|
||||
_bauen()
|
||||
func _item_textur(id: String) -> Texture2D:
|
||||
var pfad := "res://assets/objects/item_%s_64.png" % id
|
||||
if not ResourceLoader.exists(pfad):
|
||||
return null
|
||||
return load(pfad)
|
||||
|
||||
|
||||
func _item_name(id: String) -> String:
|
||||
|
|
@ -226,9 +395,8 @@ func _item_name(id: String) -> String:
|
|||
return str(item.get("name", id))
|
||||
|
||||
|
||||
func _ist_ausruestbar(id: String) -> bool:
|
||||
var typ := str(Content.entry("items", id).get("type", ""))
|
||||
return typ in ["weapon", "armor", "shield"]
|
||||
func _item_typ(id: String) -> String:
|
||||
return str(Content.entry("items", id).get("type", ""))
|
||||
|
||||
|
||||
func _leeren(node: Node) -> void:
|
||||
|
|
|
|||
|
|
@ -268,6 +268,23 @@ func _selbstpruefung() -> bool:
|
|||
Game.ausruesten(figur, "dolch")
|
||||
and str(figur["equipment"].get("weapon", "")) == "dolch"
|
||||
and Game.inventar_hat(figur, "schwert") == 1) and ok
|
||||
var magier := Game.neue_figur("pc_magier", {
|
||||
"name": "Probe-Magier", "race": "elf", "class": "magier",
|
||||
"attributes": {"str": 8, "dex": 14, "con": 10, "int": 17,
|
||||
"wis": 12, "cha": 10}})
|
||||
Game.inventar_hinzufuegen(magier, "leder")
|
||||
ok = _pruefe("Klassenbeschränkung: Magier trägt kein Leder",
|
||||
Game.ausruesten(magier, "leder") == false
|
||||
and Game.inventar_hat(magier, "leder") == 1) and ok
|
||||
ok = _pruefe("Klassenbeschränkung: Magier führt den Stab",
|
||||
Game.ausruesten_erlaubt(magier, "stab")
|
||||
and not Game.ausruesten_erlaubt(magier, "schwert")) and ok
|
||||
figur["hp"]["current"] = 1
|
||||
var vorrat_text: String = Game.benutzen(figur, "vorrat")
|
||||
ok = _pruefe("Verbrauch: Vorrat heilt und verschwindet",
|
||||
int(figur["hp"]["current"]) > 1
|
||||
and Game.inventar_hat(figur, "vorrat") == 0
|
||||
and vorrat_text.begins_with("Vorrat")) and ok
|
||||
|
||||
# Roster: 1..6, siebte Figur abgelehnt, Entfernen gibt den Platz frei.
|
||||
var sicherung: Array = Game.party.duplicate(true)
|
||||
|
|
@ -293,12 +310,15 @@ func _selbstpruefung() -> bool:
|
|||
# JSON kennt nur "Zahl", Godot liest sie als float zurück; vor dem Vergleich
|
||||
# werden ganze Zahlen normalisiert (1.0 -> 1), sonst wäre der Test unehrlich
|
||||
# streng an einer Typfrage statt am Inhalt.
|
||||
Game.gold = 37
|
||||
var vorher := JSON.stringify(_normalisiere(Game.to_dict()))
|
||||
ok = _pruefe("Spielstand schreiben", Saves.write(9)) and ok
|
||||
var geladen: Dictionary = Saves.read(9)
|
||||
Game.from_dict(geladen)
|
||||
ok = _pruefe("Gold im Spielstand", Game.gold == 37) and ok
|
||||
var nachher := JSON.stringify(_normalisiere(Game.to_dict()))
|
||||
ok = _pruefe("Spielstand identisch nach Neustart", vorher == nachher) and ok
|
||||
Game.gold = Game.START_GOLD
|
||||
DirAccess.remove_absolute(Saves.pfad(9))
|
||||
|
||||
print("\nSelbstprüfung: %s" % ("bestanden" if ok else "FEHLGESCHLAGEN"))
|
||||
|
|
|
|||
|
|
@ -7,8 +7,10 @@ extends Node
|
|||
|
||||
const START = "garana"
|
||||
const PARTY_MAX := 6
|
||||
const START_GOLD := 20
|
||||
|
||||
var party: Array = [] ## Array von Dictionaries (ids + Werte)
|
||||
var gold := START_GOLD ## Parteigold; Ausgaben kommen später dazu
|
||||
var place: Dictionary = {"id": START, "x": 9, "y": 9}
|
||||
var time: Dictionary = {"day": 1, "slot": 0}
|
||||
var flags: Dictionary = {}
|
||||
|
|
@ -188,6 +190,21 @@ func inventar_entfernen(figur: Dictionary, id: String, anzahl: int = 1) -> bool:
|
|||
return false
|
||||
|
||||
|
||||
## Klassenbeschränkung aus `classes.json` (`weapons`, `armor`).
|
||||
func ausruesten_erlaubt(figur: Dictionary, id: String) -> bool:
|
||||
var item: Dictionary = Content.entry("items", id)
|
||||
var typ := str(item.get("type", ""))
|
||||
var klasse: Dictionary = Content.class_def(str(figur.get("class", "")))
|
||||
match typ:
|
||||
"weapon":
|
||||
return klasse.get("weapons", []).has(id)
|
||||
"armor":
|
||||
return klasse.get("armor", []).has(id)
|
||||
"shield":
|
||||
return klasse.get("armor", []).has("schild")
|
||||
return false
|
||||
|
||||
|
||||
func ausruesten(figur: Dictionary, id: String) -> bool:
|
||||
var item: Dictionary = Content.entry("items", id)
|
||||
if item.is_empty():
|
||||
|
|
@ -195,6 +212,8 @@ func ausruesten(figur: Dictionary, id: String) -> bool:
|
|||
var typ := str(item.get("type", ""))
|
||||
if typ not in ["weapon", "armor", "shield"]:
|
||||
return false
|
||||
if not ausruesten_erlaubt(figur, id):
|
||||
return false
|
||||
if inventar_hat(figur, id) <= 0:
|
||||
return false
|
||||
var equipment: Dictionary = figur.get("equipment", {})
|
||||
|
|
@ -212,6 +231,29 @@ func ausruesten(figur: Dictionary, id: String) -> bool:
|
|||
return true
|
||||
|
||||
|
||||
## Verbrauchsgüter. Gibt eine Meldung für die UI zurück.
|
||||
func benutzen(figur: Dictionary, id: String) -> String:
|
||||
if inventar_hat(figur, id) <= 0:
|
||||
return "Nicht im Rucksack."
|
||||
match id:
|
||||
"vorrat":
|
||||
var tp: Dictionary = figur.get("hp", {})
|
||||
if int(tp.get("current", 0)) >= int(tp.get("max", 0)):
|
||||
return "TP sind voll."
|
||||
var heilung: int = Dice.roll("1d6")
|
||||
tp["current"] = mini(int(tp.get("max", 0)),
|
||||
int(tp.get("current", 0)) + heilung)
|
||||
figur["hp"] = tp
|
||||
inventar_entfernen(figur, id)
|
||||
return "Vorrat: +%d TP." % heilung
|
||||
"laterne":
|
||||
flags["licht"] = not bool(flags.get("licht", false))
|
||||
return "Laterne %s." % ("an" if flags["licht"] else "aus")
|
||||
"seil":
|
||||
return "Seil: noch keine Anwendung."
|
||||
return "Nicht benutzbar."
|
||||
|
||||
|
||||
func ablegen(figur: Dictionary, slot: String) -> bool:
|
||||
var equipment: Dictionary = figur.get("equipment", {})
|
||||
if slot == "shield":
|
||||
|
|
@ -240,6 +282,7 @@ func to_dict() -> Dictionary:
|
|||
"save_version": Saves.VERSION,
|
||||
"place": place,
|
||||
"time": time,
|
||||
"gold": gold,
|
||||
"party": party,
|
||||
"flags": flags,
|
||||
"log": log_lines,
|
||||
|
|
@ -248,6 +291,7 @@ func to_dict() -> Dictionary:
|
|||
func from_dict(d: Dictionary) -> void:
|
||||
place = d.get("place", place)
|
||||
time = d.get("time", time)
|
||||
gold = int(d.get("gold", gold))
|
||||
party = d.get("party", party)
|
||||
flags = d.get("flags", {})
|
||||
log_lines = []
|
||||
|
|
|
|||
|
|
@ -28,6 +28,14 @@ func _ready() -> void:
|
|||
ok("Kette liegt im Rucksack", Game.inventar_hat(figur, "kette") == 1)
|
||||
ok("Ablegen legt zurück", Game.ablegen(figur, "armor")
|
||||
and Game.inventar_hat(figur, "leder") == 1)
|
||||
ok("Magier: Leder gesperrt",
|
||||
not Game.ausruesten_erlaubt(Game.party[2], "leder")
|
||||
and Game.ausruesten_erlaubt(Game.party[2], "stab"))
|
||||
|
||||
# Zustand für den Screenshot wiederherstellen und Leder auswählen.
|
||||
Game.ausruesten(figur, "kette")
|
||||
Game.ausruesten(figur, "schwert")
|
||||
ui.call("_waehlen_item", "leder")
|
||||
|
||||
print("\nProbe: %s" % ("bestanden" if fehler == 0 else "FEHLGESCHLAGEN"))
|
||||
if OS.get_cmdline_user_args().has("--check"):
|
||||
|
|
|
|||