mirror of
https://github.com/vcmi/vcmi.git
synced 2024-12-24 22:14:36 +02:00
more code format issues
This commit is contained in:
parent
654ca96e9d
commit
3764ec8be1
@ -241,7 +241,7 @@ std::vector<std::shared_ptr<Bonus>> CSkillHandler::defaultBonus(SecondarySkill s
|
||||
std::vector<std::shared_ptr<Bonus>> result;
|
||||
|
||||
// add bonus based on current values - useful for adding multiple bonuses easily
|
||||
auto addBonus = [=,&result](int bonusVal, Bonus::BonusType bonusType = Bonus::SECONDARY_SKILL_PREMY, int subtype = 0)
|
||||
auto addBonus = [=, &result](int bonusVal, Bonus::BonusType bonusType = Bonus::SECONDARY_SKILL_PREMY, int subtype = 0)
|
||||
{
|
||||
if(bonusType == Bonus::SECONDARY_SKILL_PREMY || bonusType == Bonus::SECONDARY_SKILL_VAL2)
|
||||
subtype = skill;
|
||||
|
@ -68,7 +68,7 @@ const CSpell * SpellID::toSpell() const
|
||||
|
||||
const CSkill * SecondarySkill::toSkill() const
|
||||
{
|
||||
return VLC->skillh->objects.at(*this);
|
||||
return VLC->skillh->objects.at(*this);
|
||||
}
|
||||
|
||||
//template std::ostream & operator << <ArtifactInstanceID>(std::ostream & os, BaseForID<ArtifactInstanceID> id);
|
||||
|
@ -321,7 +321,7 @@ public:
|
||||
SecondarySkill(ESecondarySkill _num = WRONG) : num(_num)
|
||||
{}
|
||||
|
||||
DLL_LINKAGE const CSkill * toSkill() const;
|
||||
DLL_LINKAGE const CSkill * toSkill() const;
|
||||
|
||||
ID_LIKE_CLASS_COMMON(SecondarySkill, ESecondarySkill)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user