4507 lines
105 KiB
C#
4507 lines
105 KiB
C#
using System;
|
||
using System.Collections.Generic;
|
||
using System.Globalization;
|
||
using System.Text.RegularExpressions;
|
||
using UnityEngine;
|
||
|
||
// Token: 0x0200007C RID: 124
|
||
[Serializable]
|
||
public class Library : MonoBehaviour
|
||
{
|
||
// Token: 0x06000C18 RID: 3096 RVA: 0x000EDEC8 File Offset: 0x000EC0C8
|
||
private void Start()
|
||
{
|
||
this.invCount = this.inventory.Count;
|
||
this.wordsOfPower.Clear();
|
||
this.wordsOfPowerAbilityNames.Clear();
|
||
int count = this.abilities.Count;
|
||
for (int i = 0; i < count; i++)
|
||
{
|
||
string mainSkill = this.abilities[i]._MainSkill;
|
||
if (mainSkill == "Melee" || mainSkill == "Range" || mainSkill == "Defense")
|
||
{
|
||
this.wordsOfPower.Add(this.abilities[i]._DisplayName.ToLower());
|
||
this.wordsOfPowerAbilityNames.Add(this.abilities[i]._Name);
|
||
}
|
||
}
|
||
}
|
||
|
||
// Token: 0x06000C19 RID: 3097 RVA: 0x000EDF90 File Offset: 0x000EC190
|
||
public int GetDeathIndex(string deathName)
|
||
{
|
||
for (int i = 0; i < this.deaths.Count; i++)
|
||
{
|
||
if (deathName == this.deaths[i].type)
|
||
{
|
||
return i;
|
||
}
|
||
}
|
||
return -1;
|
||
}
|
||
|
||
// Token: 0x06000C1A RID: 3098 RVA: 0x000EDFD0 File Offset: 0x000EC1D0
|
||
public GameObject GetDeath(int deathIndex, string type)
|
||
{
|
||
if (deathIndex == -1)
|
||
{
|
||
return null;
|
||
}
|
||
if (type == "Random")
|
||
{
|
||
int count = this.deaths[deathIndex].random.Count;
|
||
if (count > 0)
|
||
{
|
||
return this.deaths[deathIndex].random[Random.Range(0, count)];
|
||
}
|
||
}
|
||
if (type == "Critical")
|
||
{
|
||
return this.deaths[deathIndex].critical;
|
||
}
|
||
if (type == "Head")
|
||
{
|
||
return this.deaths[deathIndex].head;
|
||
}
|
||
return null;
|
||
}
|
||
|
||
// Token: 0x06000C1B RID: 3099 RVA: 0x000EE068 File Offset: 0x000EC268
|
||
public Library.Characters GetPCRowFromName(string n)
|
||
{
|
||
Library.Characters characters = null;
|
||
int count = this.characters.Count;
|
||
for (int i = 0; i < count; i++)
|
||
{
|
||
if (this.characters[i]._Name == n)
|
||
{
|
||
characters = this.characters[i];
|
||
break;
|
||
}
|
||
}
|
||
return characters;
|
||
}
|
||
|
||
// Token: 0x06000C1C RID: 3100 RVA: 0x000EE0B8 File Offset: 0x000EC2B8
|
||
public Library.Characters GetPCRow(int num)
|
||
{
|
||
return this.characters[num];
|
||
}
|
||
|
||
// Token: 0x06000C1D RID: 3101 RVA: 0x000EE0C6 File Offset: 0x000EC2C6
|
||
public string GetPCRowName(int num)
|
||
{
|
||
return this.characters[num]._Name;
|
||
}
|
||
|
||
// Token: 0x06000C1E RID: 3102 RVA: 0x000EE0DC File Offset: 0x000EC2DC
|
||
public int GetPCRowIndex(Library.Characters currRow)
|
||
{
|
||
int count = this.characters.Count;
|
||
for (int i = 0; i < count; i++)
|
||
{
|
||
if (this.characters[i] == currRow)
|
||
{
|
||
return i;
|
||
}
|
||
}
|
||
return -1;
|
||
}
|
||
|
||
// Token: 0x06000C1F RID: 3103 RVA: 0x000EE113 File Offset: 0x000EC313
|
||
public Library.Inventory GetInvRowByIndex(int rowName)
|
||
{
|
||
if (rowName > -1 && rowName < this.invCount)
|
||
{
|
||
return this.inventory[rowName];
|
||
}
|
||
Debug.Log(rowName);
|
||
return null;
|
||
}
|
||
|
||
// Token: 0x06000C20 RID: 3104 RVA: 0x000EE13B File Offset: 0x000EC33B
|
||
public Library.Inventory GetInvRow(int rowID)
|
||
{
|
||
if (rowID > -1 && rowID < this.invCount)
|
||
{
|
||
return this.inventory[rowID];
|
||
}
|
||
return null;
|
||
}
|
||
|
||
// Token: 0x06000C21 RID: 3105 RVA: 0x000EE158 File Offset: 0x000EC358
|
||
public Library.Inventory GetInvRowFromName(string rowName)
|
||
{
|
||
int num = -1;
|
||
for (int i = 0; i < this.invCount; i++)
|
||
{
|
||
if (this.inventory[i]._Name == rowName)
|
||
{
|
||
num = i;
|
||
break;
|
||
}
|
||
}
|
||
if (num > -1)
|
||
{
|
||
return this.inventory[num];
|
||
}
|
||
return null;
|
||
}
|
||
|
||
// Token: 0x06000C22 RID: 3106 RVA: 0x000EE1A8 File Offset: 0x000EC3A8
|
||
public Library.Inventory GetInvRowFromDisplayName(string rowName)
|
||
{
|
||
int num = -1;
|
||
for (int i = 0; i < this.invCount; i++)
|
||
{
|
||
if (this.inventory[i]._DisplayName == rowName)
|
||
{
|
||
num = i;
|
||
break;
|
||
}
|
||
}
|
||
if (num > -1)
|
||
{
|
||
return this.inventory[num];
|
||
}
|
||
return null;
|
||
}
|
||
|
||
// Token: 0x06000C23 RID: 3107 RVA: 0x000EE1F8 File Offset: 0x000EC3F8
|
||
public int GetInvRowID(string rowName)
|
||
{
|
||
int num = -1;
|
||
int count = this.inventory.Count;
|
||
for (int i = 0; i < count; i++)
|
||
{
|
||
if (this.inventory[i]._Name == rowName)
|
||
{
|
||
num = i;
|
||
break;
|
||
}
|
||
}
|
||
return num;
|
||
}
|
||
|
||
// Token: 0x06000C24 RID: 3108 RVA: 0x000EE240 File Offset: 0x000EC440
|
||
public Library.Abilities GetAbilityRow(string abilityName)
|
||
{
|
||
int num = -1;
|
||
int count = this.abilities.Count;
|
||
for (int i = 0; i < count; i++)
|
||
{
|
||
if (abilityName == this.abilities[i]._Name)
|
||
{
|
||
num = i;
|
||
break;
|
||
}
|
||
}
|
||
if (num > -1)
|
||
{
|
||
return this.abilities[num];
|
||
}
|
||
return null;
|
||
}
|
||
|
||
// Token: 0x06000C25 RID: 3109 RVA: 0x000EE298 File Offset: 0x000EC498
|
||
public Library.Effects GetEffectRow(string effectName)
|
||
{
|
||
int num = -1;
|
||
int count = this.effects.Count;
|
||
for (int i = 0; i < count; i++)
|
||
{
|
||
if (effectName == this.effects[i]._Name)
|
||
{
|
||
num = i;
|
||
break;
|
||
}
|
||
}
|
||
if (num > -1)
|
||
{
|
||
return this.effects[num];
|
||
}
|
||
return null;
|
||
}
|
||
|
||
// Token: 0x06000C26 RID: 3110 RVA: 0x000EE2F0 File Offset: 0x000EC4F0
|
||
public void GetProjectileRanges(Library library)
|
||
{
|
||
int count = library.inventory.Count;
|
||
for (int i = 0; i < count; i++)
|
||
{
|
||
if (library.inventory[i]._Name == "Arrow")
|
||
{
|
||
this.arrowsMin = i;
|
||
}
|
||
if (library.inventory[i]._Name == "ArrowScales")
|
||
{
|
||
this.arrowsMax = i;
|
||
}
|
||
if (library.inventory[i]._Name == "Dart")
|
||
{
|
||
this.dartsMin = i;
|
||
}
|
||
if (library.inventory[i]._Name == "DartAcorn")
|
||
{
|
||
this.dartsMax = i;
|
||
}
|
||
if (library.inventory[i]._Name == "Vial")
|
||
{
|
||
this.vialsMin = i;
|
||
}
|
||
if (library.inventory[i]._Name == "VialBlack2")
|
||
{
|
||
this.vialsMax = i;
|
||
}
|
||
if (library.inventory[i]._Name == "Torch")
|
||
{
|
||
this.torchID = i;
|
||
}
|
||
if (library.inventory[i]._Name == "BombBomb")
|
||
{
|
||
this.bombID = i;
|
||
}
|
||
if (library.inventory[i]._Name == "IncenseTorch")
|
||
{
|
||
this.incenseTorchID = i;
|
||
}
|
||
if (library.inventory[i]._Name == "Spellbook")
|
||
{
|
||
this.spellbookIndex = i;
|
||
}
|
||
if (library.inventory[i]._Name == "Songbook")
|
||
{
|
||
this.songbookIndex = i;
|
||
}
|
||
}
|
||
}
|
||
|
||
// Token: 0x06000C27 RID: 3111 RVA: 0x000EE4A7 File Offset: 0x000EC6A7
|
||
public Library.Effects GetEffect(int num)
|
||
{
|
||
return this.effects[num];
|
||
}
|
||
|
||
// Token: 0x06000C28 RID: 3112 RVA: 0x000EE4B8 File Offset: 0x000EC6B8
|
||
public Library.Descriptions GetDescRow(string desc)
|
||
{
|
||
for (int i = 0; i < this.descriptions.Count; i++)
|
||
{
|
||
if (this.descriptions[i]._ID == desc)
|
||
{
|
||
return this.descriptions[i];
|
||
}
|
||
}
|
||
return null;
|
||
}
|
||
|
||
// Token: 0x06000C29 RID: 3113 RVA: 0x000EE502 File Offset: 0x000EC702
|
||
public Library.Sockets GetSocket(int socketID)
|
||
{
|
||
if (socketID > -1 && socketID < this.sockets.Count)
|
||
{
|
||
return this.sockets[socketID];
|
||
}
|
||
return null;
|
||
}
|
||
|
||
// Token: 0x06000C2A RID: 3114 RVA: 0x000EE524 File Offset: 0x000EC724
|
||
public Library.Pagan GetPaganRow(string paganName)
|
||
{
|
||
int count = this.pagan.Count;
|
||
for (int i = 0; i < count; i++)
|
||
{
|
||
if (this.pagan[i]._ID == paganName)
|
||
{
|
||
return this.pagan[i];
|
||
}
|
||
}
|
||
return null;
|
||
}
|
||
|
||
// Token: 0x06000C2B RID: 3115 RVA: 0x000EE570 File Offset: 0x000EC770
|
||
public Library.Pagan GetPaganRowByID(float id)
|
||
{
|
||
int num = (int)id;
|
||
int count = this.pagan.Count;
|
||
for (int i = 0; i < count; i++)
|
||
{
|
||
if (this.pagan[i]._Number == num)
|
||
{
|
||
return this.pagan[i];
|
||
}
|
||
}
|
||
return null;
|
||
}
|
||
|
||
// Token: 0x06000C2C RID: 3116 RVA: 0x000EE5BC File Offset: 0x000EC7BC
|
||
public bool MatchesWordOfPower(string n, out string abilityName)
|
||
{
|
||
int count = this.wordsOfPower.Count;
|
||
abilityName = "";
|
||
for (int i = 0; i < count; i++)
|
||
{
|
||
if (this.wordsOfPower[i] == n)
|
||
{
|
||
abilityName = this.wordsOfPowerAbilityNames[i];
|
||
return true;
|
||
}
|
||
}
|
||
return false;
|
||
}
|
||
|
||
// Token: 0x04001393 RID: 5011
|
||
[SerializeField]
|
||
public List<Library.Characters> characters = new List<Library.Characters>();
|
||
|
||
// Token: 0x04001394 RID: 5012
|
||
public List<Library.Inventory> inventory = new List<Library.Inventory>();
|
||
|
||
// Token: 0x04001395 RID: 5013
|
||
public List<Library.Descriptions> descriptions = new List<Library.Descriptions>();
|
||
|
||
// Token: 0x04001396 RID: 5014
|
||
public List<Library.Effects> effects = new List<Library.Effects>();
|
||
|
||
// Token: 0x04001397 RID: 5015
|
||
public List<Library.Sockets> sockets = new List<Library.Sockets>();
|
||
|
||
// Token: 0x04001398 RID: 5016
|
||
public List<Library.Abilities> abilities = new List<Library.Abilities>();
|
||
|
||
// Token: 0x04001399 RID: 5017
|
||
public List<Library.Pagan> pagan = new List<Library.Pagan>();
|
||
|
||
// Token: 0x0400139A RID: 5018
|
||
private int invCount;
|
||
|
||
// Token: 0x0400139B RID: 5019
|
||
private List<string> list;
|
||
|
||
// Token: 0x0400139C RID: 5020
|
||
public List<Library.Deaths> deaths = new List<Library.Deaths>();
|
||
|
||
// Token: 0x0400139D RID: 5021
|
||
private List<string> wordsOfPower = new List<string>();
|
||
|
||
// Token: 0x0400139E RID: 5022
|
||
private List<string> wordsOfPowerAbilityNames = new List<string>();
|
||
|
||
// Token: 0x0400139F RID: 5023
|
||
public int dartsMin;
|
||
|
||
// Token: 0x040013A0 RID: 5024
|
||
public int dartsMax;
|
||
|
||
// Token: 0x040013A1 RID: 5025
|
||
public int arrowsMin;
|
||
|
||
// Token: 0x040013A2 RID: 5026
|
||
public int arrowsMax;
|
||
|
||
// Token: 0x040013A3 RID: 5027
|
||
public int vialsMin;
|
||
|
||
// Token: 0x040013A4 RID: 5028
|
||
public int vialsMax;
|
||
|
||
// Token: 0x040013A5 RID: 5029
|
||
public int torchID;
|
||
|
||
// Token: 0x040013A6 RID: 5030
|
||
public int incenseTorchID;
|
||
|
||
// Token: 0x040013A7 RID: 5031
|
||
public int bombID;
|
||
|
||
// Token: 0x040013A8 RID: 5032
|
||
public int spellbookIndex;
|
||
|
||
// Token: 0x040013A9 RID: 5033
|
||
public int songbookIndex;
|
||
|
||
// Token: 0x020001DD RID: 477
|
||
[Serializable]
|
||
public class Deaths
|
||
{
|
||
// Token: 0x04003084 RID: 12420
|
||
public string type;
|
||
|
||
// Token: 0x04003085 RID: 12421
|
||
public GameObject head;
|
||
|
||
// Token: 0x04003086 RID: 12422
|
||
public GameObject critical;
|
||
|
||
// Token: 0x04003087 RID: 12423
|
||
public List<GameObject> random;
|
||
}
|
||
|
||
// Token: 0x020001DE RID: 478
|
||
[Serializable]
|
||
public class Sockets
|
||
{
|
||
// Token: 0x06001AED RID: 6893 RVA: 0x001DF804 File Offset: 0x001DDA04
|
||
public Sockets(string __ID, string __DisplayName, string __SocketLevel, string __Category, string __ItemID, string __DmgBonus, string __HitChanceBonus, string __AttackSpeed, string __AC, string __RepairAmount, string __StackSizeIncrease, string __MeleeDist, string __WoundID, Library library)
|
||
{
|
||
if (__ID == null)
|
||
{
|
||
__ID = "";
|
||
}
|
||
if (__DisplayName == null)
|
||
{
|
||
__DisplayName = "";
|
||
}
|
||
this._ID = __ID.Trim();
|
||
this._DisplayName = __DisplayName.Trim();
|
||
if (__Category == null)
|
||
{
|
||
__Category = "";
|
||
}
|
||
this._Category = __Category.Trim();
|
||
if (__DmgBonus == null)
|
||
{
|
||
__DmgBonus = "0";
|
||
}
|
||
int num;
|
||
if (int.TryParse(__DmgBonus, NumberStyles.Any, CultureInfo.InvariantCulture, out num))
|
||
{
|
||
this._DmgBonus = num;
|
||
}
|
||
if (__SocketLevel == null)
|
||
{
|
||
__SocketLevel = "0";
|
||
}
|
||
int num2;
|
||
if (int.TryParse(__SocketLevel, NumberStyles.Any, CultureInfo.InvariantCulture, out num2))
|
||
{
|
||
this._SocketLevel = num2;
|
||
}
|
||
int count = library.inventory.Count;
|
||
int num3 = 0;
|
||
for (int i = 0; i < count; i++)
|
||
{
|
||
if (library.inventory[i]._Name == this._ID)
|
||
{
|
||
num3 = i;
|
||
break;
|
||
}
|
||
}
|
||
this._ItemID = num3;
|
||
if (__HitChanceBonus == null)
|
||
{
|
||
__HitChanceBonus = "0";
|
||
}
|
||
int num4;
|
||
if (int.TryParse(__HitChanceBonus, NumberStyles.Any, CultureInfo.InvariantCulture, out num4))
|
||
{
|
||
this._HitChanceBonus = num4;
|
||
}
|
||
if (__AttackSpeed == null)
|
||
{
|
||
__AttackSpeed = "0";
|
||
}
|
||
int num5;
|
||
if (int.TryParse(__AttackSpeed, NumberStyles.Any, CultureInfo.InvariantCulture, out num5))
|
||
{
|
||
this._AttackSpeed = num5;
|
||
}
|
||
if (__AC == null)
|
||
{
|
||
__AC = "0";
|
||
}
|
||
int num6;
|
||
if (int.TryParse(__AC, NumberStyles.Any, CultureInfo.InvariantCulture, out num6))
|
||
{
|
||
this._AC = num6;
|
||
}
|
||
if (__RepairAmount == null)
|
||
{
|
||
__RepairAmount = "0";
|
||
}
|
||
int num7;
|
||
if (int.TryParse(__RepairAmount, NumberStyles.Any, CultureInfo.InvariantCulture, out num7))
|
||
{
|
||
this._RepairAmount = num7;
|
||
}
|
||
if (__StackSizeIncrease == null)
|
||
{
|
||
__StackSizeIncrease = "0";
|
||
}
|
||
int num8;
|
||
if (int.TryParse(__StackSizeIncrease, NumberStyles.Any, CultureInfo.InvariantCulture, out num8))
|
||
{
|
||
this._StackSizeIncrease = num8;
|
||
}
|
||
if (__MeleeDist == null)
|
||
{
|
||
__MeleeDist = "0";
|
||
}
|
||
int num9;
|
||
if (int.TryParse(__MeleeDist, NumberStyles.Any, CultureInfo.InvariantCulture, out num9))
|
||
{
|
||
this._MeleeDist = num9;
|
||
}
|
||
if (__WoundID == null)
|
||
{
|
||
__WoundID = "0";
|
||
}
|
||
int num10;
|
||
if (int.TryParse(__WoundID, NumberStyles.Any, CultureInfo.InvariantCulture, out num10))
|
||
{
|
||
this._WoundID = num10;
|
||
}
|
||
}
|
||
|
||
// Token: 0x04003088 RID: 12424
|
||
public string _ID;
|
||
|
||
// Token: 0x04003089 RID: 12425
|
||
public string _DisplayName;
|
||
|
||
// Token: 0x0400308A RID: 12426
|
||
public string _Category;
|
||
|
||
// Token: 0x0400308B RID: 12427
|
||
public int _ItemID;
|
||
|
||
// Token: 0x0400308C RID: 12428
|
||
public int _SocketLevel;
|
||
|
||
// Token: 0x0400308D RID: 12429
|
||
public int _DmgBonus;
|
||
|
||
// Token: 0x0400308E RID: 12430
|
||
public int _HitChanceBonus;
|
||
|
||
// Token: 0x0400308F RID: 12431
|
||
public int _AttackSpeed;
|
||
|
||
// Token: 0x04003090 RID: 12432
|
||
public int _AC;
|
||
|
||
// Token: 0x04003091 RID: 12433
|
||
public int _RepairAmount;
|
||
|
||
// Token: 0x04003092 RID: 12434
|
||
public int _StackSizeIncrease;
|
||
|
||
// Token: 0x04003093 RID: 12435
|
||
public int _MeleeDist;
|
||
|
||
// Token: 0x04003094 RID: 12436
|
||
public int _WoundID;
|
||
|
||
// Token: 0x04003095 RID: 12437
|
||
public string _MerchantList;
|
||
}
|
||
|
||
// Token: 0x020001DF RID: 479
|
||
[Serializable]
|
||
public class Pagan
|
||
{
|
||
// Token: 0x06001AEE RID: 6894 RVA: 0x001DFA0C File Offset: 0x001DDC0C
|
||
public Pagan(string __ID, string __DisplayName, string __School, string __Slider1, string __Slider1Min, string __Slider1Max, string __Slider2, string __Slider2Min, string __Slider2Max, string __Slider3, string __Slider3Min, string __Slider3Max, string __NeedsTether, string __Difficulty, string __LearningCost, string __DynamicDescriptionStart, string __Description, string __LineColor, int id)
|
||
{
|
||
if (__ID == null)
|
||
{
|
||
__ID = "";
|
||
}
|
||
if (__DisplayName == null)
|
||
{
|
||
__DisplayName = "";
|
||
}
|
||
this._ID = __ID.Trim();
|
||
this._DisplayName = __DisplayName.Trim();
|
||
if (__School == null)
|
||
{
|
||
__School = "";
|
||
}
|
||
this._School = __School.Trim();
|
||
if (__Slider1 == null)
|
||
{
|
||
__Slider1 = "";
|
||
}
|
||
this._Slider1 = __Slider1.Trim();
|
||
if (__Slider2 == null)
|
||
{
|
||
__Slider2 = "";
|
||
}
|
||
this._Slider2 = __Slider2.Trim();
|
||
if (__Slider3 == null)
|
||
{
|
||
__Slider3 = "";
|
||
}
|
||
this._Slider3 = __Slider3.Trim();
|
||
this._Number = id;
|
||
if (__Description == null)
|
||
{
|
||
__Description = "";
|
||
}
|
||
this._Description = __Description.Trim();
|
||
if (__DynamicDescriptionStart == null)
|
||
{
|
||
__DynamicDescriptionStart = "";
|
||
}
|
||
this._DynamicDescriptionStart = __DynamicDescriptionStart.Trim();
|
||
if (__LineColor == null)
|
||
{
|
||
__LineColor = "";
|
||
}
|
||
this._LineColor = __LineColor.Trim();
|
||
if (__Slider1Min == null || __Slider1Min == "")
|
||
{
|
||
__Slider1Min = "0";
|
||
}
|
||
float num;
|
||
if (float.TryParse(__Slider1Min, NumberStyles.Any, CultureInfo.InvariantCulture, out num))
|
||
{
|
||
this._Slider1Min = num;
|
||
}
|
||
if (__Slider1Max == null || __Slider1Max == "")
|
||
{
|
||
__Slider1Max = "0";
|
||
}
|
||
float num2;
|
||
if (float.TryParse(__Slider1Max, NumberStyles.Any, CultureInfo.InvariantCulture, out num2))
|
||
{
|
||
this._Slider1Max = num2;
|
||
}
|
||
if (__Slider2Min == null || __Slider2Min == "")
|
||
{
|
||
__Slider2Min = "0";
|
||
}
|
||
float num3;
|
||
if (float.TryParse(__Slider2Min, NumberStyles.Any, CultureInfo.InvariantCulture, out num3))
|
||
{
|
||
this._Slider2Min = num3;
|
||
}
|
||
if (__Slider2Max == null || __Slider2Max == "")
|
||
{
|
||
__Slider2Max = "0";
|
||
}
|
||
float num4;
|
||
if (float.TryParse(__Slider2Max, NumberStyles.Any, CultureInfo.InvariantCulture, out num4))
|
||
{
|
||
this._Slider2Max = num4;
|
||
}
|
||
if (__Slider3Min == null || __Slider3Min == "")
|
||
{
|
||
__Slider3Min = "0";
|
||
}
|
||
float num5;
|
||
if (float.TryParse(__Slider3Min, NumberStyles.Any, CultureInfo.InvariantCulture, out num5))
|
||
{
|
||
this._Slider3Min = num5;
|
||
}
|
||
if (__Slider3Max == null || __Slider3Max == "")
|
||
{
|
||
__Slider3Max = "0";
|
||
}
|
||
float num6;
|
||
if (float.TryParse(__Slider3Max, NumberStyles.Any, CultureInfo.InvariantCulture, out num6))
|
||
{
|
||
this._Slider3Max = num6;
|
||
}
|
||
if (__Difficulty == null)
|
||
{
|
||
__Difficulty = "0";
|
||
}
|
||
int num7;
|
||
if (int.TryParse(__Difficulty, NumberStyles.Any, CultureInfo.InvariantCulture, out num7))
|
||
{
|
||
this._Difficulty = num7;
|
||
}
|
||
if (__LearningCost == null)
|
||
{
|
||
__LearningCost = "0";
|
||
}
|
||
int num8;
|
||
if (int.TryParse(__LearningCost, NumberStyles.Any, CultureInfo.InvariantCulture, out num8))
|
||
{
|
||
this._LearningCost = num8;
|
||
}
|
||
if (__NeedsTether == null || __NeedsTether == "")
|
||
{
|
||
__NeedsTether = "FALSE";
|
||
}
|
||
bool flag;
|
||
if (bool.TryParse(__NeedsTether, out flag))
|
||
{
|
||
this._NeedsTether = flag;
|
||
}
|
||
}
|
||
|
||
// Token: 0x04003096 RID: 12438
|
||
public string _ID;
|
||
|
||
// Token: 0x04003097 RID: 12439
|
||
public string _DisplayName;
|
||
|
||
// Token: 0x04003098 RID: 12440
|
||
public int _Difficulty;
|
||
|
||
// Token: 0x04003099 RID: 12441
|
||
public int _Number;
|
||
|
||
// Token: 0x0400309A RID: 12442
|
||
public int _LearningCost;
|
||
|
||
// Token: 0x0400309B RID: 12443
|
||
public string _Description;
|
||
|
||
// Token: 0x0400309C RID: 12444
|
||
public string _School;
|
||
|
||
// Token: 0x0400309D RID: 12445
|
||
public string _Slider1;
|
||
|
||
// Token: 0x0400309E RID: 12446
|
||
public string _Slider2;
|
||
|
||
// Token: 0x0400309F RID: 12447
|
||
public string _Slider3;
|
||
|
||
// Token: 0x040030A0 RID: 12448
|
||
public string _DynamicDescriptionStart;
|
||
|
||
// Token: 0x040030A1 RID: 12449
|
||
public float _Slider1Min;
|
||
|
||
// Token: 0x040030A2 RID: 12450
|
||
public float _Slider1Max;
|
||
|
||
// Token: 0x040030A3 RID: 12451
|
||
public float _Slider2Min;
|
||
|
||
// Token: 0x040030A4 RID: 12452
|
||
public float _Slider2Max;
|
||
|
||
// Token: 0x040030A5 RID: 12453
|
||
public float _Slider3Min;
|
||
|
||
// Token: 0x040030A6 RID: 12454
|
||
public float _Slider3Max;
|
||
|
||
// Token: 0x040030A7 RID: 12455
|
||
public bool _NeedsTether;
|
||
|
||
// Token: 0x040030A8 RID: 12456
|
||
public string _LineColor;
|
||
}
|
||
|
||
// Token: 0x020001E0 RID: 480
|
||
[Serializable]
|
||
public class Abilities
|
||
{
|
||
// Token: 0x06001AEF RID: 6895 RVA: 0x001DFCB8 File Offset: 0x001DDEB8
|
||
public Abilities(string __Name, string __DisplayName, string __Description, string __ShowText, string __IsSpell, string __IsSong, string __SongCost, string __MainSkill, string __AINotes, string __WeaponReq, string __Channel, string __NeedsTrinket, string __Trigger, string __X, string __UseOnBoat, string __MultiTarget, string __OnGround, string __Difficulty, string __RadiusCenter, string __TargetNumber, string __Animation, string __TargetsFaction, string __NoiseRadius, string __Sprite, string __CanBreak, string __Sound, string __FX, string __FXOffset, string __OverallTime, string __CenterFX, string __x, Library library)
|
||
{
|
||
if (__DisplayName == null)
|
||
{
|
||
__DisplayName = "";
|
||
}
|
||
this._DisplayName = __DisplayName.Trim();
|
||
if (__ShowText == null)
|
||
{
|
||
__ShowText = "";
|
||
}
|
||
this._ShowText = __ShowText.Trim();
|
||
if (__Name == null)
|
||
{
|
||
__Name = "";
|
||
}
|
||
this._Name = __Name.Trim();
|
||
if (__Description == null)
|
||
{
|
||
__Description = "";
|
||
}
|
||
this._Description = __Description.Trim();
|
||
if (__Animation == null)
|
||
{
|
||
__Animation = "";
|
||
}
|
||
this._Animation = __Animation.Trim();
|
||
if (__MainSkill == null)
|
||
{
|
||
__MainSkill = "";
|
||
}
|
||
this._MainSkill = __MainSkill.Trim();
|
||
if (__WeaponReq == null)
|
||
{
|
||
__WeaponReq = "";
|
||
}
|
||
this._WeaponReq = __WeaponReq.Trim();
|
||
if (__Trigger == null)
|
||
{
|
||
__Trigger = "";
|
||
}
|
||
this._Trigger = __Trigger.Trim();
|
||
if (__Sprite == null)
|
||
{
|
||
__Sprite = "";
|
||
}
|
||
this._Sprite = __Sprite.Trim();
|
||
if (__RadiusCenter == null)
|
||
{
|
||
__RadiusCenter = "";
|
||
}
|
||
this._RadiusCenter = __RadiusCenter.Trim();
|
||
if (__AINotes == null)
|
||
{
|
||
__AINotes = "";
|
||
}
|
||
this._AINotes = __AINotes.Trim();
|
||
if (__Sound == null)
|
||
{
|
||
__Sound = "";
|
||
}
|
||
this._Sound = __Sound.Trim();
|
||
if (__SongCost == null || __SongCost == "")
|
||
{
|
||
__SongCost = "0";
|
||
}
|
||
int num;
|
||
if (int.TryParse(__SongCost, NumberStyles.Any, CultureInfo.InvariantCulture, out num))
|
||
{
|
||
this._SongCost = num;
|
||
}
|
||
if (__FX == null || __FX == "")
|
||
{
|
||
__FX = "0";
|
||
}
|
||
int num2;
|
||
if (int.TryParse(__FX, NumberStyles.Any, CultureInfo.InvariantCulture, out num2))
|
||
{
|
||
this._FX = num2;
|
||
}
|
||
if (__FXOffset == null || __FXOffset == "")
|
||
{
|
||
__FXOffset = "0";
|
||
}
|
||
float num3;
|
||
if (float.TryParse(__FXOffset, NumberStyles.Any, CultureInfo.InvariantCulture, out num3))
|
||
{
|
||
this._FXOffset = num3;
|
||
}
|
||
if (__CanBreak == null || __CanBreak == "")
|
||
{
|
||
__CanBreak = "0";
|
||
}
|
||
int num4;
|
||
if (int.TryParse(__CanBreak, NumberStyles.Any, CultureInfo.InvariantCulture, out num4))
|
||
{
|
||
this._CanBreak = num4;
|
||
}
|
||
if (__NoiseRadius == null || __NoiseRadius == "")
|
||
{
|
||
__NoiseRadius = "0";
|
||
}
|
||
int num5;
|
||
if (int.TryParse(__NoiseRadius, NumberStyles.Any, CultureInfo.InvariantCulture, out num5))
|
||
{
|
||
this._NoiseRadius = num5;
|
||
}
|
||
if (__OverallTime == null || __OverallTime == "")
|
||
{
|
||
__OverallTime = "0";
|
||
}
|
||
int num6;
|
||
if (int.TryParse(__OverallTime, NumberStyles.Any, CultureInfo.InvariantCulture, out num6))
|
||
{
|
||
this._OverallTime = num6;
|
||
}
|
||
if (__CenterFX == null || __CenterFX == "")
|
||
{
|
||
__CenterFX = "0";
|
||
}
|
||
int num7;
|
||
if (int.TryParse(__CenterFX, NumberStyles.Any, CultureInfo.InvariantCulture, out num7))
|
||
{
|
||
this._CenterFX = num7;
|
||
}
|
||
if (__OnGround == null || __OnGround == "")
|
||
{
|
||
__OnGround = "FALSE";
|
||
}
|
||
bool flag;
|
||
if (bool.TryParse(__OnGround, out flag))
|
||
{
|
||
this._OnGround = flag;
|
||
}
|
||
if (__UseOnBoat == null || __UseOnBoat == "")
|
||
{
|
||
__UseOnBoat = "FALSE";
|
||
}
|
||
bool flag2;
|
||
if (bool.TryParse(__UseOnBoat, out flag2))
|
||
{
|
||
this._UseOnBoat = flag2;
|
||
}
|
||
if (__NeedsTrinket == null || __NeedsTrinket == "")
|
||
{
|
||
__NeedsTrinket = "FALSE";
|
||
}
|
||
bool flag3;
|
||
if (bool.TryParse(__NeedsTrinket, out flag3))
|
||
{
|
||
this._NeedsTrinket = flag3;
|
||
}
|
||
if (__TargetsFaction == null || __TargetsFaction == "")
|
||
{
|
||
__TargetsFaction = "0";
|
||
}
|
||
int num8;
|
||
if (int.TryParse(__TargetsFaction, NumberStyles.Any, CultureInfo.InvariantCulture, out num8))
|
||
{
|
||
this._TargetsFaction = num8;
|
||
}
|
||
if (__MultiTarget == null || __MultiTarget == "")
|
||
{
|
||
__MultiTarget = "0";
|
||
}
|
||
int num9;
|
||
if (int.TryParse(__MultiTarget, NumberStyles.Any, CultureInfo.InvariantCulture, out num9))
|
||
{
|
||
this._MultiTarget = num9;
|
||
}
|
||
if (__Difficulty == null || __Difficulty == "")
|
||
{
|
||
__Difficulty = "0";
|
||
}
|
||
float num10;
|
||
if (float.TryParse(__Difficulty, NumberStyles.Any, CultureInfo.InvariantCulture, out num10))
|
||
{
|
||
this._Difficulty = num10;
|
||
}
|
||
if (__X == null)
|
||
{
|
||
__X = "0";
|
||
}
|
||
int num11;
|
||
if (int.TryParse(__X, NumberStyles.Any, CultureInfo.InvariantCulture, out num11))
|
||
{
|
||
this._X = num11;
|
||
}
|
||
if (__Channel == null || __Channel == "")
|
||
{
|
||
__Channel = "FALSE";
|
||
}
|
||
bool flag4;
|
||
if (bool.TryParse(__Channel, out flag4))
|
||
{
|
||
this._Channel = flag4;
|
||
}
|
||
if (__IsSpell == null || __IsSpell == "")
|
||
{
|
||
__IsSpell = "FALSE";
|
||
}
|
||
bool flag5;
|
||
if (bool.TryParse(__IsSpell, out flag5))
|
||
{
|
||
this._IsSpell = flag5;
|
||
}
|
||
if (__IsSong == null || __IsSong == "")
|
||
{
|
||
__IsSong = "FALSE";
|
||
}
|
||
bool flag6;
|
||
if (bool.TryParse(__IsSong, out flag6))
|
||
{
|
||
this._IsSong = flag6;
|
||
}
|
||
if (__TargetNumber == null)
|
||
{
|
||
__TargetNumber = "0";
|
||
}
|
||
int num12;
|
||
if (int.TryParse(__TargetNumber, NumberStyles.Any, CultureInfo.InvariantCulture, out num12))
|
||
{
|
||
this._TargetNumber = num12;
|
||
}
|
||
}
|
||
|
||
// Token: 0x040030A9 RID: 12457
|
||
public string _Name;
|
||
|
||
// Token: 0x040030AA RID: 12458
|
||
public string _DisplayName;
|
||
|
||
// Token: 0x040030AB RID: 12459
|
||
public string _Description;
|
||
|
||
// Token: 0x040030AC RID: 12460
|
||
public string _ShowText;
|
||
|
||
// Token: 0x040030AD RID: 12461
|
||
public bool _IsSpell;
|
||
|
||
// Token: 0x040030AE RID: 12462
|
||
public bool _IsSong;
|
||
|
||
// Token: 0x040030AF RID: 12463
|
||
public string _MainSkill;
|
||
|
||
// Token: 0x040030B0 RID: 12464
|
||
public string _WeaponReq;
|
||
|
||
// Token: 0x040030B1 RID: 12465
|
||
public bool _NeedsTrinket;
|
||
|
||
// Token: 0x040030B2 RID: 12466
|
||
public bool _Channel;
|
||
|
||
// Token: 0x040030B3 RID: 12467
|
||
public bool _OnGround;
|
||
|
||
// Token: 0x040030B4 RID: 12468
|
||
public string _Trigger;
|
||
|
||
// Token: 0x040030B5 RID: 12469
|
||
public int _ResourceNum;
|
||
|
||
// Token: 0x040030B6 RID: 12470
|
||
public int _X;
|
||
|
||
// Token: 0x040030B7 RID: 12471
|
||
public bool _AddsToAttack;
|
||
|
||
// Token: 0x040030B8 RID: 12472
|
||
public float _Difficulty;
|
||
|
||
// Token: 0x040030B9 RID: 12473
|
||
public int _TargetNumber;
|
||
|
||
// Token: 0x040030BA RID: 12474
|
||
public int _MultiTarget;
|
||
|
||
// Token: 0x040030BB RID: 12475
|
||
public int _TargetsFaction;
|
||
|
||
// Token: 0x040030BC RID: 12476
|
||
public string _RadiusCenter;
|
||
|
||
// Token: 0x040030BD RID: 12477
|
||
public string _Sprite;
|
||
|
||
// Token: 0x040030BE RID: 12478
|
||
public int _NoiseRadius;
|
||
|
||
// Token: 0x040030BF RID: 12479
|
||
public string _Sound;
|
||
|
||
// Token: 0x040030C0 RID: 12480
|
||
public int _FX;
|
||
|
||
// Token: 0x040030C1 RID: 12481
|
||
public int _CenterFX;
|
||
|
||
// Token: 0x040030C2 RID: 12482
|
||
public float _FXOffset;
|
||
|
||
// Token: 0x040030C3 RID: 12483
|
||
public int _OverallTime;
|
||
|
||
// Token: 0x040030C4 RID: 12484
|
||
public int _CanBreak;
|
||
|
||
// Token: 0x040030C5 RID: 12485
|
||
public string _AINotes;
|
||
|
||
// Token: 0x040030C6 RID: 12486
|
||
public string _Animation;
|
||
|
||
// Token: 0x040030C7 RID: 12487
|
||
public bool _UseOnBoat;
|
||
|
||
// Token: 0x040030C8 RID: 12488
|
||
public int _SongCost;
|
||
}
|
||
|
||
// Token: 0x020001E1 RID: 481
|
||
[Serializable]
|
||
public class Characters
|
||
{
|
||
// Token: 0x06001AF0 RID: 6896 RVA: 0x001E0158 File Offset: 0x001DE358
|
||
public Characters(string __Name, string __DisplayName, string __Life, string __XP, string __Level, string __NaturalArmor, string __Stamina, string __Str, string __Agl, string __Dex, string __Pag, string __Sen, string __Aur, string __PinBreak, string __MoveSpeed, string __MoveBackSpeed, string __SummonSpeed, string __MaxMP, string __Skills, string __Spells, string __Songs, string __Knowledge, string __Hand1, string __Hand2, string __Hand3, string __Hand4, string __AltHand1, string __AltHand2, string __Ammo1, string __Ammo2, string __Ammo3, string __Armor, string __Trinket, string __Belt1, string __Belt2, string __Circlet, string __Nothing, string __Necklace, string __Ring1, string __Ring2, string __Bag, string __Weight, string __Sight, string __Hearing, string __GenericName, string __QuipID, string __CombatLevel, string __Formation, string __Allegiance, string __Enemies, string __Model, string __ModelHead, string __Sex, string __SkinTexture, string __ArmorTexture, string __HairTexture, string __Flying, string __DeathModel, string __DeathType, string __Race, string __AnimationPrefix, string __HasRootMotionTurn, string __AlwaysRootMotion, string __RotateToSlope, string __Radius, string __Height, string __PortraitZ, string __SoundID, string __VoiceID, string __UnarmedAttackSound, string __UnarmedImpactSound, string __DialogueFile, string __InitiateDialogue, string __CanJoinParty, string __StartingEffect, string __Quest, string __QuestProofState, string __SetQuestStateOnDeath, string __NeverLeaveMap, string __CustomAI, string __CustomAI2, string __CanJumpEvade, string __NonCombatAI, string __CanAggressionGroup, string __CanSecretGroup, string __CanRecoverGroup, string __NeedsDefending, string __HasGroupAnims, Library library)
|
||
{
|
||
if (__Str == null || __Str == "")
|
||
{
|
||
__Str = "0";
|
||
}
|
||
int num;
|
||
if (int.TryParse(__Str, NumberStyles.Any, CultureInfo.InvariantCulture, out num))
|
||
{
|
||
this._Strength = num;
|
||
}
|
||
if (__Agl == null || __Agl == "")
|
||
{
|
||
__Agl = "0";
|
||
}
|
||
int num2;
|
||
if (int.TryParse(__Agl, NumberStyles.Any, CultureInfo.InvariantCulture, out num2))
|
||
{
|
||
this._Agility = num2;
|
||
}
|
||
if (__Dex == null || __Dex == "")
|
||
{
|
||
__Dex = "0";
|
||
}
|
||
int num3;
|
||
if (int.TryParse(__Dex, NumberStyles.Any, CultureInfo.InvariantCulture, out num3))
|
||
{
|
||
this._Dexterity = num3;
|
||
}
|
||
if (__Pag == null || __Pag == "")
|
||
{
|
||
__Pag = "0";
|
||
}
|
||
int num4;
|
||
if (int.TryParse(__Pag, NumberStyles.Any, CultureInfo.InvariantCulture, out num4))
|
||
{
|
||
this._Pagan = num4;
|
||
}
|
||
if (__Sen == null || __Sen == "")
|
||
{
|
||
__Sen = "0";
|
||
}
|
||
int num5;
|
||
if (int.TryParse(__Sen, NumberStyles.Any, CultureInfo.InvariantCulture, out num5))
|
||
{
|
||
this._Sensory = num5;
|
||
}
|
||
if (__Aur == null || __Aur == "")
|
||
{
|
||
__Aur = "0";
|
||
}
|
||
int num6;
|
||
if (int.TryParse(__Aur, NumberStyles.Any, CultureInfo.InvariantCulture, out num6))
|
||
{
|
||
this._Aura = num6;
|
||
}
|
||
if (__Level == null || __Level == "")
|
||
{
|
||
__Aur = "0";
|
||
}
|
||
int num7;
|
||
if (int.TryParse(__Level, NumberStyles.Any, CultureInfo.InvariantCulture, out num7))
|
||
{
|
||
this._Level = num7;
|
||
}
|
||
if (__Sight == null || __Sight == "")
|
||
{
|
||
__Sight = "0";
|
||
}
|
||
int num8;
|
||
if (int.TryParse(__Sight, NumberStyles.Any, CultureInfo.InvariantCulture, out num8))
|
||
{
|
||
this._Sight = (float)num8;
|
||
}
|
||
if (__Hearing == null || __Hearing == "")
|
||
{
|
||
__Hearing = "0";
|
||
}
|
||
int num9;
|
||
if (int.TryParse(__Hearing, NumberStyles.Any, CultureInfo.InvariantCulture, out num9))
|
||
{
|
||
this._Hearing = (float)num9;
|
||
}
|
||
this._HasEnemies = false;
|
||
this._Enemies.Clear();
|
||
if (__Enemies != "")
|
||
{
|
||
this._HasEnemies = true;
|
||
new string[0];
|
||
char c = ',';
|
||
foreach (string text in __Enemies.Split(c, StringSplitOptions.None))
|
||
{
|
||
if (text != "")
|
||
{
|
||
uint num10 = Convert.ToUInt32(Enum.Parse(typeof(Library.Characters.faction), text));
|
||
this._Enemies.Add(num10);
|
||
}
|
||
}
|
||
}
|
||
this._Allegiance = 0U;
|
||
if (__Allegiance != "")
|
||
{
|
||
uint num11 = Convert.ToUInt32(Enum.Parse(typeof(Library.Characters.faction), __Allegiance));
|
||
this._Allegiance = num11;
|
||
}
|
||
string[] array2 = new string[0];
|
||
char c2 = ',';
|
||
Vector4 vector = new Vector4(0f, 0f, 0f, 0f);
|
||
array2 = __Spells.Split(c2, StringSplitOptions.None);
|
||
int num12 = 0;
|
||
foreach (string text2 in array2)
|
||
{
|
||
if (text2 != "")
|
||
{
|
||
if (num12 % 5 == 0 || num12 == 0)
|
||
{
|
||
vector = new Vector4(0f, 0f, 0f, 0f);
|
||
this._Abilities.Add(text2);
|
||
}
|
||
else
|
||
{
|
||
if (num12 % 5 == 1)
|
||
{
|
||
float num13;
|
||
float.TryParse(text2, NumberStyles.Any, CultureInfo.InvariantCulture, out num13);
|
||
vector.x = num13;
|
||
}
|
||
if (num12 % 5 == 2)
|
||
{
|
||
float num14;
|
||
float.TryParse(text2, NumberStyles.Any, CultureInfo.InvariantCulture, out num14);
|
||
vector.y = num14;
|
||
}
|
||
if (num12 % 5 == 3)
|
||
{
|
||
float num15;
|
||
float.TryParse(text2, NumberStyles.Any, CultureInfo.InvariantCulture, out num15);
|
||
vector.z = num15;
|
||
vector.w = 1f;
|
||
this._AbilitiesLevels.Add(vector);
|
||
}
|
||
if (num12 % 5 == 4)
|
||
{
|
||
this._AbilitiesNames.Add(text2);
|
||
}
|
||
}
|
||
num12++;
|
||
}
|
||
}
|
||
array2 = __Songs.Split(c2, StringSplitOptions.None);
|
||
num12 = 0;
|
||
foreach (string text3 in array2)
|
||
{
|
||
if (text3 != "")
|
||
{
|
||
if (num12 % 5 == 0 || num12 == 0)
|
||
{
|
||
vector = new Vector4(0f, 0f, 0f);
|
||
this._Abilities.Add(text3);
|
||
}
|
||
else
|
||
{
|
||
int num16;
|
||
int.TryParse(text3, NumberStyles.Any, CultureInfo.InvariantCulture, out num16);
|
||
if (num12 % 5 == 1)
|
||
{
|
||
vector.x = (float)num16;
|
||
}
|
||
if (num12 % 5 == 2)
|
||
{
|
||
vector.y = (float)num16;
|
||
}
|
||
if (num12 % 5 == 3)
|
||
{
|
||
vector.z = (float)num16;
|
||
vector.w = 1f;
|
||
this._AbilitiesLevels.Add(vector);
|
||
}
|
||
if (num12 % 5 == 4)
|
||
{
|
||
this._AbilitiesNames.Add(text3);
|
||
}
|
||
}
|
||
num12++;
|
||
}
|
||
}
|
||
if (__Skills == null)
|
||
{
|
||
__Skills = "";
|
||
}
|
||
array2 = new string[0];
|
||
c2 = ',';
|
||
array2 = __Skills.Split(c2, StringSplitOptions.None);
|
||
this._SkillLvl.Clear();
|
||
List<string> list = new List<string>();
|
||
list.Add("Robes");
|
||
list.Add("Pearl");
|
||
list.Add("Crimscale");
|
||
list.Add("Stonewood");
|
||
list.Add("ShortSword");
|
||
list.Add("LongSword");
|
||
list.Add("Scepter");
|
||
list.Add("Ax");
|
||
list.Add("Pole");
|
||
list.Add("MultiHand");
|
||
list.Add("Bow");
|
||
list.Add("Sling");
|
||
list.Add("Elixirs");
|
||
list.Add("HandToHand");
|
||
list.Add("LargeShield");
|
||
list.Add("SmallShield");
|
||
list.Add("Bindings");
|
||
list.Add("Fauna");
|
||
list.Add("Vines");
|
||
list.Add("Spores");
|
||
list.Add("Lockpick");
|
||
list.Add("Sneaking");
|
||
list.Add("Bartering");
|
||
list.Add("CharmFish");
|
||
list.Add("CharmForest");
|
||
list.Add("CharmShroom");
|
||
list.Add("Flute");
|
||
list.Add("Horn");
|
||
list.Add("Drum");
|
||
list.Add("Pipe");
|
||
list.Add("WordsMelee");
|
||
list.Add("WordsRange");
|
||
list.Add("WordsDefense");
|
||
list.Add("x");
|
||
list.Add("x");
|
||
list.Add("Whip");
|
||
for (int j = 0; j < 36; j++)
|
||
{
|
||
int num17 = Random.Range(9, 20);
|
||
this._SkillLvl.Add(num17);
|
||
}
|
||
num12 = 0;
|
||
foreach (string text4 in array2)
|
||
{
|
||
if (text4 != "")
|
||
{
|
||
if (num12 % 2 == 0)
|
||
{
|
||
int num18 = list.IndexOf(text4);
|
||
if (num18 > -1)
|
||
{
|
||
int num19;
|
||
int.TryParse(array2[num12 + 1], NumberStyles.Any, CultureInfo.InvariantCulture, out num19);
|
||
this._SkillLvl[num18] = num19;
|
||
}
|
||
}
|
||
num12++;
|
||
}
|
||
}
|
||
if (__Name == null)
|
||
{
|
||
__Name = "";
|
||
}
|
||
this._Name = __Name.Trim();
|
||
if (__DisplayName == null)
|
||
{
|
||
__DisplayName = "";
|
||
}
|
||
this._DisplayName = __DisplayName.Trim();
|
||
if (__Race == null)
|
||
{
|
||
__Race = "";
|
||
}
|
||
this._Race = __Race.Trim();
|
||
if (__Model == null)
|
||
{
|
||
__Model = "";
|
||
}
|
||
this._Model = __Model.Trim();
|
||
if (__ModelHead == null)
|
||
{
|
||
__ModelHead = "";
|
||
}
|
||
this._ModelHead = __ModelHead.Trim();
|
||
if (__SkinTexture == null)
|
||
{
|
||
__SkinTexture = "";
|
||
}
|
||
this._SkinTexture = __SkinTexture.Trim();
|
||
if (__ArmorTexture == null)
|
||
{
|
||
__ArmorTexture = "";
|
||
}
|
||
this._ArmorTexture = __ArmorTexture.Trim();
|
||
if (__HairTexture == null)
|
||
{
|
||
__HairTexture = "";
|
||
}
|
||
this._HairTexture = __HairTexture.Trim();
|
||
if (__DeathModel == null)
|
||
{
|
||
__DeathModel = "";
|
||
}
|
||
this._DeathID = library.GetDeathIndex(__DeathModel.Trim());
|
||
if (__DeathType == null)
|
||
{
|
||
__DeathType = "";
|
||
}
|
||
this._DeathType = __DeathType.Trim();
|
||
if (__CustomAI == null)
|
||
{
|
||
__CustomAI = "";
|
||
}
|
||
this._CustomAI = __CustomAI.Trim();
|
||
if (__CustomAI2 == null)
|
||
{
|
||
__CustomAI2 = "";
|
||
}
|
||
this._EveryAttackAI = __CustomAI2.Trim();
|
||
if (__NonCombatAI == null)
|
||
{
|
||
__NonCombatAI = "";
|
||
}
|
||
this._NonCombatAI = __NonCombatAI.Trim();
|
||
if (__CanJumpEvade == null || __CanJumpEvade == "")
|
||
{
|
||
__CanJumpEvade = "FALSE";
|
||
}
|
||
bool flag;
|
||
if (bool.TryParse(__CanJumpEvade, out flag))
|
||
{
|
||
this._CanJumpEvade = flag;
|
||
}
|
||
else
|
||
{
|
||
Debug.LogWarning("Failed To Convert __CanJumpEvade string: " + __CanJumpEvade + " to bool");
|
||
}
|
||
if (__Formation == null || __Formation == "")
|
||
{
|
||
__Formation = "0";
|
||
}
|
||
int num20;
|
||
if (int.TryParse(__Formation, NumberStyles.Any, CultureInfo.InvariantCulture, out num20))
|
||
{
|
||
this._Formation = num20;
|
||
}
|
||
else
|
||
{
|
||
Debug.LogWarning("Failed To Convert _VoiceID string: " + this._Formation.ToString() + " to int");
|
||
}
|
||
this._PortraitCombat = this._Portrait + "_combat";
|
||
this._PortraitLarge = this._Portrait;
|
||
this._Portrait += "_sml";
|
||
if (__Knowledge == null)
|
||
{
|
||
__Knowledge = "";
|
||
}
|
||
this._Knowledge = __Knowledge.Trim();
|
||
if (__UnarmedImpactSound == null)
|
||
{
|
||
__UnarmedImpactSound = "";
|
||
}
|
||
this._UnarmedImpactSound = __UnarmedImpactSound.Trim();
|
||
if (__UnarmedAttackSound == null)
|
||
{
|
||
__UnarmedAttackSound = "";
|
||
}
|
||
this._UnarmedAttackSound = __UnarmedAttackSound.Trim();
|
||
if (__AnimationPrefix == null)
|
||
{
|
||
__AnimationPrefix = "";
|
||
}
|
||
this._AnimationPrefix = __AnimationPrefix.Trim();
|
||
if (__Quest == null)
|
||
{
|
||
__Quest = "";
|
||
}
|
||
this._Quest = __Quest.Trim();
|
||
if (__StartingEffect == null)
|
||
{
|
||
__StartingEffect = "";
|
||
}
|
||
this._StartingEffect = __StartingEffect.Trim();
|
||
if (__QuestProofState == null)
|
||
{
|
||
__QuestProofState = "";
|
||
}
|
||
this._QuestProofState = __QuestProofState.Trim();
|
||
if (__SetQuestStateOnDeath == null)
|
||
{
|
||
__SetQuestStateOnDeath = "";
|
||
}
|
||
this._SetQuestStateOnDeath = __SetQuestStateOnDeath.Trim();
|
||
if (__Hand1 == null)
|
||
{
|
||
__Hand1 = "";
|
||
}
|
||
this._Hand1 = __Hand1.Trim();
|
||
this._Items.Clear();
|
||
int num21 = 0;
|
||
int count = library.inventory.Count;
|
||
int num22 = 0;
|
||
for (int k = 0; k < count; k++)
|
||
{
|
||
if (library.inventory[k]._Name == this._Hand1)
|
||
{
|
||
num22 = k;
|
||
num21 = library.inventory[k]._DurabilityMax;
|
||
break;
|
||
}
|
||
}
|
||
this._Items.Add(num22);
|
||
this._Items.Add(1);
|
||
this._Items.Add(num21);
|
||
if (__Hand2 == null)
|
||
{
|
||
__Hand2 = "";
|
||
}
|
||
this._Hand2 = __Hand2.Trim();
|
||
num22 = 0;
|
||
for (int l = 0; l < count; l++)
|
||
{
|
||
if (library.inventory[l]._Name == this._Hand2)
|
||
{
|
||
num22 = l;
|
||
num21 = library.inventory[l]._DurabilityMax;
|
||
break;
|
||
}
|
||
}
|
||
this._Items.Add(num22);
|
||
this._Items.Add(1);
|
||
this._Items.Add(num21);
|
||
if (__Hand3 == null)
|
||
{
|
||
__Hand3 = "";
|
||
}
|
||
this._Hand3 = __Hand3.Trim();
|
||
num22 = 0;
|
||
for (int m = 0; m < count; m++)
|
||
{
|
||
if (library.inventory[m]._Name == this._Hand3)
|
||
{
|
||
num22 = m;
|
||
num21 = library.inventory[m]._DurabilityMax;
|
||
break;
|
||
}
|
||
}
|
||
this._Items.Add(num22);
|
||
this._Items.Add(1);
|
||
this._Items.Add(num21);
|
||
if (__Hand4 == null)
|
||
{
|
||
__Hand4 = "";
|
||
}
|
||
this._Hand4 = __Hand4.Trim();
|
||
num22 = 0;
|
||
for (int n = 0; n < count; n++)
|
||
{
|
||
if (library.inventory[n]._Name == this._Hand4)
|
||
{
|
||
num22 = n;
|
||
num21 = library.inventory[n]._DurabilityMax;
|
||
break;
|
||
}
|
||
}
|
||
this._Items.Add(num22);
|
||
this._Items.Add(1);
|
||
this._Items.Add(num21);
|
||
if (__Ammo1 == null)
|
||
{
|
||
__Ammo1 = "";
|
||
}
|
||
this._Ammo1 = __Ammo1.Trim();
|
||
num22 = 0;
|
||
int num23 = 1;
|
||
for (int num24 = 0; num24 < count; num24++)
|
||
{
|
||
if (library.inventory[num24]._Name == this._Ammo1)
|
||
{
|
||
num22 = num24;
|
||
num21 = library.inventory[num24]._DurabilityMax;
|
||
num23 = library.inventory[num24]._MaxStackSize;
|
||
break;
|
||
}
|
||
}
|
||
this._Items.Add(num22);
|
||
if (num22 > 1)
|
||
{
|
||
this._Items.Add(num23);
|
||
}
|
||
else
|
||
{
|
||
this._Items.Add(0);
|
||
}
|
||
this._Items.Add(num21);
|
||
if (__Ammo2 == null)
|
||
{
|
||
__Ammo2 = "";
|
||
}
|
||
this._Ammo2 = __Ammo2.Trim();
|
||
num22 = 0;
|
||
for (int num25 = 0; num25 < count; num25++)
|
||
{
|
||
if (library.inventory[num25]._Name == this._Ammo2)
|
||
{
|
||
num22 = num25;
|
||
num21 = library.inventory[num25]._DurabilityMax;
|
||
num23 = library.inventory[num25]._MaxStackSize;
|
||
break;
|
||
}
|
||
}
|
||
this._Items.Add(num22);
|
||
if (num22 > 1)
|
||
{
|
||
this._Items.Add(num23);
|
||
}
|
||
else
|
||
{
|
||
this._Items.Add(0);
|
||
}
|
||
this._Items.Add(num21);
|
||
if (__Ammo3 == null)
|
||
{
|
||
__Ammo3 = "";
|
||
}
|
||
this._Ammo3 = __Ammo3.Trim();
|
||
num22 = 0;
|
||
for (int num26 = 0; num26 < count; num26++)
|
||
{
|
||
if (library.inventory[num26]._Name == this._Ammo3)
|
||
{
|
||
num22 = num26;
|
||
num21 = library.inventory[num26]._DurabilityMax;
|
||
num23 = library.inventory[num26]._MaxStackSize;
|
||
break;
|
||
}
|
||
}
|
||
this._Items.Add(num22);
|
||
if (num22 > 1)
|
||
{
|
||
this._Items.Add(num23);
|
||
}
|
||
else
|
||
{
|
||
this._Items.Add(0);
|
||
}
|
||
this._Items.Add(num21);
|
||
if (__Trinket == null)
|
||
{
|
||
__Trinket = "";
|
||
}
|
||
this._Trinket = __Trinket.Trim();
|
||
num22 = 0;
|
||
int num27 = 1;
|
||
int num28 = 0;
|
||
while (num28 < count)
|
||
{
|
||
if (library.inventory[num28]._Name == this._Trinket)
|
||
{
|
||
num22 = num28;
|
||
num21 = library.inventory[num28]._DurabilityMax;
|
||
if (library.inventory[num28]._Effect != "")
|
||
{
|
||
num21 = 0;
|
||
}
|
||
else
|
||
{
|
||
num21 = library.inventory[num28]._DurabilityMax;
|
||
}
|
||
if (library.inventory[num28]._Stackable)
|
||
{
|
||
num27 = 1;
|
||
break;
|
||
}
|
||
break;
|
||
}
|
||
else
|
||
{
|
||
num28++;
|
||
}
|
||
}
|
||
this._Items.Add(num22);
|
||
this._Items.Add(num27);
|
||
this._Items.Add(num21);
|
||
if (__Circlet == null)
|
||
{
|
||
__Circlet = "";
|
||
}
|
||
this._Circlet = __Circlet.Trim();
|
||
num22 = 0;
|
||
for (int num29 = 0; num29 < count; num29++)
|
||
{
|
||
if (library.inventory[num29]._Name == this._Circlet)
|
||
{
|
||
num22 = num29;
|
||
num21 = library.inventory[num29]._DurabilityMax;
|
||
break;
|
||
}
|
||
}
|
||
this._Items.Add(num22);
|
||
this._Items.Add(1);
|
||
this._Items.Add(num21);
|
||
num22 = 0;
|
||
for (int num30 = 0; num30 < count; num30++)
|
||
{
|
||
if (library.inventory[num30]._Name == __Armor)
|
||
{
|
||
num22 = num30;
|
||
num21 = library.inventory[num30]._DurabilityMax;
|
||
break;
|
||
}
|
||
}
|
||
this._Items.Add(num22);
|
||
this._Items.Add(1);
|
||
this._Items.Add(num21);
|
||
if (__Ring1 == null)
|
||
{
|
||
__Ring1 = "";
|
||
}
|
||
this._Ring1 = __Ring1.Trim();
|
||
num22 = 0;
|
||
for (int num31 = 0; num31 < count; num31++)
|
||
{
|
||
if (library.inventory[num31]._Name == this._Ring1)
|
||
{
|
||
num22 = num31;
|
||
num21 = library.inventory[num31]._DurabilityMax;
|
||
break;
|
||
}
|
||
}
|
||
this._Items.Add(num22);
|
||
this._Items.Add(1);
|
||
this._Items.Add(num21);
|
||
if (__Ring2 == null)
|
||
{
|
||
__Ring2 = "";
|
||
}
|
||
this._Ring2 = __Ring2.Trim();
|
||
num22 = 0;
|
||
for (int num32 = 0; num32 < count; num32++)
|
||
{
|
||
if (library.inventory[num32]._Name == this._Ring2)
|
||
{
|
||
num22 = num32;
|
||
num21 = library.inventory[num32]._DurabilityMax;
|
||
break;
|
||
}
|
||
}
|
||
this._Items.Add(num22);
|
||
this._Items.Add(1);
|
||
this._Items.Add(num21);
|
||
if (__Necklace == null)
|
||
{
|
||
__Necklace = "";
|
||
}
|
||
this._Necklace = __Necklace.Trim();
|
||
num22 = 0;
|
||
for (int num33 = 0; num33 < count; num33++)
|
||
{
|
||
if (library.inventory[num33]._Name == this._Necklace)
|
||
{
|
||
num22 = num33;
|
||
num21 = library.inventory[num33]._DurabilityMax;
|
||
break;
|
||
}
|
||
}
|
||
this._Items.Add(num22);
|
||
this._Items.Add(1);
|
||
this._Items.Add(num21);
|
||
if (__Belt1 == null)
|
||
{
|
||
__Belt1 = "";
|
||
}
|
||
this._Trinket = __Belt1.Trim();
|
||
num22 = 0;
|
||
num27 = 1;
|
||
int num34 = 0;
|
||
while (num34 < count)
|
||
{
|
||
if (library.inventory[num34]._Name == this._Trinket)
|
||
{
|
||
num22 = num34;
|
||
num21 = library.inventory[num34]._DurabilityMax;
|
||
if (library.inventory[num34]._Effect != "")
|
||
{
|
||
num21 = 0;
|
||
}
|
||
else
|
||
{
|
||
num21 = library.inventory[num34]._DurabilityMax;
|
||
}
|
||
if (library.inventory[num34]._Stackable)
|
||
{
|
||
num27 = 1;
|
||
break;
|
||
}
|
||
break;
|
||
}
|
||
else
|
||
{
|
||
num34++;
|
||
}
|
||
}
|
||
this._Items.Add(num22);
|
||
this._Items.Add(num27);
|
||
this._Items.Add(num21);
|
||
if (__Belt2 == null)
|
||
{
|
||
__Belt2 = "";
|
||
}
|
||
this._Trinket = __Belt2.Trim();
|
||
num22 = 0;
|
||
num27 = 1;
|
||
int num35 = 0;
|
||
while (num35 < count)
|
||
{
|
||
if (library.inventory[num35]._Name == this._Trinket)
|
||
{
|
||
num22 = num35;
|
||
num21 = library.inventory[num35]._DurabilityMax;
|
||
if (library.inventory[num35]._Effect != "")
|
||
{
|
||
num21 = 0;
|
||
}
|
||
else
|
||
{
|
||
num21 = library.inventory[num35]._DurabilityMax;
|
||
}
|
||
if (library.inventory[num35]._Stackable)
|
||
{
|
||
num27 = 1;
|
||
break;
|
||
}
|
||
break;
|
||
}
|
||
else
|
||
{
|
||
num35++;
|
||
}
|
||
}
|
||
this._Items.Add(num22);
|
||
this._Items.Add(num27);
|
||
this._Items.Add(num21);
|
||
num22 = 0;
|
||
this._Items.Add(num22);
|
||
this._Items.Add(1);
|
||
this._Items.Add(0);
|
||
if (__AltHand1 == null)
|
||
{
|
||
__AltHand1 = "";
|
||
}
|
||
this._AltHand1 = __AltHand1.Trim();
|
||
num22 = 0;
|
||
for (int num36 = 0; num36 < count; num36++)
|
||
{
|
||
if (library.inventory[num36]._Name == this._AltHand1)
|
||
{
|
||
num22 = num36;
|
||
num21 = library.inventory[num36]._DurabilityMax;
|
||
break;
|
||
}
|
||
}
|
||
this._Items.Add(num22);
|
||
this._Items.Add(1);
|
||
this._Items.Add(num21);
|
||
if (__AltHand2 == null)
|
||
{
|
||
__AltHand2 = "";
|
||
}
|
||
this._AltHand2 = __AltHand2.Trim();
|
||
num22 = 0;
|
||
for (int num37 = 0; num37 < count; num37++)
|
||
{
|
||
if (library.inventory[num37]._Name == this._AltHand2)
|
||
{
|
||
num22 = num37;
|
||
num21 = library.inventory[num37]._DurabilityMax;
|
||
break;
|
||
}
|
||
}
|
||
this._Items.Add(num22);
|
||
this._Items.Add(1);
|
||
this._Items.Add(num21);
|
||
this._Items.Add(num22);
|
||
this._Items.Add(1);
|
||
this._Items.Add(0);
|
||
if (__Bag == null)
|
||
{
|
||
__Bag = "";
|
||
}
|
||
string text5 = __Bag.Trim();
|
||
char c3 = ',';
|
||
array2 = text5.Split(c3, StringSplitOptions.None);
|
||
int num38 = 0;
|
||
Library.Inventory inventory = null;
|
||
foreach (string text6 in array2)
|
||
{
|
||
num22 = 0;
|
||
if (num38 % 2 == 0)
|
||
{
|
||
for (int num39 = 0; num39 < count; num39++)
|
||
{
|
||
if (library.inventory[num39]._Name == text6)
|
||
{
|
||
inventory = library.inventory[num39];
|
||
num22 = num39;
|
||
break;
|
||
}
|
||
}
|
||
this._Items.Add(num22);
|
||
}
|
||
if (num38 % 2 == 1)
|
||
{
|
||
int num40;
|
||
int.TryParse(text6, NumberStyles.Any, CultureInfo.InvariantCulture, out num40);
|
||
this._Items.Add(num40);
|
||
if (inventory._Effect != "" && inventory._Tag != "Jewelry")
|
||
{
|
||
this._Items.Add(0);
|
||
}
|
||
else
|
||
{
|
||
this._Items.Add(inventory._DurabilityMax);
|
||
}
|
||
}
|
||
num38++;
|
||
}
|
||
if (__GenericName == null)
|
||
{
|
||
__GenericName = "";
|
||
}
|
||
this._GenericName = __GenericName.Trim();
|
||
if (__QuipID == null)
|
||
{
|
||
__QuipID = "";
|
||
}
|
||
this._QuipID = __QuipID.Trim();
|
||
if (__PortraitZ == null || __PortraitZ == "")
|
||
{
|
||
__PortraitZ = "0";
|
||
}
|
||
if (__PortraitZ == null)
|
||
{
|
||
__PortraitZ = "0";
|
||
}
|
||
float num41;
|
||
if (float.TryParse(__PortraitZ, NumberStyles.Any, CultureInfo.InvariantCulture, out num41))
|
||
{
|
||
this._PortraitZ = num41;
|
||
}
|
||
else
|
||
{
|
||
Debug.LogWarning("Failed To Convert __PortraitZ string: " + __PortraitZ + " to float");
|
||
}
|
||
if (__PinBreak == null)
|
||
{
|
||
__PinBreak = "0";
|
||
}
|
||
if (__PinBreak == "")
|
||
{
|
||
__PinBreak = "0";
|
||
}
|
||
float num42;
|
||
if (float.TryParse(__PinBreak, NumberStyles.Any, CultureInfo.InvariantCulture, out num42))
|
||
{
|
||
this._PinBreak = num42;
|
||
}
|
||
else
|
||
{
|
||
Debug.LogWarning("Failed To Convert __PinBreak string: " + this._PinBreak.ToString() + " to float");
|
||
}
|
||
if (__HasRootMotionTurn == null || __HasRootMotionTurn == "")
|
||
{
|
||
__HasRootMotionTurn = "FALSE";
|
||
}
|
||
bool flag2;
|
||
if (bool.TryParse(__HasRootMotionTurn, out flag2))
|
||
{
|
||
this._HasRootMotionTurn = flag2;
|
||
}
|
||
else
|
||
{
|
||
Debug.LogWarning("Failed To Convert __AlwaysRootMotion string: " + __HasRootMotionTurn + " to bool");
|
||
}
|
||
if (__RotateToSlope == null || __RotateToSlope == "")
|
||
{
|
||
__RotateToSlope = "FALSE";
|
||
}
|
||
bool flag3;
|
||
if (bool.TryParse(__RotateToSlope, out flag3))
|
||
{
|
||
this._RotateToSlope = flag3;
|
||
}
|
||
else
|
||
{
|
||
Debug.LogWarning("Failed To Convert __AlwaysRootMotion string: " + __RotateToSlope + " to bool");
|
||
}
|
||
if (__AlwaysRootMotion == null || __AlwaysRootMotion == "")
|
||
{
|
||
__AlwaysRootMotion = "FALSE";
|
||
}
|
||
bool flag4;
|
||
if (bool.TryParse(__AlwaysRootMotion, out flag4))
|
||
{
|
||
this._AlwaysRootMotion = flag4;
|
||
}
|
||
else
|
||
{
|
||
Debug.LogWarning("Failed To Convert __AlwaysRootMotion string: " + __AlwaysRootMotion + " to bool");
|
||
}
|
||
if (__Life == null || __Life == "")
|
||
{
|
||
__Life = "0";
|
||
}
|
||
int num43;
|
||
if (int.TryParse(__Life, NumberStyles.Any, CultureInfo.InvariantCulture, out num43))
|
||
{
|
||
this._Life = num43;
|
||
}
|
||
else
|
||
{
|
||
Debug.LogWarning("Failed To Convert _Life string: " + __Life + " to int");
|
||
}
|
||
if (__XP == null || __XP == "")
|
||
{
|
||
__XP = "0";
|
||
}
|
||
int num44;
|
||
if (int.TryParse(__XP, NumberStyles.Any, CultureInfo.InvariantCulture, out num44))
|
||
{
|
||
this._XP = num44;
|
||
}
|
||
else
|
||
{
|
||
Debug.LogWarning("Failed To Convert XP string: " + __XP + " to int");
|
||
}
|
||
if (__MaxMP == null || __MaxMP == "")
|
||
{
|
||
__MaxMP = "0";
|
||
}
|
||
int num45;
|
||
if (int.TryParse(__MaxMP, NumberStyles.Any, CultureInfo.InvariantCulture, out num45))
|
||
{
|
||
this._MaxMP = num45;
|
||
}
|
||
else
|
||
{
|
||
Debug.LogWarning("Failed To Convert MP string: " + __MaxMP + " to int");
|
||
}
|
||
if (__CombatLevel == null || __CombatLevel == "")
|
||
{
|
||
__CombatLevel = "3";
|
||
}
|
||
int num46;
|
||
if (int.TryParse(__CombatLevel, NumberStyles.Any, CultureInfo.InvariantCulture, out num46))
|
||
{
|
||
this._CombatLevel = num46;
|
||
}
|
||
else
|
||
{
|
||
Debug.LogWarning("Failed To Convert _CombatLevel string: " + __CombatLevel + " to int");
|
||
}
|
||
if (__Radius == null || __Radius == "")
|
||
{
|
||
__Radius = "1";
|
||
}
|
||
int num47;
|
||
if (int.TryParse(__Radius, NumberStyles.Any, CultureInfo.InvariantCulture, out num47))
|
||
{
|
||
this._Radius = num47;
|
||
}
|
||
else
|
||
{
|
||
Debug.LogWarning("Failed To Convert _Radius string: " + __Radius + " to int");
|
||
}
|
||
if (__Weight == null || __Weight == "")
|
||
{
|
||
__Weight = "100";
|
||
}
|
||
int num48;
|
||
if (int.TryParse(__Weight, NumberStyles.Any, CultureInfo.InvariantCulture, out num48))
|
||
{
|
||
this._Weight = num48;
|
||
}
|
||
else
|
||
{
|
||
Debug.LogWarning("Failed To Convert _Weight string: " + __Weight + " to int");
|
||
}
|
||
if (__Height == null || __Height == "")
|
||
{
|
||
__Height = "3";
|
||
}
|
||
float num49;
|
||
if (float.TryParse(__Height, NumberStyles.Any, CultureInfo.InvariantCulture, out num49))
|
||
{
|
||
this._Height = num49;
|
||
}
|
||
else
|
||
{
|
||
Debug.LogWarning("Failed To Convert _Height string: " + __Height + " to int");
|
||
}
|
||
if (__DialogueFile == null)
|
||
{
|
||
__DialogueFile = "";
|
||
}
|
||
this._DialogueFile = __DialogueFile.Trim();
|
||
if (__InitiateDialogue == null || __InitiateDialogue == "")
|
||
{
|
||
__InitiateDialogue = "0";
|
||
}
|
||
int num50;
|
||
if (int.TryParse(__InitiateDialogue, NumberStyles.Any, CultureInfo.InvariantCulture, out num50))
|
||
{
|
||
this._InitiateDialogue = num50;
|
||
}
|
||
else
|
||
{
|
||
Debug.LogWarning("Failed To Convert _InitiateDialogue string: " + __InitiateDialogue + " to int");
|
||
}
|
||
if (__SoundID == null || __SoundID == "")
|
||
{
|
||
__SoundID = "0";
|
||
}
|
||
int num51;
|
||
if (int.TryParse(__SoundID, NumberStyles.Any, CultureInfo.InvariantCulture, out num51))
|
||
{
|
||
this._SoundID = num51;
|
||
}
|
||
else
|
||
{
|
||
Debug.LogWarning("Failed To Convert _SoundID string: " + __SoundID + " to int");
|
||
}
|
||
if (__VoiceID == null || __VoiceID == "")
|
||
{
|
||
__VoiceID = "0";
|
||
}
|
||
int num52;
|
||
if (int.TryParse(__VoiceID, NumberStyles.Any, CultureInfo.InvariantCulture, out num52))
|
||
{
|
||
this._VoiceID = num52;
|
||
}
|
||
else
|
||
{
|
||
Debug.LogWarning("Failed To Convert _VoiceID string: " + this._VoiceID.ToString() + " to int");
|
||
}
|
||
if (__CanJoinParty == null || __CanJoinParty == "")
|
||
{
|
||
__CanJoinParty = "FALSE";
|
||
}
|
||
bool flag5;
|
||
if (bool.TryParse(__CanJoinParty, out flag5))
|
||
{
|
||
this._CanJoinParty = flag5;
|
||
}
|
||
else
|
||
{
|
||
Debug.LogWarning("Failed To Convert __CanJoinParty string: " + __CanJoinParty + " to bool");
|
||
}
|
||
if (__NeverLeaveMap == null || __NeverLeaveMap == "")
|
||
{
|
||
__NeverLeaveMap = "FALSE";
|
||
}
|
||
bool flag6;
|
||
if (bool.TryParse(__NeverLeaveMap, out flag6))
|
||
{
|
||
this._NeverLeaveMap = flag6;
|
||
}
|
||
else
|
||
{
|
||
Debug.LogWarning("Failed To Convert __NeverLeaveMap string: " + __NeverLeaveMap + " to bool");
|
||
}
|
||
if (__Flying == null || __Flying == "")
|
||
{
|
||
__Flying = "FALSE";
|
||
}
|
||
bool flag7;
|
||
if (bool.TryParse(__Flying, out flag7))
|
||
{
|
||
this._Flying = flag7;
|
||
}
|
||
else
|
||
{
|
||
Debug.LogWarning("Failed To Convert __NeverLeaveMap string: " + __NeverLeaveMap + " to bool");
|
||
}
|
||
if (__CanAggressionGroup == null || __CanAggressionGroup == "")
|
||
{
|
||
__CanAggressionGroup = "FALSE";
|
||
}
|
||
bool flag8;
|
||
if (bool.TryParse(__CanAggressionGroup, out flag8))
|
||
{
|
||
this._CanAggressionGroup = flag8;
|
||
}
|
||
else
|
||
{
|
||
Debug.LogWarning("Failed To Convert __NeverLeaveMap string: " + __CanAggressionGroup + " to bool");
|
||
}
|
||
if (__CanSecretGroup == null || __CanSecretGroup == "")
|
||
{
|
||
__CanSecretGroup = "FALSE";
|
||
}
|
||
bool flag9;
|
||
if (bool.TryParse(__CanSecretGroup, out flag9))
|
||
{
|
||
this._CanSecretGroup = flag9;
|
||
}
|
||
else
|
||
{
|
||
Debug.LogWarning("Failed To Convert __NeverLeaveMap string: " + __CanSecretGroup + " to bool");
|
||
}
|
||
if (__CanRecoverGroup == null || __CanRecoverGroup == "")
|
||
{
|
||
__CanRecoverGroup = "FALSE";
|
||
}
|
||
bool flag10;
|
||
if (bool.TryParse(__CanRecoverGroup, out flag10))
|
||
{
|
||
this._CanRecoverGroup = flag10;
|
||
}
|
||
else
|
||
{
|
||
Debug.LogWarning("Failed To Convert __NeverLeaveMap string: " + __CanRecoverGroup + " to bool");
|
||
}
|
||
if (__NeedsDefending == null || __NeedsDefending == "")
|
||
{
|
||
__NeedsDefending = "FALSE";
|
||
}
|
||
bool flag11;
|
||
if (bool.TryParse(__NeedsDefending, out flag11))
|
||
{
|
||
this._NeedsDefending = flag11;
|
||
}
|
||
else
|
||
{
|
||
Debug.LogWarning("Failed To Convert __NeverLeaveMap string: " + __NeedsDefending + " to bool");
|
||
}
|
||
if (__HasGroupAnims == null || __HasGroupAnims == "")
|
||
{
|
||
__HasGroupAnims = "FALSE";
|
||
}
|
||
bool flag12;
|
||
if (bool.TryParse(__HasGroupAnims, out flag12))
|
||
{
|
||
this._HasGroupAnims = flag12;
|
||
}
|
||
else
|
||
{
|
||
Debug.LogWarning("Failed To Convert __NeverLeaveMap string: " + __HasGroupAnims + " to bool");
|
||
}
|
||
if (__MoveSpeed == null || __MoveSpeed == "")
|
||
{
|
||
__MoveSpeed = "0";
|
||
}
|
||
if (__MoveSpeed == null)
|
||
{
|
||
__MoveSpeed = "0";
|
||
}
|
||
float num53;
|
||
if (float.TryParse(__MoveSpeed, NumberStyles.Any, CultureInfo.InvariantCulture, out num53))
|
||
{
|
||
this._MoveSpeed = num53;
|
||
}
|
||
else
|
||
{
|
||
Debug.LogWarning("Failed To Convert __MoveSpeed string: " + __MoveSpeed + " to float");
|
||
}
|
||
if (__MoveBackSpeed == null || __MoveBackSpeed == "")
|
||
{
|
||
__MoveBackSpeed = "0";
|
||
}
|
||
if (__MoveBackSpeed == null)
|
||
{
|
||
__MoveBackSpeed = "0";
|
||
}
|
||
float num54;
|
||
if (float.TryParse(__MoveBackSpeed, NumberStyles.Any, CultureInfo.InvariantCulture, out num54))
|
||
{
|
||
this._MoveBackSpeed = num54;
|
||
}
|
||
else
|
||
{
|
||
Debug.LogWarning("Failed To Convert __MoveBackSpeed string: " + __MoveBackSpeed + " to float");
|
||
}
|
||
if (__SummonSpeed == null || __SummonSpeed == "")
|
||
{
|
||
__SummonSpeed = "0";
|
||
}
|
||
if (__MoveBackSpeed == null)
|
||
{
|
||
__SummonSpeed = "0";
|
||
}
|
||
float num55;
|
||
if (float.TryParse(__SummonSpeed, NumberStyles.Any, CultureInfo.InvariantCulture, out num55))
|
||
{
|
||
this._SummonSpeed = num55;
|
||
}
|
||
else
|
||
{
|
||
Debug.LogWarning("Failed To Convert __MoveBackSpeed string: " + __SummonSpeed + " to float");
|
||
}
|
||
if (__NaturalArmor == null || __NaturalArmor == "")
|
||
{
|
||
__NaturalArmor = "0";
|
||
}
|
||
if (__NaturalArmor == null)
|
||
{
|
||
__NaturalArmor = "0";
|
||
}
|
||
float num56;
|
||
if (float.TryParse(__NaturalArmor, NumberStyles.Any, CultureInfo.InvariantCulture, out num56))
|
||
{
|
||
this._NaturalArmor = num56;
|
||
}
|
||
else
|
||
{
|
||
Debug.LogWarning("Failed To Convert __NaturalArmor string: " + __NaturalArmor + " to float");
|
||
}
|
||
if (__Stamina == null || __Stamina == "")
|
||
{
|
||
__Stamina = "0";
|
||
}
|
||
if (__Stamina == null)
|
||
{
|
||
__Stamina = "0";
|
||
}
|
||
float num57;
|
||
if (float.TryParse(__Stamina, NumberStyles.Any, CultureInfo.InvariantCulture, out num57))
|
||
{
|
||
this._Stamina = num57;
|
||
}
|
||
else
|
||
{
|
||
Debug.LogWarning("Failed To Convert __Stamina string: " + __Stamina + " to float");
|
||
}
|
||
if (__Sex == null || __Sex == "")
|
||
{
|
||
__Sex = "0";
|
||
}
|
||
float num58;
|
||
if (float.TryParse(__Sex, NumberStyles.Any, CultureInfo.InvariantCulture, out num58))
|
||
{
|
||
this._Sex = num58;
|
||
return;
|
||
}
|
||
Debug.LogWarning("Failed To Convert __Sex string: " + __Sex + " to float");
|
||
}
|
||
|
||
// Token: 0x040030C9 RID: 12489
|
||
public string _Name;
|
||
|
||
// Token: 0x040030CA RID: 12490
|
||
public string _DisplayName;
|
||
|
||
// Token: 0x040030CB RID: 12491
|
||
public string _Race;
|
||
|
||
// Token: 0x040030CC RID: 12492
|
||
public float _Sex;
|
||
|
||
// Token: 0x040030CD RID: 12493
|
||
public string _Model;
|
||
|
||
// Token: 0x040030CE RID: 12494
|
||
public string _ModelHead;
|
||
|
||
// Token: 0x040030CF RID: 12495
|
||
public string _SkinTexture;
|
||
|
||
// Token: 0x040030D0 RID: 12496
|
||
public string _ArmorTexture;
|
||
|
||
// Token: 0x040030D1 RID: 12497
|
||
public string _HairTexture;
|
||
|
||
// Token: 0x040030D2 RID: 12498
|
||
public int _SpecTexture;
|
||
|
||
// Token: 0x040030D3 RID: 12499
|
||
public string _ResurrectedModel;
|
||
|
||
// Token: 0x040030D4 RID: 12500
|
||
public string _Portrait;
|
||
|
||
// Token: 0x040030D5 RID: 12501
|
||
public string _PortraitLarge;
|
||
|
||
// Token: 0x040030D6 RID: 12502
|
||
public string _PortraitCombat;
|
||
|
||
// Token: 0x040030D7 RID: 12503
|
||
public int _XP;
|
||
|
||
// Token: 0x040030D8 RID: 12504
|
||
public int _Life;
|
||
|
||
// Token: 0x040030D9 RID: 12505
|
||
public int _Level;
|
||
|
||
// Token: 0x040030DA RID: 12506
|
||
public int _CombatLevel;
|
||
|
||
// Token: 0x040030DB RID: 12507
|
||
public int _Formation;
|
||
|
||
// Token: 0x040030DC RID: 12508
|
||
public int _MaxMP;
|
||
|
||
// Token: 0x040030DD RID: 12509
|
||
public int _Radius;
|
||
|
||
// Token: 0x040030DE RID: 12510
|
||
public float _Height;
|
||
|
||
// Token: 0x040030DF RID: 12511
|
||
public string _DialogueFile;
|
||
|
||
// Token: 0x040030E0 RID: 12512
|
||
public int _InitiateDialogue;
|
||
|
||
// Token: 0x040030E1 RID: 12513
|
||
public int _Weight;
|
||
|
||
// Token: 0x040030E2 RID: 12514
|
||
public float _Sight;
|
||
|
||
// Token: 0x040030E3 RID: 12515
|
||
public float _Hearing;
|
||
|
||
// Token: 0x040030E4 RID: 12516
|
||
public float _ActionTime;
|
||
|
||
// Token: 0x040030E5 RID: 12517
|
||
public float _MoveBackSpeed;
|
||
|
||
// Token: 0x040030E6 RID: 12518
|
||
public string _QuipID;
|
||
|
||
// Token: 0x040030E7 RID: 12519
|
||
public int _DeathID;
|
||
|
||
// Token: 0x040030E8 RID: 12520
|
||
public string _DeathType;
|
||
|
||
// Token: 0x040030E9 RID: 12521
|
||
public string _GenericName;
|
||
|
||
// Token: 0x040030EA RID: 12522
|
||
public string _Quest;
|
||
|
||
// Token: 0x040030EB RID: 12523
|
||
public string _QuestProofState;
|
||
|
||
// Token: 0x040030EC RID: 12524
|
||
public string _SetQuestStateOnDeath;
|
||
|
||
// Token: 0x040030ED RID: 12525
|
||
public string _Knowledge;
|
||
|
||
// Token: 0x040030EE RID: 12526
|
||
public int _VoiceID;
|
||
|
||
// Token: 0x040030EF RID: 12527
|
||
public string _StartingEffect;
|
||
|
||
// Token: 0x040030F0 RID: 12528
|
||
public List<string> _Abilities = new List<string>();
|
||
|
||
// Token: 0x040030F1 RID: 12529
|
||
public List<Vector4> _AbilitiesLevels = new List<Vector4>();
|
||
|
||
// Token: 0x040030F2 RID: 12530
|
||
public List<string> _AbilitiesNames = new List<string>();
|
||
|
||
// Token: 0x040030F3 RID: 12531
|
||
public List<int> _Items = new List<int>();
|
||
|
||
// Token: 0x040030F4 RID: 12532
|
||
public List<int> _SkillLvl = new List<int>();
|
||
|
||
// Token: 0x040030F5 RID: 12533
|
||
public int _SoundID;
|
||
|
||
// Token: 0x040030F6 RID: 12534
|
||
public int _AudioID;
|
||
|
||
// Token: 0x040030F7 RID: 12535
|
||
public float _MoveSpeed;
|
||
|
||
// Token: 0x040030F8 RID: 12536
|
||
public float _PortraitZ;
|
||
|
||
// Token: 0x040030F9 RID: 12537
|
||
public float _SummonSpeed;
|
||
|
||
// Token: 0x040030FA RID: 12538
|
||
public bool _CanJoinParty;
|
||
|
||
// Token: 0x040030FB RID: 12539
|
||
public bool _CanJump = true;
|
||
|
||
// Token: 0x040030FC RID: 12540
|
||
public int _Strength;
|
||
|
||
// Token: 0x040030FD RID: 12541
|
||
public int _Agility;
|
||
|
||
// Token: 0x040030FE RID: 12542
|
||
public int _Dexterity;
|
||
|
||
// Token: 0x040030FF RID: 12543
|
||
public int _Pagan;
|
||
|
||
// Token: 0x04003100 RID: 12544
|
||
public int _Sensory;
|
||
|
||
// Token: 0x04003101 RID: 12545
|
||
public int _Aura;
|
||
|
||
// Token: 0x04003102 RID: 12546
|
||
private string _Hand1;
|
||
|
||
// Token: 0x04003103 RID: 12547
|
||
private string _Hand2;
|
||
|
||
// Token: 0x04003104 RID: 12548
|
||
private string _Armor;
|
||
|
||
// Token: 0x04003105 RID: 12549
|
||
private string _Hand3;
|
||
|
||
// Token: 0x04003106 RID: 12550
|
||
private string _Hand4;
|
||
|
||
// Token: 0x04003107 RID: 12551
|
||
private string _AltHand1;
|
||
|
||
// Token: 0x04003108 RID: 12552
|
||
private string _AltHand2;
|
||
|
||
// Token: 0x04003109 RID: 12553
|
||
private string _AltHand3;
|
||
|
||
// Token: 0x0400310A RID: 12554
|
||
private string _AltHand4;
|
||
|
||
// Token: 0x0400310B RID: 12555
|
||
private string Trinket;
|
||
|
||
// Token: 0x0400310C RID: 12556
|
||
private string _Circlet;
|
||
|
||
// Token: 0x0400310D RID: 12557
|
||
private string _Cloak;
|
||
|
||
// Token: 0x0400310E RID: 12558
|
||
private string _Necklace;
|
||
|
||
// Token: 0x0400310F RID: 12559
|
||
private string _Ring1;
|
||
|
||
// Token: 0x04003110 RID: 12560
|
||
private string _Ring2;
|
||
|
||
// Token: 0x04003111 RID: 12561
|
||
private string _Ring3;
|
||
|
||
// Token: 0x04003112 RID: 12562
|
||
private string _Earrings;
|
||
|
||
// Token: 0x04003113 RID: 12563
|
||
private string _Ammo1;
|
||
|
||
// Token: 0x04003114 RID: 12564
|
||
private string _Ammo2;
|
||
|
||
// Token: 0x04003115 RID: 12565
|
||
private string _Ammo3;
|
||
|
||
// Token: 0x04003116 RID: 12566
|
||
private string _Trinket;
|
||
|
||
// Token: 0x04003117 RID: 12567
|
||
private string[] rawlines;
|
||
|
||
// Token: 0x04003118 RID: 12568
|
||
public string _AnimationPrefix;
|
||
|
||
// Token: 0x04003119 RID: 12569
|
||
public string _UnarmedAttackSound;
|
||
|
||
// Token: 0x0400311A RID: 12570
|
||
public string _UnarmedImpactSound;
|
||
|
||
// Token: 0x0400311B RID: 12571
|
||
public bool _HasEnemies;
|
||
|
||
// Token: 0x0400311C RID: 12572
|
||
public uint _Allegiance;
|
||
|
||
// Token: 0x0400311D RID: 12573
|
||
public List<uint> _Enemies = new List<uint>();
|
||
|
||
// Token: 0x0400311E RID: 12574
|
||
public bool _HasRootMotionTurn;
|
||
|
||
// Token: 0x0400311F RID: 12575
|
||
public bool _AlwaysRootMotion;
|
||
|
||
// Token: 0x04003120 RID: 12576
|
||
public bool _RotateToSlope;
|
||
|
||
// Token: 0x04003121 RID: 12577
|
||
public bool _NeverLeaveMap;
|
||
|
||
// Token: 0x04003122 RID: 12578
|
||
public bool _Flying;
|
||
|
||
// Token: 0x04003123 RID: 12579
|
||
public float _NaturalArmor;
|
||
|
||
// Token: 0x04003124 RID: 12580
|
||
public float _Stamina;
|
||
|
||
// Token: 0x04003125 RID: 12581
|
||
public float _PinBreak;
|
||
|
||
// Token: 0x04003126 RID: 12582
|
||
public string _CustomAI;
|
||
|
||
// Token: 0x04003127 RID: 12583
|
||
public string _EveryAttackAI;
|
||
|
||
// Token: 0x04003128 RID: 12584
|
||
public string _NonCombatAI;
|
||
|
||
// Token: 0x04003129 RID: 12585
|
||
public string _AttacksWith;
|
||
|
||
// Token: 0x0400312A RID: 12586
|
||
public bool _CanJumpEvade;
|
||
|
||
// Token: 0x0400312B RID: 12587
|
||
public bool _CanAggressionGroup;
|
||
|
||
// Token: 0x0400312C RID: 12588
|
||
public bool _CanSecretGroup;
|
||
|
||
// Token: 0x0400312D RID: 12589
|
||
public bool _CanRecoverGroup;
|
||
|
||
// Token: 0x0400312E RID: 12590
|
||
public bool _NeedsDefending;
|
||
|
||
// Token: 0x0400312F RID: 12591
|
||
public bool _HasGroupAnims;
|
||
|
||
// Token: 0x02000271 RID: 625
|
||
public enum faction
|
||
{
|
||
// Token: 0x040034CC RID: 13516
|
||
None,
|
||
// Token: 0x040034CD RID: 13517
|
||
Pavura,
|
||
// Token: 0x040034CE RID: 13518
|
||
Fish,
|
||
// Token: 0x040034CF RID: 13519
|
||
Forest,
|
||
// Token: 0x040034D0 RID: 13520
|
||
Shroom,
|
||
// Token: 0x040034D1 RID: 13521
|
||
Spawn,
|
||
// Token: 0x040034D2 RID: 13522
|
||
Commoner,
|
||
// Token: 0x040034D3 RID: 13523
|
||
Robber,
|
||
// Token: 0x040034D4 RID: 13524
|
||
Resurrected,
|
||
// Token: 0x040034D5 RID: 13525
|
||
Dryad,
|
||
// Token: 0x040034D6 RID: 13526
|
||
HouseGuards,
|
||
// Token: 0x040034D7 RID: 13527
|
||
PrivateGuards
|
||
}
|
||
}
|
||
|
||
// Token: 0x020001E2 RID: 482
|
||
[Serializable]
|
||
public class Inventory
|
||
{
|
||
// Token: 0x06001AF1 RID: 6897 RVA: 0x001E2114 File Offset: 0x001E0314
|
||
public Inventory(string __StringID, string __Name, string __DisplayName, string __Description, string __DmgMin, string __DmgMax, string __MeleeRangeStart, string __MeleeRangeEnd, string __WpnSpeed, string __MultiTargetMod, string __DurabilityReductionBonus, string __StaminaReduction, string __HitTimeIncrease, string __EvasionReduction, string __DurabilityLoss, string __DurabilityMax, string __AC, string __MagicAC, string __MagicBonus, string __Weight, string __SellPrice, string __BuyPrice, string __NeedFullStack, string __NeverSell, string __RefillsAtMerchant, string __SocketMax, string __SocketA, string __SocketB, string __Contraband, string __Stackable, string __StackSize, string __MaxStackSize, string __Ammo1, string __Ammo2, string __X_, string __UseFill, string __Effect, string __Level, string __Life, string __SpellChanneler, string __TwoHanded, string __NotePath, string __Sound, string __ReloadSound, string __EquipSlotID, string __RightClickAction, string __Tag, string __WeaponType, string __MainSkill, string __UIModel, string __HudModel, string __GroundModel, string __CharacterModel, string __ArmorID, string __SetVariable, string __SetQuest, string __SetQuestOnDrop, string __SetQuestState, string __CharacterAnimation, string __SizeX, string __SizeY, int id, Library library)
|
||
{
|
||
this._ID = id;
|
||
if (__SizeX == null)
|
||
{
|
||
__SizeX = "1";
|
||
}
|
||
if (__SizeY == null)
|
||
{
|
||
__SizeY = "1";
|
||
}
|
||
if (__Name == null)
|
||
{
|
||
__Name = "";
|
||
}
|
||
this._Name = __Name.Trim();
|
||
char c = '’';
|
||
if (__DisplayName == null)
|
||
{
|
||
__DisplayName = "";
|
||
}
|
||
string text = Regex.Replace(__DisplayName, c.ToString(), "'");
|
||
this._DisplayName = text.Trim();
|
||
if (__Description == null)
|
||
{
|
||
__Description = "";
|
||
}
|
||
string text2 = Regex.Replace(__Description, c.ToString(), "'");
|
||
this._Description = text2.Trim();
|
||
if (__Tag == null)
|
||
{
|
||
__Tag = "";
|
||
}
|
||
this._Tag = __Tag.Trim();
|
||
if (__WeaponType == null)
|
||
{
|
||
__WeaponType = "";
|
||
}
|
||
this._WeaponType = __WeaponType.Trim();
|
||
if (__MainSkill == null)
|
||
{
|
||
__MainSkill = "";
|
||
}
|
||
this._MainSkill = __MainSkill.Trim();
|
||
if (__SetVariable == null)
|
||
{
|
||
__SetVariable = "";
|
||
}
|
||
this._SetVariable = __SetVariable.Trim();
|
||
if (__SetQuest == null)
|
||
{
|
||
__SetQuest = "";
|
||
}
|
||
this._SetQuest = __SetQuest.Trim();
|
||
if (__SetQuestOnDrop == null)
|
||
{
|
||
__SetQuestOnDrop = "";
|
||
}
|
||
this._SetQuestOnDrop = __SetQuestOnDrop.Trim();
|
||
if (__SetQuestState == null)
|
||
{
|
||
__SetQuestState = "";
|
||
}
|
||
this._SetQuestState = __SetQuestState.Trim();
|
||
if (__UIModel == null)
|
||
{
|
||
__UIModel = "";
|
||
}
|
||
this._UIModel = __UIModel.Trim() + "_square";
|
||
this._UIModelFull = __UIModel.Trim() + "_pack";
|
||
if (__CharacterModel == null)
|
||
{
|
||
__CharacterModel = "";
|
||
}
|
||
this._CharacterModel = __CharacterModel.Trim();
|
||
if (__GroundModel == null)
|
||
{
|
||
__GroundModel = "";
|
||
}
|
||
this._GroundModel = __GroundModel.Trim();
|
||
if (__CharacterAnimation == null)
|
||
{
|
||
__CharacterAnimation = "";
|
||
}
|
||
this._CharacterAnimation = __CharacterAnimation.Trim();
|
||
if (__UseFill == null)
|
||
{
|
||
__UseFill = "";
|
||
}
|
||
this._UseFill = __UseFill.Trim();
|
||
if (this._UseFill != "")
|
||
{
|
||
this._HasUseFill = true;
|
||
}
|
||
else
|
||
{
|
||
this._HasUseFill = false;
|
||
}
|
||
if (__HudModel == null)
|
||
{
|
||
__HudModel = "";
|
||
}
|
||
this._HudModel = __HudModel.Trim();
|
||
int num;
|
||
if (int.TryParse(__ArmorID, NumberStyles.Any, CultureInfo.InvariantCulture, out num))
|
||
{
|
||
this._ArmorID = num;
|
||
}
|
||
int num2;
|
||
if (int.TryParse(__SizeX, NumberStyles.Any, CultureInfo.InvariantCulture, out num2))
|
||
{
|
||
this._SizeX = num2;
|
||
}
|
||
if (__Life == null || __Life == "")
|
||
{
|
||
__Life = "0";
|
||
}
|
||
int num3;
|
||
if (int.TryParse(__Life, NumberStyles.Any, CultureInfo.InvariantCulture, out num3))
|
||
{
|
||
this._Life = num3;
|
||
}
|
||
int num4;
|
||
if (int.TryParse(__SizeY, NumberStyles.Any, CultureInfo.InvariantCulture, out num4))
|
||
{
|
||
this._SizeY = num4;
|
||
}
|
||
int num5;
|
||
if (int.TryParse(__DurabilityLoss, NumberStyles.Any, CultureInfo.InvariantCulture, out num5))
|
||
{
|
||
this._DurabilityLoss = num5;
|
||
}
|
||
int num6;
|
||
if (int.TryParse(__DurabilityMax, NumberStyles.Any, CultureInfo.InvariantCulture, out num6))
|
||
{
|
||
this._DurabilityMax = num6;
|
||
}
|
||
if (__RightClickAction == null)
|
||
{
|
||
__RightClickAction = "";
|
||
}
|
||
this._RightClickAction = __RightClickAction.Trim();
|
||
if (__MultiTargetMod == null)
|
||
{
|
||
__MultiTargetMod = "0";
|
||
}
|
||
float num7;
|
||
if (float.TryParse(__MultiTargetMod, NumberStyles.Any, CultureInfo.InvariantCulture, out num7))
|
||
{
|
||
this._MultiTargetMod = num7;
|
||
}
|
||
if (__MeleeRangeStart == null)
|
||
{
|
||
__MeleeRangeStart = "0";
|
||
}
|
||
float num8;
|
||
if (float.TryParse(__MeleeRangeStart, NumberStyles.Any, CultureInfo.InvariantCulture, out num8))
|
||
{
|
||
this._MeleeRangeStart = num8;
|
||
}
|
||
if (__MeleeRangeEnd == null)
|
||
{
|
||
__MeleeRangeEnd = "0";
|
||
}
|
||
float num9;
|
||
if (float.TryParse(__MeleeRangeEnd, NumberStyles.Any, CultureInfo.InvariantCulture, out num9))
|
||
{
|
||
this._MeleeRangeEnd = num9;
|
||
}
|
||
if (__EvasionReduction == null)
|
||
{
|
||
__EvasionReduction = "0";
|
||
}
|
||
float num10;
|
||
if (float.TryParse(__EvasionReduction, NumberStyles.Any, CultureInfo.InvariantCulture, out num10))
|
||
{
|
||
this._EvasionReduction = num10;
|
||
}
|
||
if (__DurabilityReductionBonus == null)
|
||
{
|
||
__DurabilityReductionBonus = "0";
|
||
}
|
||
float num11;
|
||
if (float.TryParse(__DurabilityReductionBonus, NumberStyles.Any, CultureInfo.InvariantCulture, out num11))
|
||
{
|
||
this._DurabilityReductionBonus = num11;
|
||
}
|
||
if (__HitTimeIncrease == null)
|
||
{
|
||
__HitTimeIncrease = "0";
|
||
}
|
||
float num12;
|
||
if (float.TryParse(__HitTimeIncrease, NumberStyles.Any, CultureInfo.InvariantCulture, out num12))
|
||
{
|
||
this._HitTimeIncrease = num12;
|
||
}
|
||
if (__StaminaReduction == null)
|
||
{
|
||
__StaminaReduction = "0";
|
||
}
|
||
float num13;
|
||
if (float.TryParse(__StaminaReduction, NumberStyles.Any, CultureInfo.InvariantCulture, out num13))
|
||
{
|
||
this._StaminaReduction = num13;
|
||
}
|
||
if (__Ammo1 == null)
|
||
{
|
||
__Ammo1 = "";
|
||
}
|
||
this._Ammo1 = __Ammo1.Trim();
|
||
if (__Ammo2 == null)
|
||
{
|
||
__Ammo2 = "";
|
||
}
|
||
this._Ammo2 = __Ammo2.Trim();
|
||
if (__WpnSpeed == null)
|
||
{
|
||
__WpnSpeed = "0";
|
||
}
|
||
float num14;
|
||
if (float.TryParse(__WpnSpeed, NumberStyles.Any, CultureInfo.InvariantCulture, out num14))
|
||
{
|
||
this._WpnSpeed = num14;
|
||
}
|
||
if (__AC == null)
|
||
{
|
||
__AC = "0";
|
||
}
|
||
float num15;
|
||
if (float.TryParse(__AC, NumberStyles.Any, CultureInfo.InvariantCulture, out num15))
|
||
{
|
||
this._AC = num15;
|
||
}
|
||
if (__MagicAC == null)
|
||
{
|
||
__MagicAC = "0";
|
||
}
|
||
float num16;
|
||
if (float.TryParse(__MagicAC, NumberStyles.Any, CultureInfo.InvariantCulture, out num16))
|
||
{
|
||
this._MagicAC = num16;
|
||
}
|
||
if (__MagicBonus == null)
|
||
{
|
||
__MagicBonus = "0";
|
||
}
|
||
float num17;
|
||
if (float.TryParse(__MagicBonus, NumberStyles.Any, CultureInfo.InvariantCulture, out num17))
|
||
{
|
||
this._MagicBonus = num17;
|
||
}
|
||
if (__DmgMin == null)
|
||
{
|
||
__DmgMin = "0";
|
||
}
|
||
int num18;
|
||
if (int.TryParse(__DmgMin, NumberStyles.Any, CultureInfo.InvariantCulture, out num18))
|
||
{
|
||
this._DmgMin = num18;
|
||
}
|
||
if (__DmgMax == null)
|
||
{
|
||
__DmgMax = "0";
|
||
}
|
||
int num19;
|
||
if (int.TryParse(__DmgMax, NumberStyles.Any, CultureInfo.InvariantCulture, out num19))
|
||
{
|
||
this._DmgMax = num19;
|
||
}
|
||
if (__SocketMax == null)
|
||
{
|
||
__SocketMax = "0";
|
||
}
|
||
int num20;
|
||
if (int.TryParse(__SocketMax, NumberStyles.Any, CultureInfo.InvariantCulture, out num20))
|
||
{
|
||
this._SocketMax = num20;
|
||
}
|
||
Mathf.Clamp(this._SocketMax, 0, 1);
|
||
if (__Contraband == null)
|
||
{
|
||
__Contraband = "0";
|
||
}
|
||
int num21;
|
||
if (int.TryParse(__Contraband, NumberStyles.Any, CultureInfo.InvariantCulture, out num21))
|
||
{
|
||
this._Contraband = num21;
|
||
}
|
||
if (__SocketA == null)
|
||
{
|
||
__SocketA = "0";
|
||
}
|
||
int num22;
|
||
if (int.TryParse(__SocketA, NumberStyles.Any, CultureInfo.InvariantCulture, out num22))
|
||
{
|
||
this._SocketA = num22;
|
||
}
|
||
if (__SocketB == null)
|
||
{
|
||
__SocketB = "0";
|
||
}
|
||
int num23;
|
||
if (int.TryParse(__SocketB, NumberStyles.Any, CultureInfo.InvariantCulture, out num23))
|
||
{
|
||
this._SocketB = num23;
|
||
}
|
||
if (__Effect == null)
|
||
{
|
||
__Effect = "";
|
||
}
|
||
this._Effect = __Effect.Trim();
|
||
if (__Level == null || __Level == "")
|
||
{
|
||
__Level = "0";
|
||
}
|
||
float num24;
|
||
if (float.TryParse(__Level, NumberStyles.Any, CultureInfo.InvariantCulture, out num24))
|
||
{
|
||
this._Level = num24;
|
||
}
|
||
if (__NeverSell == null || __NeverSell == "")
|
||
{
|
||
__NeverSell = "FALSE";
|
||
}
|
||
bool flag;
|
||
if (bool.TryParse(__NeverSell, out flag))
|
||
{
|
||
this._NeverSell = flag;
|
||
}
|
||
if (__NeedFullStack == null || __NeedFullStack == "")
|
||
{
|
||
__NeedFullStack = "FALSE";
|
||
}
|
||
bool flag2;
|
||
if (bool.TryParse(__NeedFullStack, out flag2))
|
||
{
|
||
this._NeedFullStack = flag2;
|
||
}
|
||
if (__RefillsAtMerchant == null || __RefillsAtMerchant == "")
|
||
{
|
||
__RefillsAtMerchant = "FALSE";
|
||
}
|
||
bool flag3;
|
||
if (bool.TryParse(__RefillsAtMerchant, out flag3))
|
||
{
|
||
this._RefillsAtMerchant = flag3;
|
||
}
|
||
if (__TwoHanded == null || __TwoHanded == "")
|
||
{
|
||
__TwoHanded = "FALSE";
|
||
}
|
||
bool flag4;
|
||
if (bool.TryParse(__TwoHanded, out flag4))
|
||
{
|
||
this._TwoHanded = flag4;
|
||
}
|
||
if (__SpellChanneler == null || __SpellChanneler == "")
|
||
{
|
||
__SpellChanneler = "FALSE";
|
||
}
|
||
bool flag5;
|
||
if (bool.TryParse(__SpellChanneler, out flag5))
|
||
{
|
||
this._SpellChanneler = flag5;
|
||
}
|
||
if (__Weight == null)
|
||
{
|
||
__Weight = "0";
|
||
}
|
||
float num25;
|
||
if (float.TryParse(__Weight, NumberStyles.Any, CultureInfo.InvariantCulture, out num25))
|
||
{
|
||
this._Weight = num25;
|
||
}
|
||
if (__SellPrice == null)
|
||
{
|
||
__SellPrice = "0";
|
||
}
|
||
int num26;
|
||
if (int.TryParse(__SellPrice, NumberStyles.Any, CultureInfo.InvariantCulture, out num26))
|
||
{
|
||
this._SellPrice = num26;
|
||
}
|
||
if (__BuyPrice == null)
|
||
{
|
||
__BuyPrice = "0";
|
||
}
|
||
int num27;
|
||
if (int.TryParse(__BuyPrice, NumberStyles.Any, CultureInfo.InvariantCulture, out num27))
|
||
{
|
||
this._BuyPrice = num27;
|
||
}
|
||
if (__Stackable == null)
|
||
{
|
||
__Stackable = "FALSE";
|
||
}
|
||
bool flag6;
|
||
if (bool.TryParse(__Stackable, out flag6))
|
||
{
|
||
this._Stackable = flag6;
|
||
}
|
||
if (__StackSize == null)
|
||
{
|
||
__StackSize = "0";
|
||
}
|
||
int num28;
|
||
if (int.TryParse(__StackSize, NumberStyles.Any, CultureInfo.InvariantCulture, out num28))
|
||
{
|
||
this._StackSize = num28;
|
||
}
|
||
if (__MaxStackSize == null)
|
||
{
|
||
__MaxStackSize = "0";
|
||
}
|
||
int num29;
|
||
if (int.TryParse(__MaxStackSize, NumberStyles.Any, CultureInfo.InvariantCulture, out num29))
|
||
{
|
||
this._MaxStackSize = num29;
|
||
}
|
||
if (__EquipSlotID == null || __EquipSlotID == "")
|
||
{
|
||
__EquipSlotID = "0";
|
||
}
|
||
int num30;
|
||
if (int.TryParse(__EquipSlotID, NumberStyles.Any, CultureInfo.InvariantCulture, out num30))
|
||
{
|
||
this._EquipSlotID = num30;
|
||
}
|
||
if (__Sound == null)
|
||
{
|
||
__Sound = "";
|
||
}
|
||
this._Sound = __Sound.Trim();
|
||
if (__ReloadSound == null)
|
||
{
|
||
__ReloadSound = "";
|
||
}
|
||
this._ReloadSound = __ReloadSound.Trim();
|
||
if (__NotePath == null)
|
||
{
|
||
__NotePath = "";
|
||
}
|
||
this._NotePath = __NotePath.Trim();
|
||
}
|
||
|
||
// Token: 0x04003130 RID: 12592
|
||
public string _Name;
|
||
|
||
// Token: 0x04003131 RID: 12593
|
||
public int _ID;
|
||
|
||
// Token: 0x04003132 RID: 12594
|
||
public string _DisplayName;
|
||
|
||
// Token: 0x04003133 RID: 12595
|
||
public string _Description;
|
||
|
||
// Token: 0x04003134 RID: 12596
|
||
public string _Tag;
|
||
|
||
// Token: 0x04003135 RID: 12597
|
||
public string _WeaponType;
|
||
|
||
// Token: 0x04003136 RID: 12598
|
||
public string _MainSkill;
|
||
|
||
// Token: 0x04003137 RID: 12599
|
||
public string _UIModel;
|
||
|
||
// Token: 0x04003138 RID: 12600
|
||
public string _UIModelFull;
|
||
|
||
// Token: 0x04003139 RID: 12601
|
||
public string _HudModel;
|
||
|
||
// Token: 0x0400313A RID: 12602
|
||
public string _CharacterModel;
|
||
|
||
// Token: 0x0400313B RID: 12603
|
||
public string _GroundModel;
|
||
|
||
// Token: 0x0400313C RID: 12604
|
||
public string _CharacterAnimation;
|
||
|
||
// Token: 0x0400313D RID: 12605
|
||
public int _DmgDice;
|
||
|
||
// Token: 0x0400313E RID: 12606
|
||
public int _DmgDiceSides;
|
||
|
||
// Token: 0x0400313F RID: 12607
|
||
public int _ArmorID;
|
||
|
||
// Token: 0x04003140 RID: 12608
|
||
public bool _RefillsAtMerchant;
|
||
|
||
// Token: 0x04003141 RID: 12609
|
||
public int _SizeX;
|
||
|
||
// Token: 0x04003142 RID: 12610
|
||
public int _SizeY;
|
||
|
||
// Token: 0x04003143 RID: 12611
|
||
public string _RightClickAction;
|
||
|
||
// Token: 0x04003144 RID: 12612
|
||
public float _MeleeRangeStart;
|
||
|
||
// Token: 0x04003145 RID: 12613
|
||
public float _MeleeRangeEnd;
|
||
|
||
// Token: 0x04003146 RID: 12614
|
||
public string _Ammo1;
|
||
|
||
// Token: 0x04003147 RID: 12615
|
||
public string _Ammo2;
|
||
|
||
// Token: 0x04003148 RID: 12616
|
||
public int _Life;
|
||
|
||
// Token: 0x04003149 RID: 12617
|
||
public float _WpnSpeed;
|
||
|
||
// Token: 0x0400314A RID: 12618
|
||
public float _CastSpeed;
|
||
|
||
// Token: 0x0400314B RID: 12619
|
||
public float _AC;
|
||
|
||
// Token: 0x0400314C RID: 12620
|
||
public float _MagicAC;
|
||
|
||
// Token: 0x0400314D RID: 12621
|
||
public float _MagicBonus;
|
||
|
||
// Token: 0x0400314E RID: 12622
|
||
public int _DmgMin;
|
||
|
||
// Token: 0x0400314F RID: 12623
|
||
public int _DmgMax;
|
||
|
||
// Token: 0x04003150 RID: 12624
|
||
public int _SocketMax;
|
||
|
||
// Token: 0x04003151 RID: 12625
|
||
public int _Contraband;
|
||
|
||
// Token: 0x04003152 RID: 12626
|
||
public string _Effect;
|
||
|
||
// Token: 0x04003153 RID: 12627
|
||
public float _Level;
|
||
|
||
// Token: 0x04003154 RID: 12628
|
||
public bool _TwoHanded;
|
||
|
||
// Token: 0x04003155 RID: 12629
|
||
public float _Weight;
|
||
|
||
// Token: 0x04003156 RID: 12630
|
||
public int _SellPrice;
|
||
|
||
// Token: 0x04003157 RID: 12631
|
||
public int _BuyPrice;
|
||
|
||
// Token: 0x04003158 RID: 12632
|
||
public bool _Stackable;
|
||
|
||
// Token: 0x04003159 RID: 12633
|
||
public bool _NeverSell;
|
||
|
||
// Token: 0x0400315A RID: 12634
|
||
public int _StackSize;
|
||
|
||
// Token: 0x0400315B RID: 12635
|
||
public int _MaxStackSize;
|
||
|
||
// Token: 0x0400315C RID: 12636
|
||
public int _EquipSlotID;
|
||
|
||
// Token: 0x0400315D RID: 12637
|
||
public string _Sound;
|
||
|
||
// Token: 0x0400315E RID: 12638
|
||
public string _ReloadSound;
|
||
|
||
// Token: 0x0400315F RID: 12639
|
||
public string _NotePath;
|
||
|
||
// Token: 0x04003160 RID: 12640
|
||
public int _SocketA;
|
||
|
||
// Token: 0x04003161 RID: 12641
|
||
public int _SocketB;
|
||
|
||
// Token: 0x04003162 RID: 12642
|
||
public int _DurabilityLoss;
|
||
|
||
// Token: 0x04003163 RID: 12643
|
||
public int _DurabilityMax;
|
||
|
||
// Token: 0x04003164 RID: 12644
|
||
public bool _SpellChanneler;
|
||
|
||
// Token: 0x04003165 RID: 12645
|
||
public string _UseFill;
|
||
|
||
// Token: 0x04003166 RID: 12646
|
||
public string _SetVariable;
|
||
|
||
// Token: 0x04003167 RID: 12647
|
||
public string _SetQuest;
|
||
|
||
// Token: 0x04003168 RID: 12648
|
||
public string _SetQuestOnDrop;
|
||
|
||
// Token: 0x04003169 RID: 12649
|
||
public string _SetQuestState;
|
||
|
||
// Token: 0x0400316A RID: 12650
|
||
public float _MultiTargetMod;
|
||
|
||
// Token: 0x0400316B RID: 12651
|
||
public float _EvasionReduction;
|
||
|
||
// Token: 0x0400316C RID: 12652
|
||
public float _DurabilityReductionBonus;
|
||
|
||
// Token: 0x0400316D RID: 12653
|
||
public float _StaminaReduction;
|
||
|
||
// Token: 0x0400316E RID: 12654
|
||
public float _HitTimeIncrease;
|
||
|
||
// Token: 0x0400316F RID: 12655
|
||
public bool _NeedFullStack;
|
||
|
||
// Token: 0x04003170 RID: 12656
|
||
public bool _HasUseFill;
|
||
}
|
||
|
||
// Token: 0x020001E3 RID: 483
|
||
[Serializable]
|
||
public class Descriptions
|
||
{
|
||
// Token: 0x06001AF2 RID: 6898 RVA: 0x001E2984 File Offset: 0x001E0B84
|
||
public Descriptions(string __ID, string __Name, string __Description)
|
||
{
|
||
if (__ID == null)
|
||
{
|
||
__ID = "";
|
||
}
|
||
if (__Name == null)
|
||
{
|
||
__Name = "";
|
||
}
|
||
if (__Description == null)
|
||
{
|
||
__Description = "";
|
||
}
|
||
this._ID = __ID.Trim();
|
||
this._Name = __Name.Trim();
|
||
this._Description = __Description.Trim();
|
||
}
|
||
|
||
// Token: 0x04003171 RID: 12657
|
||
public string _ID;
|
||
|
||
// Token: 0x04003172 RID: 12658
|
||
public string _Name;
|
||
|
||
// Token: 0x04003173 RID: 12659
|
||
public string _Description;
|
||
}
|
||
|
||
// Token: 0x020001E4 RID: 484
|
||
[Serializable]
|
||
public class Effects
|
||
{
|
||
// Token: 0x06001AF3 RID: 6899 RVA: 0x001E29DC File Offset: 0x001E0BDC
|
||
public Effects(string __Name, string __DisplayName, string __Level, string __IsSong, string __IsIntercession, string __OverallTime, string __RemoveOnHit, string __TileRadius, string __CanStack, string __TerrainReq, string __WhileOnTile, string __IsBuff, string __Permanent, string __BalanceCheck, string __StatToResist, string __Script, string __ShowInStatus, string __Sound, string __FX, string __FXType, string __FXOffset, string __NoIcon, string _x, string __Knockback, string __Stun, string __StunTime, string __AddActionTime, string __Confuse, string __MoveSpeed, string __StuckInPlace, string __Flee, string __RemoveAilments, string __Silent, string __Invisible, string __Deaf, string __Blind, string __Charming, string __Artistry, string __NimbleFingers, string __ActionTime, string __ReduceStun, string __StrFlat, string __StrDC, string __StrDS, string __AglFlat, string __AglDC, string __AglDS, string __AurFlat, string __AurDC, string __AurDS, string __PagFlat, string __PagDC, string __PagDS, string __DexFlat, string __DexDC, string __DexDS, string __SenFlat, string __SenDC, string __SenDS, string __MusicResist, string __DmgFlat, string __DmgDC, string __DmgDS, string __MPotencyFlat, string __MPotencyDC, string __MPotencyDS, string __HitFlat, string __HitDC, string __HitDS, string __MHitFlat, string __MHitDC, string __MHitDS, string __EvadeFlat, string __EvadeDC, string __EvadeDS, string __BlockFlat, string __BlockDC, string __BlockDS, string __PaganResistVines, string __PaganResistFauna, string __PaganResistSpores, string __RallySpeed, string __RallyFill, string __Spirit, string __SpiritAbsorption, string __Balance, string __InteractiveType, string __OverTime, string __AddStamina, string __StaminaSpeed, string __StaminaReduceMult, string __HealthMax, string __Health, string __ReduceEqArmor, string __ReduceDurArmor)
|
||
{
|
||
if (__Name == null)
|
||
{
|
||
__Name = "";
|
||
}
|
||
this._Name = __Name.Trim();
|
||
if (__Script == null)
|
||
{
|
||
__Script = "";
|
||
}
|
||
this._Script = __Script.Trim();
|
||
if (__DisplayName == null)
|
||
{
|
||
__DisplayName = "";
|
||
}
|
||
this._DisplayName = __DisplayName.Trim();
|
||
if (__Sound == null)
|
||
{
|
||
__Sound = "";
|
||
}
|
||
this._Sound = __Sound.Trim();
|
||
if (__FXType == null)
|
||
{
|
||
__FXType = "";
|
||
}
|
||
this._FXType = __FXType.Trim();
|
||
if (__TerrainReq == null)
|
||
{
|
||
__TerrainReq = "";
|
||
}
|
||
this._TerrainReq = __TerrainReq.Trim();
|
||
if (__StatToResist == null)
|
||
{
|
||
__StatToResist = "";
|
||
}
|
||
this._StatToResist = __StatToResist.Trim();
|
||
if (__InteractiveType == null)
|
||
{
|
||
__InteractiveType = "";
|
||
}
|
||
this._InteractiveType = __InteractiveType.Trim();
|
||
if (__FX == null || __FX == "")
|
||
{
|
||
__FX = "0";
|
||
}
|
||
int num;
|
||
if (int.TryParse(__FX, NumberStyles.Any, CultureInfo.InvariantCulture, out num))
|
||
{
|
||
this._FX = num;
|
||
}
|
||
if (__Level == null || __Level == "")
|
||
{
|
||
__Level = "0";
|
||
}
|
||
int num2;
|
||
if (int.TryParse(__Level, NumberStyles.Any, CultureInfo.InvariantCulture, out num2))
|
||
{
|
||
this._Level = num2;
|
||
}
|
||
if (__BalanceCheck == null || __BalanceCheck == "")
|
||
{
|
||
__BalanceCheck = "0";
|
||
}
|
||
int num3;
|
||
if (int.TryParse(__BalanceCheck, NumberStyles.Any, CultureInfo.InvariantCulture, out num3))
|
||
{
|
||
this._BalanceCheck = num3;
|
||
}
|
||
if (__ReduceEqArmor == null || __ReduceEqArmor == "")
|
||
{
|
||
__ReduceEqArmor = "0";
|
||
}
|
||
int num4;
|
||
if (int.TryParse(__ReduceEqArmor, NumberStyles.Any, CultureInfo.InvariantCulture, out num4))
|
||
{
|
||
this._ReduceEqArmor = (float)num4;
|
||
}
|
||
if (__ReduceDurArmor == null || __ReduceDurArmor == "")
|
||
{
|
||
__ReduceDurArmor = "0";
|
||
}
|
||
float num5;
|
||
if (float.TryParse(__ReduceDurArmor, NumberStyles.Any, CultureInfo.InvariantCulture, out num5))
|
||
{
|
||
this._ReduceArmor = num5;
|
||
}
|
||
if (__OverallTime == null || __OverallTime == "")
|
||
{
|
||
__OverallTime = "0";
|
||
}
|
||
float num6;
|
||
if (float.TryParse(__OverallTime, NumberStyles.Any, CultureInfo.InvariantCulture, out num6))
|
||
{
|
||
this._OverallTime = num6;
|
||
}
|
||
if (__ReduceStun == null || __ReduceStun == "")
|
||
{
|
||
__ReduceStun = "0";
|
||
}
|
||
float num7;
|
||
if (float.TryParse(__ReduceStun, NumberStyles.Any, CultureInfo.InvariantCulture, out num7))
|
||
{
|
||
this._ReduceStun = num7;
|
||
}
|
||
if (__PaganResistVines == null || __PaganResistVines == "")
|
||
{
|
||
__PaganResistVines = "0";
|
||
}
|
||
float num8;
|
||
if (float.TryParse(__PaganResistVines, NumberStyles.Any, CultureInfo.InvariantCulture, out num8))
|
||
{
|
||
this._PaganResistVines = num8;
|
||
}
|
||
if (__PaganResistFauna == null || __PaganResistFauna == "")
|
||
{
|
||
__PaganResistFauna = "0";
|
||
}
|
||
float num9;
|
||
if (float.TryParse(__PaganResistFauna, NumberStyles.Any, CultureInfo.InvariantCulture, out num9))
|
||
{
|
||
this._PaganResistFauna = num9;
|
||
}
|
||
if (__MusicResist == null || __MusicResist == "")
|
||
{
|
||
__MusicResist = "0";
|
||
}
|
||
float num10;
|
||
if (float.TryParse(__MusicResist, NumberStyles.Any, CultureInfo.InvariantCulture, out num10))
|
||
{
|
||
this._MusicResistance = num10;
|
||
}
|
||
if (__PaganResistSpores == null || __PaganResistSpores == "")
|
||
{
|
||
__PaganResistSpores = "0";
|
||
}
|
||
float num11;
|
||
if (float.TryParse(__PaganResistSpores, NumberStyles.Any, CultureInfo.InvariantCulture, out num11))
|
||
{
|
||
this._PaganResistSpores = num11;
|
||
}
|
||
if (__AddStamina == null || __AddStamina == "")
|
||
{
|
||
__AddStamina = "0";
|
||
}
|
||
float num12;
|
||
if (float.TryParse(__AddStamina, NumberStyles.Any, CultureInfo.InvariantCulture, out num12))
|
||
{
|
||
this._AddStamina = num12;
|
||
}
|
||
if (__Charming == null || __Charming == "")
|
||
{
|
||
__Charming = "0";
|
||
}
|
||
int num13;
|
||
if (int.TryParse(__Charming, NumberStyles.Any, CultureInfo.InvariantCulture, out num13))
|
||
{
|
||
this._Charming = (float)num13;
|
||
}
|
||
if (__Artistry == null || __Artistry == "")
|
||
{
|
||
__Artistry = "0";
|
||
}
|
||
int num14;
|
||
if (int.TryParse(__Artistry, NumberStyles.Any, CultureInfo.InvariantCulture, out num14))
|
||
{
|
||
this._Artistry = (float)num14;
|
||
}
|
||
if (__NimbleFingers == null || __NimbleFingers == "")
|
||
{
|
||
__NimbleFingers = "0";
|
||
}
|
||
int num15;
|
||
if (int.TryParse(__NimbleFingers, NumberStyles.Any, CultureInfo.InvariantCulture, out num15))
|
||
{
|
||
this._NimbleFingers = (float)num15;
|
||
}
|
||
if (__Knockback == null || __Knockback == "")
|
||
{
|
||
__Knockback = "0";
|
||
}
|
||
float num16;
|
||
if (float.TryParse(__Knockback, NumberStyles.Any, CultureInfo.InvariantCulture, out num16))
|
||
{
|
||
this._Knockback = num16;
|
||
}
|
||
if (__Stun == null || __Stun == "")
|
||
{
|
||
__Stun = "0";
|
||
}
|
||
int num17;
|
||
if (int.TryParse(__Stun, NumberStyles.Any, CultureInfo.InvariantCulture, out num17))
|
||
{
|
||
this._Stun = num17;
|
||
}
|
||
if (__Confuse == null || __Confuse == "")
|
||
{
|
||
__Confuse = "0";
|
||
}
|
||
int num18;
|
||
if (int.TryParse(__Confuse, NumberStyles.Any, CultureInfo.InvariantCulture, out num18))
|
||
{
|
||
this._Confuse = num18;
|
||
}
|
||
if (__MoveSpeed == null || __MoveSpeed == "")
|
||
{
|
||
__MoveSpeed = "0";
|
||
}
|
||
float num19;
|
||
if (float.TryParse(__MoveSpeed, NumberStyles.Any, CultureInfo.InvariantCulture, out num19))
|
||
{
|
||
this._MoveSpeed = num19;
|
||
}
|
||
if (__StunTime == null || __StunTime == "")
|
||
{
|
||
__StunTime = "0";
|
||
}
|
||
float num20;
|
||
if (float.TryParse(__StunTime, NumberStyles.Any, CultureInfo.InvariantCulture, out num20))
|
||
{
|
||
this._StunTime = num20;
|
||
}
|
||
if (__StuckInPlace == null || __StuckInPlace == "")
|
||
{
|
||
__StuckInPlace = "0";
|
||
}
|
||
int num21;
|
||
if (int.TryParse(__StuckInPlace, NumberStyles.Any, CultureInfo.InvariantCulture, out num21))
|
||
{
|
||
this._StuckInPlace = num21;
|
||
}
|
||
if (__Flee == null || __Flee == "")
|
||
{
|
||
__Flee = "0";
|
||
}
|
||
int num22;
|
||
if (int.TryParse(__Flee, NumberStyles.Any, CultureInfo.InvariantCulture, out num22))
|
||
{
|
||
this._Flee = num22;
|
||
}
|
||
if (__RemoveAilments == null || __RemoveAilments == "")
|
||
{
|
||
__RemoveAilments = "FALSE";
|
||
}
|
||
bool flag;
|
||
if (bool.TryParse(__RemoveAilments, out flag))
|
||
{
|
||
this._RemoveAilments = flag;
|
||
}
|
||
if (__AddActionTime == null || __AddActionTime == "")
|
||
{
|
||
__AddActionTime = "0";
|
||
}
|
||
float num23;
|
||
if (float.TryParse(__AddActionTime, NumberStyles.Any, CultureInfo.InvariantCulture, out num23))
|
||
{
|
||
this._AddActionTime = num23;
|
||
}
|
||
if (__TileRadius == null)
|
||
{
|
||
__TileRadius = "0";
|
||
}
|
||
int num24;
|
||
if (int.TryParse(__TileRadius, NumberStyles.Any, CultureInfo.InvariantCulture, out num24))
|
||
{
|
||
this._TileRadius = num24;
|
||
}
|
||
if (__IsSong == null || __IsSong == "")
|
||
{
|
||
__IsSong = "FALSE";
|
||
}
|
||
bool flag2;
|
||
if (bool.TryParse(__IsSong, out flag2))
|
||
{
|
||
this._IsSong = flag2;
|
||
}
|
||
if (__IsIntercession == null || __IsIntercession == "")
|
||
{
|
||
__IsIntercession = "FALSE";
|
||
}
|
||
bool flag3;
|
||
if (bool.TryParse(__IsIntercession, out flag3))
|
||
{
|
||
this._IsIntercession = flag3;
|
||
}
|
||
if (__CanStack == null || __CanStack == "")
|
||
{
|
||
__CanStack = "FALSE";
|
||
}
|
||
bool flag4;
|
||
if (bool.TryParse(__CanStack, out flag4))
|
||
{
|
||
this._CanStack = flag4;
|
||
}
|
||
if (__IsBuff == null || __IsBuff == "")
|
||
{
|
||
__IsBuff = "FALSE";
|
||
}
|
||
bool flag5;
|
||
if (bool.TryParse(__IsBuff, out flag5))
|
||
{
|
||
this._IsBuff = flag5;
|
||
}
|
||
if (__NoIcon == null || __NoIcon == "")
|
||
{
|
||
__NoIcon = "FALSE";
|
||
}
|
||
bool flag6;
|
||
if (bool.TryParse(__NoIcon, out flag6))
|
||
{
|
||
this._NoIcon = flag6;
|
||
}
|
||
if (__RemoveOnHit == null || __RemoveOnHit == "")
|
||
{
|
||
__RemoveOnHit = "FALSE";
|
||
}
|
||
bool flag7;
|
||
if (bool.TryParse(__RemoveOnHit, out flag7))
|
||
{
|
||
this._RemoveOnHit = flag7;
|
||
}
|
||
if (__Permanent == null || __Permanent == "")
|
||
{
|
||
__Permanent = "FALSE";
|
||
}
|
||
bool flag8;
|
||
if (bool.TryParse(__Permanent, out flag8))
|
||
{
|
||
this._Permanent = flag8;
|
||
}
|
||
if (__ShowInStatus == null || __ShowInStatus == "")
|
||
{
|
||
__ShowInStatus = "FALSE";
|
||
}
|
||
bool flag9;
|
||
if (bool.TryParse(__ShowInStatus, out flag9))
|
||
{
|
||
this._ShowInStatus = flag9;
|
||
}
|
||
if (__WhileOnTile == null || __WhileOnTile == "")
|
||
{
|
||
__WhileOnTile = "FALSE";
|
||
}
|
||
bool flag10;
|
||
if (bool.TryParse(__WhileOnTile, out flag10))
|
||
{
|
||
this._WhileOnTile = flag10;
|
||
}
|
||
if (__OverTime == null || __OverTime == "")
|
||
{
|
||
__OverTime = "FALSE";
|
||
}
|
||
bool flag11;
|
||
if (bool.TryParse(__OverTime, out flag11))
|
||
{
|
||
this._OverTime = flag11;
|
||
}
|
||
if (__StrFlat == null || __StrFlat == "")
|
||
{
|
||
__StrFlat = "0";
|
||
}
|
||
float num25;
|
||
if (float.TryParse(__StrFlat, NumberStyles.Any, CultureInfo.InvariantCulture, out num25))
|
||
{
|
||
this._StrFlat = num25;
|
||
}
|
||
if (__StrDC == null || __StrDC == "")
|
||
{
|
||
__StrDC = "0";
|
||
}
|
||
float num26;
|
||
if (float.TryParse(__StrDC, NumberStyles.Any, CultureInfo.InvariantCulture, out num26))
|
||
{
|
||
this._StrDC = num26;
|
||
}
|
||
if (__StrDS == null || __StrDS == "")
|
||
{
|
||
__StrDS = "0";
|
||
}
|
||
float num27;
|
||
if (float.TryParse(__StrDS, NumberStyles.Any, CultureInfo.InvariantCulture, out num27))
|
||
{
|
||
this._StrDS = num27;
|
||
}
|
||
if (__AglFlat == null || __AglFlat == "")
|
||
{
|
||
__AglFlat = "0";
|
||
}
|
||
float num28;
|
||
if (float.TryParse(__AglFlat, NumberStyles.Any, CultureInfo.InvariantCulture, out num28))
|
||
{
|
||
this._AglFlat = num28;
|
||
}
|
||
if (__AglDC == null || __AglDC == "")
|
||
{
|
||
__AglDC = "0";
|
||
}
|
||
float num29;
|
||
if (float.TryParse(__AglDC, NumberStyles.Any, CultureInfo.InvariantCulture, out num29))
|
||
{
|
||
this._AglDC = num29;
|
||
}
|
||
if (__AglDS == null || __AglDS == "")
|
||
{
|
||
__AglDS = "0";
|
||
}
|
||
float num30;
|
||
if (float.TryParse(__AglDS, NumberStyles.Any, CultureInfo.InvariantCulture, out num30))
|
||
{
|
||
this._AglDS = num30;
|
||
}
|
||
if (__AurFlat == null || __AurFlat == "")
|
||
{
|
||
__AurFlat = "0";
|
||
}
|
||
float num31;
|
||
if (float.TryParse(__AurFlat, NumberStyles.Any, CultureInfo.InvariantCulture, out num31))
|
||
{
|
||
this._AurFlat = num31;
|
||
}
|
||
if (__AurDC == null || __AurDC == "")
|
||
{
|
||
__AurDC = "0";
|
||
}
|
||
float num32;
|
||
if (float.TryParse(__AurDC, NumberStyles.Any, CultureInfo.InvariantCulture, out num32))
|
||
{
|
||
this._AurDC = num32;
|
||
}
|
||
if (__AurDS == null || __AurDS == "")
|
||
{
|
||
__AurDS = "0";
|
||
}
|
||
float num33;
|
||
if (float.TryParse(__AurDS, NumberStyles.Any, CultureInfo.InvariantCulture, out num33))
|
||
{
|
||
this._AurDS = num33;
|
||
}
|
||
if (__PagFlat == null || __PagFlat == "")
|
||
{
|
||
__PagFlat = "0";
|
||
}
|
||
float num34;
|
||
if (float.TryParse(__PagFlat, NumberStyles.Any, CultureInfo.InvariantCulture, out num34))
|
||
{
|
||
this._PagFlat = num34;
|
||
}
|
||
if (__PagDC == null || __PagDC == "")
|
||
{
|
||
__PagDC = "0";
|
||
}
|
||
float num35;
|
||
if (float.TryParse(__PagDC, NumberStyles.Any, CultureInfo.InvariantCulture, out num35))
|
||
{
|
||
this._PagDC = num35;
|
||
}
|
||
if (__PagDS == null || __PagDS == "")
|
||
{
|
||
__PagDS = "0";
|
||
}
|
||
float num36;
|
||
if (float.TryParse(__PagDS, NumberStyles.Any, CultureInfo.InvariantCulture, out num36))
|
||
{
|
||
this._PagDS = num36;
|
||
}
|
||
if (__DexFlat == null || __DexFlat == "")
|
||
{
|
||
__DexFlat = "0";
|
||
}
|
||
float num37;
|
||
if (float.TryParse(__DexFlat, NumberStyles.Any, CultureInfo.InvariantCulture, out num37))
|
||
{
|
||
this._DexFlat = num37;
|
||
}
|
||
if (__DexDC == null || __DexDC == "")
|
||
{
|
||
__DexDC = "0";
|
||
}
|
||
float num38;
|
||
if (float.TryParse(__DexDC, NumberStyles.Any, CultureInfo.InvariantCulture, out num38))
|
||
{
|
||
this._DexDC = num38;
|
||
}
|
||
if (__DexDS == null || __DexDS == "")
|
||
{
|
||
__DexDS = "0";
|
||
}
|
||
float num39;
|
||
if (float.TryParse(__DexDS, NumberStyles.Any, CultureInfo.InvariantCulture, out num39))
|
||
{
|
||
this._DexDS = num39;
|
||
}
|
||
if (__SenFlat == null || __SenFlat == "")
|
||
{
|
||
__SenFlat = "0";
|
||
}
|
||
float num40;
|
||
if (float.TryParse(__SenFlat, NumberStyles.Any, CultureInfo.InvariantCulture, out num40))
|
||
{
|
||
this._SenFlat = num40;
|
||
}
|
||
if (__SenDC == null || __SenDC == "")
|
||
{
|
||
__SenDC = "0";
|
||
}
|
||
float num41;
|
||
if (float.TryParse(__SenDC, NumberStyles.Any, CultureInfo.InvariantCulture, out num41))
|
||
{
|
||
this._SenDC = num41;
|
||
}
|
||
if (__SenDS == null || __SenDS == "")
|
||
{
|
||
__SenDS = "0";
|
||
}
|
||
float num42;
|
||
if (float.TryParse(__SenDS, NumberStyles.Any, CultureInfo.InvariantCulture, out num42))
|
||
{
|
||
this._SenDS = num42;
|
||
}
|
||
if (__Balance == null || __Balance == "")
|
||
{
|
||
__Balance = "0";
|
||
}
|
||
float num43;
|
||
if (float.TryParse(__Balance, NumberStyles.Any, CultureInfo.InvariantCulture, out num43))
|
||
{
|
||
this._Balance = num43;
|
||
}
|
||
if (__RallyFill == null || __RallyFill == "")
|
||
{
|
||
__RallyFill = "0";
|
||
}
|
||
float num44;
|
||
if (float.TryParse(__RallyFill, NumberStyles.Any, CultureInfo.InvariantCulture, out num44))
|
||
{
|
||
this._RallyFill = num44;
|
||
}
|
||
if (__Spirit == null || __Spirit == "")
|
||
{
|
||
__Spirit = "0";
|
||
}
|
||
float num45;
|
||
if (float.TryParse(__Spirit, NumberStyles.Any, CultureInfo.InvariantCulture, out num45))
|
||
{
|
||
this._Spirit = num45;
|
||
}
|
||
if (__DmgFlat == null || __DmgFlat == "")
|
||
{
|
||
__DmgFlat = "0";
|
||
}
|
||
float num46;
|
||
if (float.TryParse(__DmgFlat, NumberStyles.Any, CultureInfo.InvariantCulture, out num46))
|
||
{
|
||
this._DmgFlat = num46;
|
||
}
|
||
if (__DmgDC == null || __DmgDC == "")
|
||
{
|
||
__DmgDC = "0";
|
||
}
|
||
float num47;
|
||
if (float.TryParse(__DmgDC, NumberStyles.Any, CultureInfo.InvariantCulture, out num47))
|
||
{
|
||
this._DmgDC = num47;
|
||
}
|
||
if (__DmgDS == null || __DmgDS == "")
|
||
{
|
||
__DmgDS = "0";
|
||
}
|
||
float num48;
|
||
if (float.TryParse(__DmgDS, NumberStyles.Any, CultureInfo.InvariantCulture, out num48))
|
||
{
|
||
this._DmgDS = num48;
|
||
}
|
||
if (__MPotencyFlat == null || __MPotencyFlat == "")
|
||
{
|
||
__MPotencyFlat = "0";
|
||
}
|
||
float num49;
|
||
if (float.TryParse(__MPotencyFlat, NumberStyles.Any, CultureInfo.InvariantCulture, out num49))
|
||
{
|
||
this._MPotencyFlat = num49;
|
||
}
|
||
if (__MPotencyDC == null || __MPotencyDC == "")
|
||
{
|
||
__MPotencyDC = "0";
|
||
}
|
||
float num50;
|
||
if (float.TryParse(__MPotencyDC, NumberStyles.Any, CultureInfo.InvariantCulture, out num50))
|
||
{
|
||
this._MPotencyDC = num50;
|
||
}
|
||
if (__MPotencyDS == null || __MPotencyDS == "")
|
||
{
|
||
__MPotencyDS = "0";
|
||
}
|
||
float num51;
|
||
if (float.TryParse(__MPotencyDS, NumberStyles.Any, CultureInfo.InvariantCulture, out num51))
|
||
{
|
||
this._MPotencyDS = num51;
|
||
}
|
||
if (__HitFlat == null || __HitFlat == "")
|
||
{
|
||
__HitFlat = "0";
|
||
}
|
||
float num52;
|
||
if (float.TryParse(__HitFlat, NumberStyles.Any, CultureInfo.InvariantCulture, out num52))
|
||
{
|
||
this._HitFlat = num52;
|
||
}
|
||
if (__HitDC == null || __HitDC == "")
|
||
{
|
||
__HitDC = "0";
|
||
}
|
||
float num53;
|
||
if (float.TryParse(__HitDC, NumberStyles.Any, CultureInfo.InvariantCulture, out num53))
|
||
{
|
||
this._HitDC = num53;
|
||
}
|
||
if (__HitDS == null || __HitDS == "")
|
||
{
|
||
__HitDS = "0";
|
||
}
|
||
float num54;
|
||
if (float.TryParse(__HitDS, NumberStyles.Any, CultureInfo.InvariantCulture, out num54))
|
||
{
|
||
this._HitDS = num54;
|
||
}
|
||
if (__MHitFlat == null || __MHitFlat == "")
|
||
{
|
||
__MHitFlat = "0";
|
||
}
|
||
float num55;
|
||
if (float.TryParse(__MHitFlat, NumberStyles.Any, CultureInfo.InvariantCulture, out num55))
|
||
{
|
||
this._MHitFlat = num55;
|
||
}
|
||
if (__MHitDC == null || __MHitDC == "")
|
||
{
|
||
__MHitDC = "0";
|
||
}
|
||
float num56;
|
||
if (float.TryParse(__MHitDC, NumberStyles.Any, CultureInfo.InvariantCulture, out num56))
|
||
{
|
||
this._MHitDC = num56;
|
||
}
|
||
if (__MHitDS == null || __MHitDS == "")
|
||
{
|
||
__MHitDS = "0";
|
||
}
|
||
float num57;
|
||
if (float.TryParse(__MHitDS, NumberStyles.Any, CultureInfo.InvariantCulture, out num57))
|
||
{
|
||
this._MHitDS = num57;
|
||
}
|
||
if (__EvadeFlat == null || __EvadeFlat == "")
|
||
{
|
||
__EvadeFlat = "0";
|
||
}
|
||
float num58;
|
||
if (float.TryParse(__EvadeFlat, NumberStyles.Any, CultureInfo.InvariantCulture, out num58))
|
||
{
|
||
this._EvadeFlat = num58;
|
||
}
|
||
if (__EvadeDC == null || __EvadeDC == "")
|
||
{
|
||
__EvadeDC = "0";
|
||
}
|
||
float num59;
|
||
if (float.TryParse(__EvadeDC, NumberStyles.Any, CultureInfo.InvariantCulture, out num59))
|
||
{
|
||
this._EvadeDC = num59;
|
||
}
|
||
if (__EvadeDS == null || __EvadeDS == "")
|
||
{
|
||
__EvadeDS = "0";
|
||
}
|
||
float num60;
|
||
if (float.TryParse(__EvadeDS, NumberStyles.Any, CultureInfo.InvariantCulture, out num60))
|
||
{
|
||
this._EvadeDS = num60;
|
||
}
|
||
if (__BlockFlat == null || __BlockFlat == "")
|
||
{
|
||
__BlockFlat = "0";
|
||
}
|
||
float num61;
|
||
if (float.TryParse(__BlockFlat, NumberStyles.Any, CultureInfo.InvariantCulture, out num61))
|
||
{
|
||
this._BlockFlat = num61;
|
||
}
|
||
if (__BlockDC == null || __BlockDC == "")
|
||
{
|
||
__BlockDC = "0";
|
||
}
|
||
float num62;
|
||
if (float.TryParse(__BlockDC, NumberStyles.Any, CultureInfo.InvariantCulture, out num62))
|
||
{
|
||
this._BlockDC = num62;
|
||
}
|
||
if (__BlockDS == null || __BlockDS == "")
|
||
{
|
||
__BlockDS = "0";
|
||
}
|
||
float num63;
|
||
if (float.TryParse(__BlockDS, NumberStyles.Any, CultureInfo.InvariantCulture, out num63))
|
||
{
|
||
this._BlockDS = num63;
|
||
}
|
||
if (__Silent == null || __Silent == "")
|
||
{
|
||
__Silent = "0";
|
||
}
|
||
float num64;
|
||
if (float.TryParse(__Silent, NumberStyles.Any, CultureInfo.InvariantCulture, out num64))
|
||
{
|
||
this._Silent = num64;
|
||
}
|
||
if (__Blind == null || __Blind == "")
|
||
{
|
||
__Blind = "0";
|
||
}
|
||
float num65;
|
||
if (float.TryParse(__Blind, NumberStyles.Any, CultureInfo.InvariantCulture, out num65))
|
||
{
|
||
this._Blind = num65;
|
||
}
|
||
if (__Deaf == null || __Deaf == "")
|
||
{
|
||
__Silent = "0";
|
||
}
|
||
float num66;
|
||
if (float.TryParse(__Deaf, NumberStyles.Any, CultureInfo.InvariantCulture, out num66))
|
||
{
|
||
this._Deaf = num66;
|
||
}
|
||
if (__Invisible == null || __Invisible == "")
|
||
{
|
||
__Silent = "0";
|
||
}
|
||
float num67;
|
||
if (float.TryParse(__Invisible, NumberStyles.Any, CultureInfo.InvariantCulture, out num67))
|
||
{
|
||
this._Invisible = num67;
|
||
}
|
||
if (__HealthMax == null || __HealthMax == "")
|
||
{
|
||
__HealthMax = "0";
|
||
}
|
||
float num68;
|
||
if (float.TryParse(__HealthMax, NumberStyles.Any, CultureInfo.InvariantCulture, out num68))
|
||
{
|
||
this._HealthMax = num68;
|
||
}
|
||
if (__Health == null || __Health == "")
|
||
{
|
||
__Health = "0";
|
||
}
|
||
float num69;
|
||
if (float.TryParse(__Health, NumberStyles.Any, CultureInfo.InvariantCulture, out num69))
|
||
{
|
||
this._Health = num69;
|
||
}
|
||
if (__FXOffset == null || __FXOffset == "")
|
||
{
|
||
__FXOffset = "0";
|
||
}
|
||
float num70;
|
||
if (float.TryParse(__FXOffset, NumberStyles.Any, CultureInfo.InvariantCulture, out num70))
|
||
{
|
||
this._FXOffset = num70;
|
||
}
|
||
if (__ActionTime == null || __ActionTime == "")
|
||
{
|
||
__ActionTime = "0";
|
||
}
|
||
float num71;
|
||
if (float.TryParse(__ActionTime, NumberStyles.Any, CultureInfo.InvariantCulture, out num71))
|
||
{
|
||
this._ActionTime = num71;
|
||
}
|
||
if (__RallySpeed == null || __RallySpeed == "")
|
||
{
|
||
__RallySpeed = "0";
|
||
}
|
||
float num72;
|
||
if (float.TryParse(__RallySpeed, NumberStyles.Any, CultureInfo.InvariantCulture, out num72))
|
||
{
|
||
this._RallySpeed = num72;
|
||
}
|
||
if (__StaminaSpeed == null || __StaminaSpeed == "")
|
||
{
|
||
__StaminaSpeed = "0";
|
||
}
|
||
float num73;
|
||
if (float.TryParse(__StaminaSpeed, NumberStyles.Any, CultureInfo.InvariantCulture, out num73))
|
||
{
|
||
this._StaminaSpeed = num73;
|
||
}
|
||
if (__StaminaReduceMult == null || __StaminaReduceMult == "")
|
||
{
|
||
__StaminaReduceMult = "0";
|
||
}
|
||
float num74;
|
||
if (float.TryParse(__StaminaReduceMult, NumberStyles.Any, CultureInfo.InvariantCulture, out num74))
|
||
{
|
||
this._StaminaReduceMult = num74;
|
||
}
|
||
if (__SpiritAbsorption == null || __SpiritAbsorption == "")
|
||
{
|
||
__SpiritAbsorption = "0";
|
||
}
|
||
float num75;
|
||
if (float.TryParse(__SpiritAbsorption, NumberStyles.Any, CultureInfo.InvariantCulture, out num75))
|
||
{
|
||
this._SpiritAbsorption = num75;
|
||
}
|
||
}
|
||
|
||
// Token: 0x04003174 RID: 12660
|
||
public string _Name;
|
||
|
||
// Token: 0x04003175 RID: 12661
|
||
public string _DisplayName;
|
||
|
||
// Token: 0x04003176 RID: 12662
|
||
public int _Level;
|
||
|
||
// Token: 0x04003177 RID: 12663
|
||
public int _LevelMax;
|
||
|
||
// Token: 0x04003178 RID: 12664
|
||
public float _OverallTime;
|
||
|
||
// Token: 0x04003179 RID: 12665
|
||
public int _TileRadius;
|
||
|
||
// Token: 0x0400317A RID: 12666
|
||
public string _TerrainReq;
|
||
|
||
// Token: 0x0400317B RID: 12667
|
||
public bool _WhileOnTile;
|
||
|
||
// Token: 0x0400317C RID: 12668
|
||
public bool _IsBuff;
|
||
|
||
// Token: 0x0400317D RID: 12669
|
||
public bool _Permanent;
|
||
|
||
// Token: 0x0400317E RID: 12670
|
||
public int _BalanceCheck;
|
||
|
||
// Token: 0x0400317F RID: 12671
|
||
public string _StatToResist;
|
||
|
||
// Token: 0x04003180 RID: 12672
|
||
public string _Script;
|
||
|
||
// Token: 0x04003181 RID: 12673
|
||
public bool _ShowInStatus;
|
||
|
||
// Token: 0x04003182 RID: 12674
|
||
public float _Knockback;
|
||
|
||
// Token: 0x04003183 RID: 12675
|
||
public int _Stun;
|
||
|
||
// Token: 0x04003184 RID: 12676
|
||
public int _Confuse;
|
||
|
||
// Token: 0x04003185 RID: 12677
|
||
public float _MoveSpeed;
|
||
|
||
// Token: 0x04003186 RID: 12678
|
||
public int _StuckInPlace;
|
||
|
||
// Token: 0x04003187 RID: 12679
|
||
public int _Flee;
|
||
|
||
// Token: 0x04003188 RID: 12680
|
||
public bool _DropWeapon;
|
||
|
||
// Token: 0x04003189 RID: 12681
|
||
public bool _RemoveAilments;
|
||
|
||
// Token: 0x0400318A RID: 12682
|
||
public string _Icon;
|
||
|
||
// Token: 0x0400318B RID: 12683
|
||
public float _StunTime;
|
||
|
||
// Token: 0x0400318C RID: 12684
|
||
public string _InteractiveType;
|
||
|
||
// Token: 0x0400318D RID: 12685
|
||
public string _Sound;
|
||
|
||
// Token: 0x0400318E RID: 12686
|
||
public int _FX;
|
||
|
||
// Token: 0x0400318F RID: 12687
|
||
public float _FXOffset;
|
||
|
||
// Token: 0x04003190 RID: 12688
|
||
public string _FXType;
|
||
|
||
// Token: 0x04003191 RID: 12689
|
||
public float _StrFlat;
|
||
|
||
// Token: 0x04003192 RID: 12690
|
||
public float _StrDC;
|
||
|
||
// Token: 0x04003193 RID: 12691
|
||
public float _StrDS;
|
||
|
||
// Token: 0x04003194 RID: 12692
|
||
public float _AglFlat;
|
||
|
||
// Token: 0x04003195 RID: 12693
|
||
public float _AglDC;
|
||
|
||
// Token: 0x04003196 RID: 12694
|
||
public float _AglDS;
|
||
|
||
// Token: 0x04003197 RID: 12695
|
||
public float _AurFlat;
|
||
|
||
// Token: 0x04003198 RID: 12696
|
||
public float _AurDC;
|
||
|
||
// Token: 0x04003199 RID: 12697
|
||
public float _AurDS;
|
||
|
||
// Token: 0x0400319A RID: 12698
|
||
public float _PagFlat;
|
||
|
||
// Token: 0x0400319B RID: 12699
|
||
public float _PagDC;
|
||
|
||
// Token: 0x0400319C RID: 12700
|
||
public float _PagDS;
|
||
|
||
// Token: 0x0400319D RID: 12701
|
||
public float _SenFlat;
|
||
|
||
// Token: 0x0400319E RID: 12702
|
||
public float _SenDC;
|
||
|
||
// Token: 0x0400319F RID: 12703
|
||
public float _SenDS;
|
||
|
||
// Token: 0x040031A0 RID: 12704
|
||
public float _DexFlat;
|
||
|
||
// Token: 0x040031A1 RID: 12705
|
||
public float _DexDC;
|
||
|
||
// Token: 0x040031A2 RID: 12706
|
||
public float _DexDS;
|
||
|
||
// Token: 0x040031A3 RID: 12707
|
||
public float _Balance;
|
||
|
||
// Token: 0x040031A4 RID: 12708
|
||
public float _DmgFlat;
|
||
|
||
// Token: 0x040031A5 RID: 12709
|
||
public float _DmgDC;
|
||
|
||
// Token: 0x040031A6 RID: 12710
|
||
public float _DmgDS;
|
||
|
||
// Token: 0x040031A7 RID: 12711
|
||
public float _MPotencyFlat;
|
||
|
||
// Token: 0x040031A8 RID: 12712
|
||
public float _MPotencyDC;
|
||
|
||
// Token: 0x040031A9 RID: 12713
|
||
public float _MPotencyDS;
|
||
|
||
// Token: 0x040031AA RID: 12714
|
||
public float _HitFlat;
|
||
|
||
// Token: 0x040031AB RID: 12715
|
||
public float _HitDC;
|
||
|
||
// Token: 0x040031AC RID: 12716
|
||
public float _HitDS;
|
||
|
||
// Token: 0x040031AD RID: 12717
|
||
public float _MHitFlat;
|
||
|
||
// Token: 0x040031AE RID: 12718
|
||
public float _MHitDC;
|
||
|
||
// Token: 0x040031AF RID: 12719
|
||
public float _MHitDS;
|
||
|
||
// Token: 0x040031B0 RID: 12720
|
||
public float _EvadeFlat;
|
||
|
||
// Token: 0x040031B1 RID: 12721
|
||
public float _EvadeDC;
|
||
|
||
// Token: 0x040031B2 RID: 12722
|
||
public float _EvadeDS;
|
||
|
||
// Token: 0x040031B3 RID: 12723
|
||
public float _BlockFlat;
|
||
|
||
// Token: 0x040031B4 RID: 12724
|
||
public float _BlockDC;
|
||
|
||
// Token: 0x040031B5 RID: 12725
|
||
public float _BlockDS;
|
||
|
||
// Token: 0x040031B6 RID: 12726
|
||
public float _Health;
|
||
|
||
// Token: 0x040031B7 RID: 12727
|
||
public float _HealthMax;
|
||
|
||
// Token: 0x040031B8 RID: 12728
|
||
public float _Fatigue;
|
||
|
||
// Token: 0x040031B9 RID: 12729
|
||
public float _FatigueMax;
|
||
|
||
// Token: 0x040031BA RID: 12730
|
||
public float _Spirit;
|
||
|
||
// Token: 0x040031BB RID: 12731
|
||
public float _Silent;
|
||
|
||
// Token: 0x040031BC RID: 12732
|
||
public float _Invisible;
|
||
|
||
// Token: 0x040031BD RID: 12733
|
||
public float _Deaf;
|
||
|
||
// Token: 0x040031BE RID: 12734
|
||
public float _Blind;
|
||
|
||
// Token: 0x040031BF RID: 12735
|
||
public float _Charming;
|
||
|
||
// Token: 0x040031C0 RID: 12736
|
||
public float _Artistry;
|
||
|
||
// Token: 0x040031C1 RID: 12737
|
||
public float _NimbleFingers;
|
||
|
||
// Token: 0x040031C2 RID: 12738
|
||
public bool _RemoveOnHit;
|
||
|
||
// Token: 0x040031C3 RID: 12739
|
||
public bool _OverTime;
|
||
|
||
// Token: 0x040031C4 RID: 12740
|
||
public float _ActionTime;
|
||
|
||
// Token: 0x040031C5 RID: 12741
|
||
public float _ReduceStun;
|
||
|
||
// Token: 0x040031C6 RID: 12742
|
||
public float _SpiritAbsorption;
|
||
|
||
// Token: 0x040031C7 RID: 12743
|
||
public float _RallySpeed;
|
||
|
||
// Token: 0x040031C8 RID: 12744
|
||
public float _StaminaSpeed;
|
||
|
||
// Token: 0x040031C9 RID: 12745
|
||
public float _RallyFill;
|
||
|
||
// Token: 0x040031CA RID: 12746
|
||
public float _StaminaReduceMult;
|
||
|
||
// Token: 0x040031CB RID: 12747
|
||
public bool _IsSong;
|
||
|
||
// Token: 0x040031CC RID: 12748
|
||
public bool _IsIntercession;
|
||
|
||
// Token: 0x040031CD RID: 12749
|
||
public bool _CanStack;
|
||
|
||
// Token: 0x040031CE RID: 12750
|
||
public float _AddActionTime;
|
||
|
||
// Token: 0x040031CF RID: 12751
|
||
public float _ReduceArmor;
|
||
|
||
// Token: 0x040031D0 RID: 12752
|
||
public float _AddStamina;
|
||
|
||
// Token: 0x040031D1 RID: 12753
|
||
public float _ReduceEqArmor;
|
||
|
||
// Token: 0x040031D2 RID: 12754
|
||
public bool _NoIcon;
|
||
|
||
// Token: 0x040031D3 RID: 12755
|
||
public float _PaganResistVines;
|
||
|
||
// Token: 0x040031D4 RID: 12756
|
||
public float _PaganResistSpores;
|
||
|
||
// Token: 0x040031D5 RID: 12757
|
||
public float _PaganResistFauna;
|
||
|
||
// Token: 0x040031D6 RID: 12758
|
||
public float _MusicResistance;
|
||
}
|
||
}
|