Conditions: match character card exactly (Fatigued, Radiation only)

Remove Starving/Dehydrated/Exhausted/Freezing — not on this card.
Simplify panic effect labels (just names, no stress level prefix).

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-03-25 09:13:50 +01:00
parent ea8c770071
commit 1c2622b1a4

View File

@@ -1539,25 +1539,15 @@ FORMAT-FN dostane item, vrátí string. Bez FORMAT-FN se item použije přímo."
(message "Vyléčeno: %s" (nth idx injuries))))))) (message "Vyléčeno: %s" (nth idx injuries)))))))
(defvar alien-rpg-known-conditions (defvar alien-rpg-known-conditions
'("Starving" "Dehydrated" "Exhausted" "Freezing" "Fatigued" "Radiation") '("Fatigued" "Radiation")
"Standardní stavy z herní karty.") "Stavy z herní karty.")
(defvar alien-rpg-panic-effects (defvar alien-rpg-panic-effects
'(("7 lichá: Jumpy" . "Jumpy") '("Jumpy" "Freeze" "Tunnel Vision" "Seek Cover"
("7 sudá: Freeze" . "Freeze") "Aggravated" "Scream" "Shakes" "Flee"
("8 lichá: Tunnel Vision" . "Tunnel Vision") "Frantic" "Frenzy" "Deflated" "Catatonic"
("8 sudá: Seek Cover" . "Seek Cover") "Paranoid" "Hesitant")
("9 lichá: Aggravated" . "Aggravated") "Panické reakce (panic tabulka).")
("9 sudá: Scream" . "Scream")
("10 lichá: Shakes" . "Shakes")
("10 sudá: Flee" . "Flee")
("11 lichá: Frantic" . "Frantic")
("11 sudá: Frenzy" . "Frenzy")
("12 lichá: Deflated" . "Deflated")
("12 sudá: Catatonic" . "Catatonic")
("13-14 lichá: Paranoid" . "Paranoid")
("13-14 sudá: Hesitant" . "Hesitant"))
"Panické reakce podle stress levelu.")
(defun alien-rpg-condition () (defun alien-rpg-condition ()
"Přepni stav/podmínku — zaškrtni nebo odškrtni." "Přepni stav/podmínku — zaškrtni nebo odškrtni."
@@ -1588,16 +1578,13 @@ FORMAT-FN dostane item, vrátí string. Bez FORMAT-FN se item použije přímo."
(message "[X] %s" cond-name)))) (message "[X] %s" cond-name))))
((string= action "Panická reakce") ((string= action "Panická reakce")
(let* ((candidates (let* ((candidates
(mapcar (lambda (p) (mapcar (lambda (name)
(let ((label (car p))
(name (cdr p)))
(format "[%s] %s" (format "[%s] %s"
(if (member name conditions) "X" " ") (if (member name conditions) "X" " ")
label))) name))
alien-rpg-panic-effects)) alien-rpg-panic-effects))
(choice (completing-read "Panika: " candidates nil t)) (choice (completing-read "Panika: " candidates nil t))
(idx (cl-position choice candidates :test #'string=)) (cond-name (substring choice 4)))
(cond-name (cdr (nth idx alien-rpg-panic-effects))))
(if (member cond-name conditions) (if (member cond-name conditions)
(progn (progn
(setq alien-rpg-state (setq alien-rpg-state