mirror of
https://github.com/vcmi/vcmi.git
synced 2025-01-26 03:52:01 +02:00
Removed unnecessary code, fix #2737
bonus value is added to desciption inside Bonus
This commit is contained in:
parent
2a22d9ec12
commit
e3f0126e41
@ -1133,12 +1133,7 @@ bool CGTownInstance::addBonusIfBuilt(BuildingID building, Bonus::BonusType type,
|
|||||||
if(hasBuilt(building))
|
if(hasBuilt(building))
|
||||||
{
|
{
|
||||||
std::ostringstream descr;
|
std::ostringstream descr;
|
||||||
descr << town->buildings.at(building)->Name() << " ";
|
descr << town->buildings.at(building)->Name();
|
||||||
if(val > 0)
|
|
||||||
descr << "+";
|
|
||||||
else if(val < 0)
|
|
||||||
descr << "-";
|
|
||||||
descr << val;
|
|
||||||
|
|
||||||
auto b = std::make_shared<Bonus>(Bonus::PERMANENT, type, Bonus::TOWN_STRUCTURE, val, building, descr.str(), subtype);
|
auto b = std::make_shared<Bonus>(Bonus::PERMANENT, type, Bonus::TOWN_STRUCTURE, val, building, descr.str(), subtype);
|
||||||
if(prop)
|
if(prop)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user