You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

32 lines
1.0 KiB

1 month ago
using CoreGame;
using xFrame;
namespace CoreGame.Render
{
public class Handle_LevelUp : BaseHandle
{
public override void DoHandle(int eid, object msg)
{
var combatEntity = Contexts.Combat.GetEntity(eid);
var context = AbilitySrv.AttachActiveAbility(combatEntity, 12);
if (context != null)
{
context.dropAbilityWhenEnd = true;
var activateAbility = context.asc.TryActivateAbility_WithSeq(context.gaSeq);
if (activateAbility == false)
{
XLog.LogWarning("Handle_LevelUp DoHandle error");
}
}
var level = CoreUIBridge.BattleInfoParams.heroCommunityInfo.lvl;
combatEntity.property.SetProperty(PropertyDef.Level, level, true);
// if (combatEntity.hasCommunNameProxy)
// {
// combatEntity.communityShowInfo.lvl = level;
// combatEntity.communNameProxy.RefreshInfo();
// }
}
}
}