// 诊所（室内 12×8）：芙医生、桌上表格（C8，D5 起）

import { MapScene } from './MapScene';
import { director } from '../core/CorruptionDirector';
import { CLUES } from '../data/clues';
import { DOCTOR_DESK_BEFORE } from '../data/dialogues';

export class ClinicScene extends MapScene {
  readonly mapKey = 'clinic';

  constructor() {
    super('ClinicScene');
  }

  protected async onInteract(id: string): Promise<boolean> {
    if (id === 'doctor_desk') {
      if (director.day < 5) {
        await this.say({ lines: DOCTOR_DESK_BEFORE });
      } else {
        director.addClue('C8');
        await this.say({ lines: CLUES.C8.lines });
      }
      return true;
    }
    return false;
  }
}
