Esempio n. 1
0
		/// <summary>
		/// Clone-like copys all values
		/// </summary>
		/// <param name="status"></param>
		public void LoadFromStatus(WorldObjectStatus status, bool includeHP) {
			// TODO: confirm this.. i think this is the way how status_cpy() works
			if (includeHP == true) {
				HP = status.HP;
				SP = status.SP;
			}
			HPMax = status.HPMax;
			SPMax = status.SPMax;
			Str = status.Str;
			Agi = status.Agi;
			Vit = status.Vit;
			Int = status.Int;
			Dex = status.Dex;
			Luk = status.Luk;
			AtkBase = status.AtkBase;
			MagicAtkMin = status.MagicAtkMin;
			MagicAtkMax = status.MagicAtkMax;
			Speed = status.Speed;
			AMotion = status.AMotion;
			ADelay = status.ADelay;
			DMotion = status.DMotion;
			Mode = status.Mode;
			Hit = status.Hit;
			Flee = status.Flee;
			Flee2 = status.Flee2;
			Crit = status.Crit;
			Def2 = status.Def2;
			MDef2 = status.MDef2;
			AspdRate = status.AspdRate;
			DefEle = status.DefEle;
			EleLv = status.EleLv;
			Size = status.Size;
			Race = status.Race;
			Def = status.Def;
			MDef = status.MDef;
			Rhw = status.Rhw;
			Lhw = status.Lhw;
		}
Esempio n. 2
0
		public object Clone() {
			WorldObjectStatus status = new WorldObjectStatus(Object);
			status.LoadFromStatus(this);

			return status;
		}
Esempio n. 3
0
		/// <summary>
		/// Clone-like copys all values
		/// </summary>
		/// <param name="status"></param>
		public void LoadFromStatus(WorldObjectStatus status) {
			LoadFromStatus(status, true);
		}
Esempio n. 4
0
		private void CalculateRegenData(WorldObjectStatus status, WorldObjectRegenerationData data) {

		}
Esempio n. 5
0
		private ushort CalculateBaseAtk(WorldObjectStatus status) {
			return status.AtkBase;
		}
Esempio n. 6
0
		private ushort CalculateBaseAmotion(WorldObjectStatus status) {
			return 0;
		}
Esempio n. 7
0
		private ushort CalculateBaseMatkMax(WorldObjectStatus status) {
			return 0;
		}
Esempio n. 8
0
		private uint CalculateBasePcMaxSP(Character character, WorldObjectStatus status) {
			return 0;
		}