本文整理汇总了C#中Mooege.UpdateExp方法的典型用法代码示例。如果您正苦于以下问题:C# Mooege.UpdateExp方法的具体用法?C# Mooege.UpdateExp怎么用?C# Mooege.UpdateExp使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Mooege
的用法示例。
在下文中一共展示了Mooege.UpdateExp方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Die
// FIXME: Hardcoded hell. /komiga
public void Die(Mooege.Core.GS.Player.Player player)
{
var killAni = new int[]{
0x2cd7,
0x2cd4,
0x01b378,
0x2cdc,
0x02f2,
0x2ccf,
0x2cd0,
0x2cd1,
0x2cd2,
0x2cd3,
0x2cd5,
0x01b144,
0x2cd6,
0x2cd8,
0x2cda,
0x2cd9
};
player.UpdateExp(this.Attributes[GameAttribute.Experience_Granted]);
player.UpdateExpBonusData(player.GBHandle.Type, this.GBHandle.Type);
this.World.BroadcastIfRevealed(new PlayEffectMessage()
{
ActorId = this.DynamicID,
Effect = Effect.Hit,
OptionalParameter = 0x2,
}, this);
this.World.BroadcastIfRevealed(new PlayEffectMessage()
{
ActorId = this.DynamicID,
Effect = Effect.Unknown12,
}, this);
this.World.BroadcastIfRevealed(new PlayHitEffectMessage()
{
ActorID = this.DynamicID,
HitDealer = player.DynamicID,
Field2 = 0x2,
Field3 = false,
}, this);
this.World.BroadcastIfRevealed(new FloatingNumberMessage()
{
ActorID = this.DynamicID,
Number = 9001.0f,
Type = FloatingNumberMessage.FloatType.White,
}, this);
this.World.BroadcastIfRevealed(new ANNDataMessage(Opcodes.ANNDataMessage13)
{
ActorID = this.DynamicID
}, this);
this.World.BroadcastIfRevealed(new PlayAnimationMessage()
{
ActorID = this.DynamicID,
Field1 = 0xb,
Field2 = 0,
tAnim = new PlayAnimationMessageSpec[1]
{
new PlayAnimationMessageSpec()
{
Field0 = 0x2,
Field1 = killAni[RandomHelper.Next(killAni.Length)],
Field2 = 0x0,
Field3 = 1f
}
}
}, this);
this.World.BroadcastIfRevealed(new ANNDataMessage(Opcodes.ANNDataMessage24)
{
ActorID = this.DynamicID,
}, this);
GameAttributeMap attribs = new GameAttributeMap();
attribs[GameAttribute.Hitpoints_Cur] = 0f;
attribs[GameAttribute.Could_Have_Ragdolled] = true;
attribs[GameAttribute.Deleted_On_Server] = true;
foreach (var msg in attribs.GetMessageList(this.DynamicID))
this.World.BroadcastIfRevealed(msg, this);
this.World.BroadcastIfRevealed(new PlayEffectMessage()
{
ActorId = this.DynamicID,
Effect = Effect.Unknown12
}, this);
this.World.BroadcastIfRevealed(new PlayEffectMessage()
{
ActorId = this.DynamicID,
Effect = Effect.Burned2
}, this);
//.........这里部分代码省略.........