public override bool DoSupply(PeEntity entity, CSAssembly csAssembly) { if (csAssembly == null || csAssembly.Storages == null) { return(false); } if (entity.packageCmpt == null) { return(false); } List <ItemObject> _atkObjs = entity.GetAtkEquipObjs(AttackType.Ranged); if (_atkObjs == null || _atkObjs.Count <= 0) { return(false); } for (int i = 0; i < _atkObjs.Count; i++) { AmmoExpend expend = MatchExpend(_atkObjs[i]); if (expend == null) { continue; } expend.SupplySth(entity, csAssembly); } return(true); }