<?php
/*
  ◆村人置換村 (セレクタ)
*/
class Option_replace_human_selector extends SelectorRoomOptionItem {
  public $on_change = ' onChange="change_replace_human()"';

  public function  __construct() {
    parent::__construct();
    $this->form_list = GameOptionConfig::${$this->source};
    if (OptionManager::$change) {
      foreach ($this->form_list as $key => $value) {
	if (is_int($key) && DB::$ROOM->IsOption($value)) {
	  $this->value = $value;
	  break;
	}
      }
    }
  }

  public function GetCaption() {
    return '村人置換村';
  }

  public function GetExplain() {
    return '「村人」が全員特定の役職に入れ替わります';
  }
}
