fix: 修复肉鸽骰子乱放的问题

This commit is contained in:
MistEO
2022-10-11 20:40:35 +08:00
parent d89db93145
commit de0ceebba6
2 changed files with 2 additions and 2 deletions

View File

@@ -30,7 +30,7 @@ bool asst::BattleDataConfiger::parse(const json::value& json)
}
static const std::unordered_map<std::string, BattleLocationType> PositionMap = {
{ "NONE", BattleLocationType::None },
{ "NONE", BattleLocationType::All }, // 这种很多都是道具之类的,一般哪都能放
{ "MELEE", BattleLocationType::Melee },
{ "RANGED", BattleLocationType::Ranged },
{ "ALL", BattleLocationType::All },

View File

@@ -230,9 +230,9 @@ asst::BattleLocationType asst::RoguelikeBattleTaskPlugin::get_role_location_type
case BattleRole::Warrior:
case BattleRole::Tank:
case BattleRole::Special:
case BattleRole::Drone:
return BattleLocationType::Melee;
break;
case BattleRole::Drone:
default:
return BattleLocationType::None;
break;