case SV_POTION_SALT_WATER:
return this->salt_water();
case SV_POTION_POISON:
- if (!(has_resist_pois(this->player_ptr) || is_oppose_pois(this->player_ptr))) {
- if (BadStatusSetter(this->player_ptr).mod_poison(randint0(15) + 10)) {
- return true;
- }
- }
-
- return false;
+ return this->poison();
case SV_POTION_BLINDNESS:
if (!has_resist_blind(this->player_ptr)) {
if (BadStatusSetter(this->player_ptr).mod_blindness(randint0(100) + 100)) {
}
/*!
+ * @brief 毒の薬
+ * @return 毒の効果を受けたらtrue
+ */
+bool QuaffEffects::poison()
+{
+ if (has_resist_pois(this->player_ptr) || is_oppose_pois(this->player_ptr)) {
+ return false;
+ }
+
+ return BadStatusSetter(this->player_ptr).mod_poison(randint0(15) + 10);
+}
+
+/*!
* @brief 酔っ払いの薬
* @return カオス耐性があるかその他の一部確率でFALSE、それ以外はTRUE
*/