//获取广播持续时间 public int GetBroadcastMinutes(Exchange _this) { var build = _this.mCharacter.mCity.GetBuildByType((int)BuildingType.Exchange); if (build == null) { return(0); } var pets = build.GetPets(); var refTimes = BuildingBase.GetBSParamByIndex((int)BuildingType.Exchange, build.TbBs, pets, 3); return(Exchange.BroadcastTime * refTimes / 10000); }
//取广播CD时间 private int GetBroadcastCD(Exchange _this) { var cdTimes = Exchange.BroadcastCDTime * 60; var build = _this.mCharacter.mCity.GetBuildByType((int)BuildingType.Exchange); if (build == null) { return(cdTimes); } var pets = build.GetPets(); var refTimes = BuildingBase.GetBSParamByIndex((int)BuildingType.Exchange, build.TbBs, pets, 2); return(cdTimes * refTimes / 10000); }