Persistent damage displayed as compact tags with damage type icon and formula (e.g., Flame + "2d6"). Supports fire, bleed, acid, cold, electricity, poison, and mental types. One instance per type, added via sub-picker in the condition picker. PF2e only, persists across reload. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
95 lines
1.2 KiB
TypeScript
95 lines
1.2 KiB
TypeScript
import type { LucideIcon } from "lucide-react";
|
|
import {
|
|
Anchor,
|
|
ArrowDown,
|
|
Ban,
|
|
BatteryLow,
|
|
BrainCog,
|
|
CircleHelp,
|
|
CloudFog,
|
|
Drama,
|
|
Droplet,
|
|
Droplets,
|
|
EarOff,
|
|
Eye,
|
|
EyeOff,
|
|
Flame,
|
|
FlaskConical,
|
|
Footprints,
|
|
Gem,
|
|
Ghost,
|
|
Hand,
|
|
Heart,
|
|
HeartCrack,
|
|
HeartPulse,
|
|
Link,
|
|
Moon,
|
|
PersonStanding,
|
|
ShieldMinus,
|
|
ShieldOff,
|
|
Siren,
|
|
Skull,
|
|
Snail,
|
|
Snowflake,
|
|
Sparkles,
|
|
Sun,
|
|
TrendingDown,
|
|
Zap,
|
|
ZapOff,
|
|
} from "lucide-react";
|
|
|
|
export const CONDITION_ICON_MAP: Record<string, LucideIcon> = {
|
|
Anchor,
|
|
ArrowDown,
|
|
Ban,
|
|
BatteryLow,
|
|
BrainCog,
|
|
CircleHelp,
|
|
CloudFog,
|
|
Drama,
|
|
Droplet,
|
|
Droplets,
|
|
EarOff,
|
|
Eye,
|
|
EyeOff,
|
|
Flame,
|
|
FlaskConical,
|
|
Footprints,
|
|
Gem,
|
|
Ghost,
|
|
Hand,
|
|
Heart,
|
|
HeartCrack,
|
|
HeartPulse,
|
|
Link,
|
|
Moon,
|
|
PersonStanding,
|
|
ShieldMinus,
|
|
ShieldOff,
|
|
Siren,
|
|
Skull,
|
|
Snail,
|
|
Snowflake,
|
|
Sparkles,
|
|
Sun,
|
|
TrendingDown,
|
|
Zap,
|
|
ZapOff,
|
|
};
|
|
|
|
export const CONDITION_COLOR_CLASSES: Record<string, string> = {
|
|
neutral: "text-muted-foreground",
|
|
pink: "text-pink-400",
|
|
amber: "text-amber-400",
|
|
orange: "text-orange-400",
|
|
gray: "text-gray-400",
|
|
violet: "text-violet-400",
|
|
yellow: "text-yellow-400",
|
|
slate: "text-slate-400",
|
|
green: "text-green-400",
|
|
lime: "text-lime-400",
|
|
indigo: "text-indigo-400",
|
|
sky: "text-sky-400",
|
|
red: "text-red-400",
|
|
};
|