mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-06 09:09:40 +02:00
Implement STACK_EXPERIENCE_GAIN_PERCENT bonus
Suggested on Discord - implements STACK_EXPERIENCE_GAIN_PERCENT that modifies stack experience received by units after combat - removed "EXPERIENCE" primary skill. Changes to experience are now applied through separate netpack
This commit is contained in:
@@ -326,6 +326,12 @@ void AIGateway::heroExchangeStarted(ObjectInstanceID hero1, ObjectInstanceID her
|
||||
});
|
||||
}
|
||||
|
||||
void AIGateway::heroExperienceChanged(const CGHeroInstance * hero, si64 val)
|
||||
{
|
||||
LOG_TRACE_PARAMS(logAi, "val '%i'", val);
|
||||
NET_EVENT_HANDLER;
|
||||
}
|
||||
|
||||
void AIGateway::heroPrimarySkillChanged(const CGHeroInstance * hero, PrimarySkill which, si64 val)
|
||||
{
|
||||
LOG_TRACE_PARAMS(logAi, "which '%i', val '%i'", which.getNum() % val);
|
||||
|
||||
Reference in New Issue
Block a user