package com.tiedup.remake.personality;

/**
 * Types of homes that can be assigned to NPCs.
 *
 * <p>Home types determine comfort level, which affects:
 * <ul>
 *   <li>Hope regeneration (higher comfort = more hope)</li>
 *   <li>Cell quality evaluation</li>
 *   <li>Mental state decay rates</li>
 * </ul>
 */
public enum HomeType {
    /** No home assigned - NPC sleeps anywhere */
    NONE(0),

    /** Cell with spawn point only - No comfort, but valid home */
    CELL(0),

    /** Pet bed block - Low comfort, for SUBJUGATED slaves */
    PET_BED(1),

    /** Standard Minecraft bed - High comfort, for trusted/DEVOTED */
    BED(2);

    /** Comfort level (0 = none, 1 = low, 2 = high) */
    public final int comfortLevel;

    HomeType(int comfortLevel) {
        this.comfortLevel = comfortLevel;
    }

    /**
     * Check if this home type provides any comfort.
     * @return true if comfort level > 0
     */
    public boolean hasComfort() {
        return comfortLevel > 0;
    }
}
