/// <summary> /// 获取物品 /// </summary> /// <param name="type"></param> /// <param name="index"></param> /// <returns></returns> private BaseGoods InternalGetGoods(int type, int index) { if (type >= 1 && type <= 5) { return(new GoodsEquipment(Context)); } BaseGoods rtn = null; switch (type) { case 6: rtn = new GoodsDecorations(Context); break; case 7: rtn = new GoodsWeapon(Context); break; case 8: rtn = new GoodsHiddenWeapon(Context); break; case 9: rtn = new GoodsMedicine(Context); break; case 10: rtn = new GoodsLifeMedicine(Context); break; case 11: rtn = new GoodsAttributesMedicine(Context); break; case 12: rtn = new GoodsStimulant(Context); break; case 13: rtn = new GoodsTudun(Context); break; case 14: rtn = new GoodsDrama(Context); break; } return(rtn); }
/// <summary> /// 获取合击魔法 /// </summary> /// <returns></returns> private MagicAttack GetCoopMagic() { GoodsDecorations dc = (GoodsDecorations)(Executor as PlayerCharacter).Equipments[0]; return(dc?.GetCoopMagic()); }