1
This commit is contained in:
@@ -15,6 +15,10 @@ public static class CharacterDictionary {
|
||||
character.profession = ProfessionTool.Wizard();
|
||||
character.profession.Initial(character);
|
||||
character.equipment = new DataEquipment();
|
||||
// 装备法杖
|
||||
character.equipment.Wear(WeaponDictionary.Weapon302(), out DataWear old1);
|
||||
// 装备法袍
|
||||
character.equipment.Wear(ArmorDictionary.Armor101(), out DataWear old2);
|
||||
return character;
|
||||
}
|
||||
/// <summary> 托尔吉 兽人 战士 </summary>
|
||||
@@ -26,6 +30,11 @@ public static class CharacterDictionary {
|
||||
character.profession = ProfessionTool.Warrior();
|
||||
character.profession.Initial(character);
|
||||
character.equipment = new DataEquipment();
|
||||
// 装备木棒和木盾
|
||||
character.equipment.Wear(WeaponDictionary.Weapon201(), out DataWear old1);
|
||||
character.equipment.Wear(WeaponDictionary.Weapon401(), out DataWear old2);
|
||||
// 装备板甲
|
||||
character.equipment.Wear(ArmorDictionary.Armor401(), out DataWear old3);
|
||||
return character;
|
||||
}
|
||||
/// <summary> 格伦布林 矮人 牧师 </summary>
|
||||
@@ -37,6 +46,11 @@ public static class CharacterDictionary {
|
||||
character.profession = ProfessionTool.Cleric();
|
||||
character.profession.Initial(character);
|
||||
character.equipment = new DataEquipment();
|
||||
// 装备木棒和木盾
|
||||
character.equipment.Wear(WeaponDictionary.Weapon201(), out DataWear old1);
|
||||
character.equipment.Wear(WeaponDictionary.Weapon401(), out DataWear old2);
|
||||
// 装备链甲
|
||||
character.equipment.Wear(ArmorDictionary.Armor301(), out DataWear old3);
|
||||
return character;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,28 @@
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
|
||||
/// <summary>
|
||||
/// 战斗角色 - 工具
|
||||
/// </summary>
|
||||
public static class CombatRoleTool {
|
||||
|
||||
#region 设置参数
|
||||
/// <summary> 初始角色 </summary>
|
||||
public static void Initial(this DataCombatRole role) {
|
||||
AttributeTool.Cover(role, role.character);
|
||||
role.name = role.character.name;
|
||||
role.level = role.character.Level;
|
||||
role.hitPoint = new Vector2Int(role.character.HitPoint, role.character.HitPoint);
|
||||
role.armorClass = role.character.ArmorClass;
|
||||
role.weapon1 = role.character.equipment.weapon1;
|
||||
role.weapon2 = role.character.equipment.weapon2;
|
||||
}
|
||||
/// <summary> 设置队伍 </summary>
|
||||
public static void Settings(this DataCombatRole role, int team, int position) {
|
||||
role.team = team;
|
||||
role.position = position;
|
||||
}
|
||||
#endregion
|
||||
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 2eb2cecc8838b1445a24dce7aa669bd3
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
Reference in New Issue
Block a user