public override ISpellActivation.PrereqConditionsMet ComparePrerequisites(PlayerView xView)
 {
     SpellCharge x = new ShadowCloneSpellCharge(0, 0, 0f, this.enSwitchToWeapon, this.enTrueWeapon);
     this.iSPCost = (int)((float)x.liSPCosts[0] * x.GetCostMod(xView));
     if (xView.xEntity.xBaseStats.iEP < this.iSPCost)
     {
         bool bFound = false;
         foreach (ISpellInstance xInst in Program.GetTheGame().xEntityMaster.dixActiveSpellInstances.Values)
         {
             if (xInst.enType == SpellCodex.SpellTypes._Skill_OneHanded_ShadowClone && (xInst as _Skills_ShadowCloneInstance).xPlayer == xView)
             {
                 bFound = true;
             }
         }
         if (!bFound)
         {
             return ISpellActivation.PrereqConditionsMet.NotEnoughMana;
         }
         return ISpellActivation.PrereqConditionsMet.Eligible;
     }
     else
     {
         if (xView.xEquipment.xBufferWeapon == null || xView.xEquipment.xBufferWeapon.enWeaponCategory != WeaponInfo.WeaponCategory.OneHanded)
         {
             return ISpellActivation.PrereqConditionsMet.NotEligible_NeedOneHand;
         }
         return ISpellActivation.PrereqConditionsMet.Eligible;
     }
 }
예제 #2
0
 public override string GetSkillupPreview(PlayerView xPlayer, int iLevel)
 {
     SpellVariable.Handle enMainHandle = SpellVariable.Handle.Talent_ArcaneCollar_EPCostReduction;
     string CostReduction = CAS.GetLibraryText("Menus", "InGameMenu_Stats_CostReduction");
     if (iLevel == 0)
     {
         return string.Concat(new object[]
         {
             CostReduction,
             "\n  0 % > ",
             SpellVariable.Get(enMainHandle),
             " %"
         });
     }
     if (iLevel < (int)this.abyTierSpans[0])
     {
         return string.Concat(new object[]
         {
             CostReduction,
             "\n  ",
             SpellVariable.Get(enMainHandle) * (float)iLevel,
             " % > ",
             SpellVariable.Get(enMainHandle) * (float)(iLevel + 1),
             " %"
         });
     }
     return string.Concat(new object[]
     {
         CostReduction,
         "\n  ",
         SpellVariable.Get(enMainHandle) * (float)iLevel,
         " %"
     });
 }
예제 #3
0
 public override string GetSkillupPreview(PlayerView xPlayer, int iLevel)
 {
     string Bonus = CAS.GetLibraryText("Menus", "InGameMenu_Stats_BONUS");
     if (iLevel == 0)
     {
         return string.Concat(new object[]
         {
             Bonus,
             "\n  0 % > ",
             SpellVariable.Get(SpellVariable.Handle.Talent_QuickReflexes_ProlongPercentPL),
             " %"
         });
     }
     if (iLevel < (int)this.abyTierSpans[0])
     {
         return string.Concat(new object[]
         {
             Bonus,
             "\n  ",
             SpellVariable.Get(SpellVariable.Handle.Talent_QuickReflexes_ProlongPercentPL) * (float)iLevel,
             " % > ",
             SpellVariable.Get(SpellVariable.Handle.Talent_QuickReflexes_ProlongPercentPL) * (float)(iLevel + 1),
             " %"
         });
     }
     return string.Concat(new object[]
     {
         Bonus,
         "\n  ",
         SpellVariable.Get(SpellVariable.Handle.Talent_QuickReflexes_ProlongPercentPL) * (float)iLevel,
         " %"
     });
 }
 public void PlayerDamageRecall(PlayerView xView, int iInDamage, byte byType)
 {
     if (byType == 0 && !this.bOpened)
     {
         this.Defeat();
     }
 }
예제 #5
0
 public override string GetSkillupPreview(PlayerView xPlayer, int iLevel)
 {
     string Bonus = CAS.GetLibraryText("Menus", "InGameMenu_Stats_BONUS");
     xPlayer.xEntity.xBaseStats.GetStatByEnum(EquipmentInfo.StatEnum.MaxEP);
     if (iLevel == 0)
     {
         return string.Concat(new object[]
         {
             Bonus,
             "\n  0 % > ",
             SpellVariable.Get(SpellVariable.Handle.Talent_FineTaste_BonusDuration),
             " %"
         });
     }
     if (iLevel < (int)this.abyTierSpans[0])
     {
         return string.Concat(new object[]
         {
             Bonus,
             "\n  ",
             SpellVariable.Get(SpellVariable.Handle.Talent_FineTaste_BonusDuration) * (float)(iLevel - 1),
             " % > ",
             SpellVariable.Get(SpellVariable.Handle.Talent_FineTaste_BonusDuration) * (float)iLevel,
             " %"
         });
     }
     return string.Concat(new object[]
     {
         Bonus,
         "\n  ",
         SpellVariable.Get(SpellVariable.Handle.Talent_FineTaste_BonusDuration) * (float)(iLevel - 1),
         " %"
     });
 }
예제 #6
0
 public override string GetSkillupPreview(PlayerView xPlayer, int iLevel)
 {
     SpellVariable.Handle enMainHandle = SpellVariable.Handle.Talent_SnapCast_MATKIncrease;
     string Bonus = CAS.GetLibraryText("Menus", "InGameMenu_Stats_BONUS");
     if (iLevel == 0)
     {
         return string.Concat(new object[]
         {
             Bonus,
             "\n  0 % > ",
             SpellVariable.Get(enMainHandle),
             " %"
         });
     }
     if (iLevel < (int)this.abyTierSpans[0])
     {
         return string.Concat(new object[]
         {
             Bonus,
             "\n  ",
             SpellVariable.Get(enMainHandle) * (float)iLevel,
             " % > ",
             SpellVariable.Get(enMainHandle) * (float)(iLevel + 1),
             " %"
         });
     }
     return string.Concat(new object[]
     {
         Bonus,
         "\n  ",
         SpellVariable.Get(enMainHandle) * (float)iLevel,
         " %"
     });
 }
예제 #7
0
 public override void Update()
 {
     if (this.bHasTriggered)
     {
         return;
     }
     if (!this.bLocalOnly)
     {
         using (Dictionary<long, PlayerView>.ValueCollection.Enumerator enumerator = Program.GetTheGame().dixPlayers.Values.GetEnumerator())
         {
             while (enumerator.MoveNext())
             {
                 PlayerView xView = enumerator.Current;
                 if (Program.GetTheGame().xCollisionMaster.TryCollision(this.colHitbox, xView.xEntity.xCollisionComponent.xMovementCollider))
                 {
                     this.xTriggerView = xView;
                     this.OnTrigger();
                 }
             }
             return;
         }
     }
     if (Program.GetTheGame().xCollisionMaster.TryCollision(this.colHitbox, Program.game.xLocalPlayer.xEntity.xCollisionComponent.xMovementCollider))
     {
         this.xTriggerView = Program.game.xLocalPlayer;
         this.OnTrigger();
     }
 }
예제 #8
0
 public override string GetSkillupPreview(PlayerView xPlayer, int iLevel)
 {
     SpellVariable.Handle enMainHandle = SpellVariable.Handle.Talent_StaticField_ChanceToStun;
     string Chance = CAS.GetLibraryText("Menus", "InGameMenu_Stats_EffectChance");
     if (iLevel == 0)
     {
         return string.Concat(new object[]
         {
             Chance,
             "\n  0 % > ",
             SpellVariable.Get(enMainHandle),
             " %"
         });
     }
     if (iLevel < (int)this.abyTierSpans[0])
     {
         return string.Concat(new object[]
         {
             Chance,
             "\n  ",
             SpellVariable.Get(enMainHandle) * (float)iLevel,
             " % > ",
             SpellVariable.Get(enMainHandle) * (float)(iLevel + 1),
             " %"
         });
     }
     return string.Concat(new object[]
     {
         Chance,
         "\n  ",
         SpellVariable.Get(enMainHandle) * (float)iLevel,
         " %"
     });
 }
예제 #9
0
 public override string GetSkillupPreview(PlayerView xPlayer, int iLevel)
 {
     SpellVariable.Handle enMainHandle = SpellVariable.Handle.Talent_Fencer_ASPDIncrease;
     string ASPD = CAS.GetLibraryText("Menus", "InGameMenu_Stats_ASPD");
     CAS.GetLibraryText("Menus", "InGameMenu_Stats_BONUS");
     int iCur = xPlayer.xEntity.xBaseStats.iAttackSPD;
     if (iLevel == 0)
     {
         return string.Concat(new object[]
         {
             ASPD,
             "\n  ",
             iCur,
             " > ",
             (float)iCur + SpellVariable.Get(enMainHandle)
         });
     }
     if (iLevel < (int)this.abyTierSpans[0])
     {
         return string.Concat(new object[]
         {
             ASPD,
             "\n  ",
             iCur,
             " > ",
             (float)iCur + SpellVariable.Get(enMainHandle)
         });
     }
     return ASPD + "\n  " + iCur;
 }
예제 #10
0
 public override string GetSkillupPreview(PlayerView xPlayer, int iLevel)
 {
     SpellVariable.Handle enMainHandle = SpellVariable.Handle.Talent_SoulEater_EPPerProc;
     string EP = CAS.GetLibraryText("Menus", "InGameMenu_Stats_EP");
     if (iLevel == 0)
     {
         return string.Concat(new object[]
         {
             EP,
             "\n  0 > ",
             SpellVariable.Get(enMainHandle),
             " "
         });
     }
     if (iLevel < (int)this.abyTierSpans[0])
     {
         return string.Concat(new object[]
         {
             EP,
             "\n  ",
             SpellVariable.Get(enMainHandle) * (float)iLevel,
             "  > ",
             SpellVariable.Get(enMainHandle) * (float)(iLevel + 1),
             " "
         });
     }
     return string.Concat(new object[]
     {
         EP,
         "\n  ",
         SpellVariable.Get(enMainHandle) * (float)iLevel,
         " "
     });
 }
예제 #11
0
파일: JumpDown.cs 프로젝트: ancientgods/SoG
 private void AddCounter(PlayerView xView)
 {
     if (this.dxiPlayerTimers.ContainsKey(xView))
     {
         Dictionary<PlayerView, int> dictionary;
         (dictionary = this.dxiPlayerTimers)[xView] = dictionary[xView] + 1;
         if (this.dxiPlayerTimers[xView] >= 20)
         {
             this.dxiPlayerTimers.Remove(xView);
             if (!xView.xViewStats.bIsDead)
             {
                 xView.xEntity.xRenderComponent.SwitchAnimation(85, Animation.CancelOptions.IgnoreIfPlaying);
             }
             xView.xEntity.xJumpDown = this;
             xView.xEntity.EnterLockedState();
             xView.xEntity.xInput.Reset();
             if (Program.GetTheGame().xNetworkInfo.enCurrentRole == NetworkHelperInterface.NetworkRole.Server)
             {
                 NetOutgoingMessage om = base.CreateMessage();
                 om.Write(0);
                 om.Write(xView.iConnectionIdentifier);
                 om.Write(this.ibitTargetLayer);
                 om.Write(this.fVirtualHeightDifference);
                 om.Write(this.fTargetY);
                 base.SendMessage(om);
                 return;
             }
         }
     }
     else
     {
         this.dxiPlayerTimers[xView] = 1;
     }
 }
예제 #12
0
 public override string GetSkillupPreview(PlayerView xPlayer, int iLevel)
 {
     SpellVariable.Handle enMainHandle = SpellVariable.Handle.Talent_Endurance_MaxEPIncreasePL;
     string MaxEP = CAS.GetLibraryText("Menus", "InGameMenu_Stats_MaxEP");
     CAS.GetLibraryText("Menus", "InGameMenu_Stats_BONUS");
     int iCur = xPlayer.xEntity.xBaseStats.GetStatByEnum(EquipmentInfo.StatEnum.MaxEP);
     if (iLevel == 0)
     {
         return string.Concat(new object[]
         {
             MaxEP,
             "\n  ",
             iCur,
             " > ",
             (float)iCur + SpellVariable.Get(enMainHandle)
         });
     }
     if (iLevel < (int)this.abyTierSpans[0])
     {
         return string.Concat(new object[]
         {
             MaxEP,
             "\n  ",
             iCur,
             " > ",
             (float)iCur + SpellVariable.Get(enMainHandle)
         });
     }
     return MaxEP + "\n  " + iCur;
 }
예제 #13
0
 public override void Enter(PlayerView xOwnerView)
 {
     if (xOwnerView.xEquipment.xBufferWeapon == null || xOwnerView.xEquipment.xBufferWeapon.enWeaponCategory != WeaponInfo.WeaponCategory.OneHanded)
     {
         ItemCodex.ItemTypes arg_2C_0 = xOwnerView.xEquipment.enLastOneHand;
     }
     if (xOwnerView.xEquipment.xBufferWeapon == null || xOwnerView.xEquipment.xBufferWeapon.enWeaponCategory != WeaponInfo.WeaponCategory.OneHanded)
     {
         this.Abort();
         return;
     }
     Program.GetTheGame().xWeaponAssetLibrary.SetPRCWeapon(xOwnerView.xEntity.xRenderComponent, xOwnerView.xEquipment.xBufferWeapon.enItemType);
     ItemCodex.ItemTypes arg_85_0 = this.enSwitchToWeapon;
     xOwnerView.xEquipment.xWeapon = xOwnerView.xEquipment.xBufferWeapon;
     base.Enter(xOwnerView);
     if (xOwnerView == Program.game.xLocalPlayer)
     {
         this.xRangeIndicator = (Program.GetTheGame()._EffectMaster_AddEffect(new SortedAnimated(Vector2.Zero, SortedAnimated.SortedAnimatedEffects._SkillEffects_OneHand_SpiritSlash_AOE_Lv1)) as SortedAnimated);
         this.xRangeIndicator.xRenderComponent.xTransform = xOwnerView.xEntity.xTransform;
     }
     xOwnerView.xEntity.xRenderComponent.SwitchAnimation((ushort)(550 + (int)xOwnerView.xEntity.byAnimationDirection), Animation.CancelOptions.IgnoreIfPlaying, 1f + (1f - this.fChargeSpeedModifier));
     this.xefPowerBalls = (Program.GetTheGame()._EffectMaster_AddEffect(new SortedAnimated(Vector2.Zero, SortedAnimated.SortedAnimatedEffects.ChargeEffect_Balls_Weapon)) as SortedAnimated);
     this.xefPowerBalls.xRenderComponent.xTransform = xOwnerView.xEntity.xTransform;
     this.xefPowerBalls.xRenderComponent.fVirtualHeight = xOwnerView.xEntity.xRenderComponent.fVirtualHeight + 1f;
     this.lxAttachedEffects.Add(this.xefPowerBalls);
 }
예제 #14
0
 public override ISpellActivation.PrereqConditionsMet ComparePrerequisites(PlayerView xView)
 {
     if (xView.xEntity.xBaseStats.iEP < this.iSPCost)
     {
         return ISpellActivation.PrereqConditionsMet.NotEnoughMana;
     }
     return ISpellActivation.PrereqConditionsMet.Eligible;
 }
예제 #15
0
 public SpecialItemGetWatcher(PlayerView xView, int iDuration, ItemCodex.ItemTypes enType, byte byType)
 {
     this.xView = xView;
     this.iDuration = iDuration;
     this.enType = enType;
     this.byVariant = byType;
     this.enWatcherType = Watcher.WatcherType.ItemGet;
 }
예제 #16
0
 public override void Enter(PlayerView xOwnerView)
 {
     base.Enter(xOwnerView);
     xOwnerView.xEntity.xRenderComponent.SwitchAnimation((ushort)(520 + (int)xOwnerView.xEntity.byAnimationDirection), Animation.CancelOptions.IgnoreIfPlaying, 1f + (1f - this.fChargeSpeedModifier));
     this.xefPowerBalls = (Program.GetTheGame()._EffectMaster_AddEffect(new SortedAnimated(Vector2.Zero, SortedAnimated.SortedAnimatedEffects.ChargeEffect_Balls_Earth)) as SortedAnimated);
     this.xefPowerBalls.xRenderComponent.xTransform = xOwnerView.xEntity.xTransform;
     this.xefPowerBalls.xRenderComponent.fVirtualHeight = xOwnerView.xEntity.xRenderComponent.fVirtualHeight + 1f;
     this.lxAttachedEffects.Add(this.xefPowerBalls);
 }
예제 #17
0
 public ArenaScoreRenderComponent(PlayerView xView, ContentManager Content)
 {
     this.fAlpha = 0f;
     this.xView = xView;
     this.txBackGround = Content.Load<Texture2D>("GUI/InGameMenu/Arena/rewards");
     this.font = FontManager.Reg7;
     this.fontName = InGameMenu.fontItemSorting;
     this.lxRewards = ChallengeMenu.GetNextRewards(3, xView.xJournalInfo.iArenaScore);
 }
예제 #18
0
 public VFX_PlayerGhostTrailControl(PlayerView xPlayer, int iMaxFrames)
 {
     this.xPlayer = xPlayer;
     this.iMaxFrames = iMaxFrames;
     for (int i = 0; i < iMaxFrames; i++)
     {
         this.lxGhostImageSnatchers.Add(null);
     }
     Program.game.xEntityMaster.AddFinalUpdateDelegate(new Utility.BaseFunction(this.FinalUpdate));
 }
예제 #19
0
 public static List<CraftSystem.DisplayRecipe> CraftRecipesToDisplayRecipes(List<CraftSystem.CraftingRecipe> lxCraftRecipes, PlayerView xView)
 {
     List<CraftSystem.DisplayRecipe> lxDisplay = new List<CraftSystem.DisplayRecipe>();
     for (int i = 0; i < lxCraftRecipes.Count; i++)
     {
         CraftSystem.CraftingRecipe xThisRecipe = lxCraftRecipes[i];
         lxDisplay.Add(new CraftSystem.DisplayRecipe(xThisRecipe, 0f));
     }
     return lxDisplay;
 }
예제 #20
0
 public override ISpellActivation.PrereqConditionsMet ComparePrerequisites(PlayerView xView)
 {
     SpellCharge x = new HasteSpellCharge(0, 0, 0f);
     this.iSPCost = (int)((float)x.liSPCosts[0] * x.GetCostMod(xView));
     if (xView.xEntity.xBaseStats.iEP < this.iSPCost)
     {
         return ISpellActivation.PrereqConditionsMet.NotEnoughMana;
     }
     return ISpellActivation.PrereqConditionsMet.Eligible;
 }
예제 #21
0
 public void Claim(PlayerView xView)
 {
     this.bClaimed = true;
     if (Program.GetTheGame().xNetworkInfo.enCurrentRole == NetworkHelperInterface.NetworkRole.Server)
     {
         NetOutgoingMessage om = base.CreateMessage();
         om.Write(0);
         om.Write(xView.iConnectionIdentifier);
         base.SendMessage(om);
     }
 }
예제 #22
0
 public override void Init(NetIncomingMessage msg, params float[] p_afInitFloats)
 {
     long key = msg.ReadInt64();
     if (Program.game.dixPlayers.ContainsKey(key))
     {
         this.xPlayer = Program.game.dixPlayers[key];
         this.xOwner = this.xPlayer.xEntity;
         return;
     }
     this.bToBeDestroyed = true;
 }
 public override ISpellActivation.PrereqConditionsMet ComparePrerequisites(PlayerView xView)
 {
     if (xView.xEquipment.xBufferWeapon == null || xView.xEquipment.xBufferWeapon.enWeaponCategory != WeaponInfo.WeaponCategory.Bow)
     {
         return ISpellActivation.PrereqConditionsMet.NotEligible_NeedBow;
     }
     if (xView.xEntity.xBaseStats.iEP < this.iSPCost)
     {
         return ISpellActivation.PrereqConditionsMet.NotEnoughMana;
     }
     return ISpellActivation.PrereqConditionsMet.Eligible;
 }
예제 #24
0
 public static List<CraftSystem.DisplayRecipe> FindRecipesByIngredient(ItemCodex.ItemTypes enType, PlayerView xLocalPlayer)
 {
     List<CraftSystem.DisplayRecipe> lxRet = new List<CraftSystem.DisplayRecipe>();
     foreach (KeyValuePair<ItemCodex.ItemTypes, CraftSystem.CraftingRecipe> kvp in CraftSystem.RecipeCollection)
     {
         if (kvp.Value.henIngredientIndex.Contains(enType))
         {
             lxRet.Add(CraftSystem.CraftToDisplayRecipe(kvp.Value, xLocalPlayer));
         }
     }
     return lxRet;
 }
예제 #25
0
 public override string GetSkillupPreview(PlayerView xPlayer, int iLevel)
 {
     if (iLevel == 0)
     {
         return SpellDescription.sStandardFirst;
     }
     if (iLevel < 10)
     {
         return "{c=location}Costs one{/} {i=bronze}a{/} \n\n{c=green}Damage: +5%{/}";
     }
     return "{c=location}Costs one{/} {i=silver}a{/} \n\n";
 }
예제 #26
0
		public override void InteractedWith(PlayerView xView)
		{
			if (!this.bClientForwardOnly || CAS.NetworkRole != NetworkHelperInterface.NetworkRole.Client)
			{
				Program.GetTheGame()._Trigger_HandleTriggerEvent(this.enFlagID);
				return;
			}
			NetOutgoingMessage om = Program.game._Network_CreateMessage();
			om.Write(255);
			om.Write(6);
			om.Write((ushort)this.enFlagID);
			Program.game._Network_SendMessage(om, true);
		}
예제 #27
0
 public override void GrantReward(PlayerView xView)
 {
     if (base.AwardGot())
     {
         return;
     }
     Game1 Master = Program.GetTheGame();
     foreach (KeyValuePair<ItemDescription, ushort> kvp in this.deniRewardItems)
     {
         Master._Item_PickUp(kvp.Key.enType, xView, kvp.Value);
     }
     Master._Player_GrantEXPToPlayer(Master.xLocalPlayer, this.iExpGranted, EnemyDescription.Category.Boss);
 }
예제 #28
0
 public override ISpellActivation.PrereqConditionsMet ComparePrerequisites(PlayerView xView)
 {
     SpellCharge x = new SpinSpellCharge(0, 0, 0f, this.enSwitchToWeapon, this.enTrueWeapon);
     this.iSPCost = (int)((float)x.liSPCosts[0] * x.GetCostMod(xView));
     if (xView.xEquipment.xBufferWeapon == null || xView.xEquipment.xBufferWeapon.enWeaponCategory != WeaponInfo.WeaponCategory.TwoHanded)
     {
         return ISpellActivation.PrereqConditionsMet.NotEligible_NeedTwoHand;
     }
     if (xView.xEntity.xBaseStats.iEP < this.iSPCost)
     {
         return ISpellActivation.PrereqConditionsMet.NotEnoughMana;
     }
     return ISpellActivation.PrereqConditionsMet.Eligible;
 }
예제 #29
0
 public override void Enter(PlayerView xOwnerView)
 {
     base.Enter(xOwnerView);
     if (this.xFirstSlice == null && xOwnerView == Program.game.xLocalPlayer)
     {
         this.xFirstSlice = (Program.game._EffectMaster_AddEffect(new SortedAnimated(Vector2.Zero, SortedAnimated.SortedAnimatedEffects._SpellEffects_Wind_TargetArrow)) as SortedAnimated);
         this.xFirstSlice.xRenderComponent.xTransform = xOwnerView.xEntity.xTransform;
         Program.game._EntityMaster_AddWatcher(new FadeInRenderComponent(this.xFirstSlice.xRenderComponent, 10));
     }
     xOwnerView.xEntity.xRenderComponent.SwitchAnimation((ushort)(520 + (int)xOwnerView.xEntity.byAnimationDirection), Animation.CancelOptions.IgnoreIfPlaying, 1f + (1f - this.fChargeSpeedModifier));
     this.xefPowerBalls = (Program.GetTheGame()._EffectMaster_AddEffect(new SortedAnimated(Vector2.Zero, SortedAnimated.SortedAnimatedEffects.ChargeEffect_Balls_Air)) as SortedAnimated);
     this.xefPowerBalls.xRenderComponent.xTransform = xOwnerView.xEntity.xTransform;
     this.xefPowerBalls.xRenderComponent.fVirtualHeight = xOwnerView.xEntity.xRenderComponent.fVirtualHeight + 1f;
     this.lxAttachedEffects.Add(this.xefPowerBalls);
 }
예제 #30
0
 public override void GrantReward(PlayerView xView)
 {
     if (base.AwardGot())
     {
         return;
     }
     Program.game.xGlobalData.WorldRelevantData.lenAquiredScoreRewards.Add(this.enTrueReward);
     if (CAS.NetworkRole == NetworkHelperInterface.NetworkRole.Server)
     {
         NetOutgoingMessage om = Program.game._Network_CreateMessage();
         om.Write(99);
         om.Write(1);
         om.Write((int)this.enTrueReward);
         Program.game._Network_SendMessage(om, true);
     }
 }