| | |
| | | //--------------------------------------------------------
|
| | | // [Author]: YYL
|
| | | // [ Date ]: 2025年8月29日
|
| | | // [ Date ]: Friday, August 29, 2025
|
| | | //--------------------------------------------------------
|
| | |
|
| | | using System.Collections.Generic;
|
| | |
| | | public int TagAffect;
|
| | | public int TagCount;
|
| | | public int HappenRate;
|
| | | public int EffectID1;
|
| | | public int[] EffectValues1;
|
| | | public int EffectID2;
|
| | | public int[] EffectValues2;
|
| | | public int EffectID3;
|
| | | public int[] EffectValues3;
|
| | | public int CoolDownTime;
|
| | | public int FightPower;
|
| | | public string SkillMotionName;
|
| | |
| | |
|
| | | int.TryParse(tables[14],out HappenRate);
|
| | |
|
| | | int.TryParse(tables[15],out EffectID1); |
| | | int.TryParse(tables[15],out CoolDownTime); |
| | |
|
| | | if (tables[16].Contains("[")) |
| | | int.TryParse(tables[16],out FightPower); |
| | |
|
| | | SkillMotionName = tables[17];
|
| | |
|
| | | IconName = tables[18];
|
| | |
|
| | | int.TryParse(tables[19],out EffectType); |
| | |
|
| | | int.TryParse(tables[20],out StartupFrames); |
| | |
|
| | | if (tables[21].Contains("[")) |
| | | { |
| | | EffectValues1 = JsonMapper.ToObject<int[]>(tables[16]); |
| | | ActiveFrames = JsonMapper.ToObject<int[]>(tables[21]); |
| | | } |
| | | else |
| | | { |
| | | string[] EffectValues1StringArray = tables[16].Trim().Split(StringUtility.splitSeparator,StringSplitOptions.RemoveEmptyEntries); |
| | | EffectValues1 = new int[EffectValues1StringArray.Length]; |
| | | for (int i=0;i<EffectValues1StringArray.Length;i++) |
| | | { |
| | | int.TryParse(EffectValues1StringArray[i],out EffectValues1[i]); |
| | | } |
| | | }
|
| | |
|
| | | int.TryParse(tables[17],out EffectID2); |
| | |
|
| | | if (tables[18].Contains("[")) |
| | | { |
| | | EffectValues2 = JsonMapper.ToObject<int[]>(tables[18]); |
| | | } |
| | | else |
| | | { |
| | | string[] EffectValues2StringArray = tables[18].Trim().Split(StringUtility.splitSeparator,StringSplitOptions.RemoveEmptyEntries); |
| | | EffectValues2 = new int[EffectValues2StringArray.Length]; |
| | | for (int i=0;i<EffectValues2StringArray.Length;i++) |
| | | { |
| | | int.TryParse(EffectValues2StringArray[i],out EffectValues2[i]); |
| | | } |
| | | }
|
| | |
|
| | | int.TryParse(tables[19],out EffectID3); |
| | |
|
| | | if (tables[20].Contains("[")) |
| | | { |
| | | EffectValues3 = JsonMapper.ToObject<int[]>(tables[20]); |
| | | } |
| | | else |
| | | { |
| | | string[] EffectValues3StringArray = tables[20].Trim().Split(StringUtility.splitSeparator,StringSplitOptions.RemoveEmptyEntries); |
| | | EffectValues3 = new int[EffectValues3StringArray.Length]; |
| | | for (int i=0;i<EffectValues3StringArray.Length;i++) |
| | | { |
| | | int.TryParse(EffectValues3StringArray[i],out EffectValues3[i]); |
| | | } |
| | | }
|
| | |
|
| | | int.TryParse(tables[21],out CoolDownTime); |
| | |
|
| | | int.TryParse(tables[22],out FightPower); |
| | |
|
| | | SkillMotionName = tables[23];
|
| | |
|
| | | IconName = tables[24];
|
| | |
|
| | | int.TryParse(tables[25],out EffectType); |
| | |
|
| | | int.TryParse(tables[26],out StartupFrames); |
| | |
|
| | | if (tables[27].Contains("[")) |
| | | { |
| | | ActiveFrames = JsonMapper.ToObject<int[]>(tables[27]); |
| | | } |
| | | else |
| | | { |
| | | string[] ActiveFramesStringArray = tables[27].Trim().Split(StringUtility.splitSeparator,StringSplitOptions.RemoveEmptyEntries); |
| | | string[] ActiveFramesStringArray = tables[21].Trim().Split(StringUtility.splitSeparator,StringSplitOptions.RemoveEmptyEntries); |
| | | ActiveFrames = new int[ActiveFramesStringArray.Length]; |
| | | for (int i=0;i<ActiveFramesStringArray.Length;i++) |
| | | { |
| | |
| | | } |
| | | }
|
| | |
|
| | | int.TryParse(tables[28],out RecoveryFrames); |
| | | int.TryParse(tables[22],out RecoveryFrames); |
| | |
|
| | | int.TryParse(tables[29],out LoopCount); |
| | | int.TryParse(tables[23],out LoopCount); |
| | |
|
| | | int.TryParse(tables[30],out CastPosition); |
| | | int.TryParse(tables[24],out CastPosition); |
| | |
|
| | | int.TryParse(tables[31],out CastIndexNum); |
| | | int.TryParse(tables[25],out CastIndexNum); |
| | |
|
| | | float.TryParse(tables[32],out CastDistance); |
| | | float.TryParse(tables[26],out CastDistance); |
| | |
|
| | | DamageDivide = JsonMapper.ToObject<int[][]>(tables[33].Replace("(", "[").Replace(")", "]")); |
| | | DamageDivide = JsonMapper.ToObject<int[][]>(tables[27].Replace("(", "[").Replace(")", "]")); |
| | |
|
| | | int.TryParse(tables[34],out BulletEffectId); |
| | | int.TryParse(tables[28],out BulletEffectId); |
| | |
|
| | | int.TryParse(tables[35],out BulletPath); |
| | | int.TryParse(tables[29],out BulletPath); |
| | |
|
| | | float.TryParse(tables[36],out BulletFlyTime); |
| | | float.TryParse(tables[30],out BulletFlyTime); |
| | |
|
| | | int.TryParse(tables[37],out ExplosionEffectId); |
| | | int.TryParse(tables[31],out ExplosionEffectId); |
| | |
|
| | | int.TryParse(tables[38],out ExplosionEffect2); |
| | | int.TryParse(tables[32],out ExplosionEffect2); |
| | |
|
| | | int.TryParse(tables[39],out EffectId); |
| | | int.TryParse(tables[33],out EffectId); |
| | |
|
| | | int.TryParse(tables[40],out EffectId2); |
| | | int.TryParse(tables[34],out EffectId2); |
| | |
|
| | | int.TryParse(tables[41],out MStartEffectId); |
| | | int.TryParse(tables[35],out MStartEffectId); |
| | |
|
| | | int.TryParse(tables[42],out TriggerEffect); |
| | | int.TryParse(tables[36],out TriggerEffect); |
| | | }
|
| | | catch (Exception exception)
|
| | | {
|