移除无用脚本
This commit is contained in:
@@ -32,13 +32,13 @@ public class C2Map_TakeItemRequestHandler : RouteRPC<Player, C2Map_TakeItemReque
|
||||
var itemType = ItemHelper.GetType(item.ConfigId);
|
||||
if (itemType == ItemBasicType.Rod)
|
||||
{
|
||||
itemContainer.Binding.TryGetValue(item.Id, out var itemRod);
|
||||
//鱼竿
|
||||
var itemGear = mapUnit.GetOrAddItemGear(item);
|
||||
if (itemRod != null)
|
||||
{
|
||||
itemGear.Rings.AddRange(itemRod);
|
||||
}
|
||||
// itemContainer.Binding.TryGetValue(item.Id, out var itemRod);
|
||||
// //鱼竿
|
||||
// var itemGear = mapUnit.GetOrAddItemGear(item);
|
||||
// if (itemRod != null)
|
||||
// {
|
||||
// itemGear.Rings.AddRange(itemRod);
|
||||
// }
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -5,19 +5,6 @@ namespace NB.Game;
|
||||
|
||||
public static class MapUnitComponentSystem
|
||||
{
|
||||
public static MapUnitGear GetOrAddItemGear(this MapUnitComponent self, Item item)
|
||||
{
|
||||
var mapItem = self.Gears.Find(t => t.Item == item.Id);
|
||||
if (mapItem == null)
|
||||
{
|
||||
mapItem = new MapUnitGear();
|
||||
mapItem.Item = item.Id;
|
||||
self.Gears.Add(mapItem);
|
||||
}
|
||||
|
||||
return mapItem;
|
||||
}
|
||||
|
||||
public static List<GearInfo> ToMapUnitInfo(this MapUnitComponent self)
|
||||
{
|
||||
List<GearInfo> ret = new List<GearInfo>();
|
||||
|
||||
@@ -82,6 +82,8 @@ public static class PlayerSystem
|
||||
ret.Rotation.x = mapUnit.Rotation.x;
|
||||
ret.Rotation.y = mapUnit.Rotation.y;
|
||||
ret.Rotation.z = mapUnit.Rotation.z;
|
||||
|
||||
// ret.Gears
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user