allowed items to set status flags on units

This commit is contained in:
uid68803 2004-01-03 01:49:37 +00:00
parent b64ce25d05
commit e944987ff8

View file

@ -782,6 +782,17 @@ void unit::add_modification(const std::string& type,
description << string_table["loyal_description"];
if(upkeep_ > UPKEEP_LOYAL)
upkeep_ = UPKEEP_LOYAL;
} else if(apply_to == "status") {
const std::string& add = (**i.first)["add"];
const std::string& remove = (**i.first)["remove"];
if(add.empty() == false) {
set_flag(add);
}
if(remove.empty() == false) {
remove_flag(remove);
}
}
const std::string desc = description.str();