public override int GetTotal( TotalType type ) { if( type == TotalType.Weight ) return (int)(base.GetTotal( type ) * (1.0 - m_Redux)); return base.GetTotal( type ); }
public ExportFiled(string fieldname, string fieldtitle, TotalType totaltype, string totalformat) { this.fieldtitle = fieldtitle; this.fieldname = fieldname; this.totaltype = totaltype; this.totalformat = totalformat; }
private void UpdateTotals(PosTotal posTotal, TotalType end, TotalName totalName) { foreach (object obj in posTotal.Totals) { EclipsePos.Data.Total total = obj as EclipsePos.Data.Total; if ((int)total.Total_type < (int)end) { total.AddToTotalAndCount( PosSettings.Default.Organization, PosContext.Instance.RetailStore.Retail_store_no, PosSettings.Default.Station, (TotalName)((int)posTotal.Total_name + 1), (TotalType)total.Total_type, total.Total_amount, total.Total_count); //total.Delete(); } } posTotal.UpdateEndDate(PosSettings.Default.Organization, PosSettings.Default.Store, PosSettings.Default.Station, (int)totalName); }
public void SetTotal(EServiceType serviceType, int total, TotalType totalType) { lock (lockObject) { serviceTypePrgressInfo.SetTotal(serviceType, total, totalType); } }
public override int GetTotal(TotalType type) { if (type == TotalType.Weight) { return((int)(base.GetTotal(type) * (1.0 - m_Redux))); } return(base.GetTotal(type)); }
public ProgressSummary(int value, int total, TotalType totalType, string summaryName = "") { Value = value; Total = total; TotalType = totalType; SummaryName = summaryName; }
public override void UpdateTotal(Item sender, TotalType type, int delta) { base.UpdateTotal(sender, type, delta); if (type == TotalType.Weight && RootParent is Mobile m) { m.InvalidateProperties(); } }
public override int GetTotal(TotalType type) { return(base.GetTotal(type)); if (type == TotalType.Weight) { return(( int )(base.GetTotal(type) * (ReducedPercentage))); } }
public void SetTotal(int value, int total, TotalType totalType) { this.TotalValue = value; this.totalCount = total; this.TotalType = totalType; IsTotalCountSet = true; this.dictUcSellerProgressBars.Clear(); }
public override void UpdateTotal(Item sender, TotalType type, int delta){ base.UpdateTotal(sender,type,delta); if(type==TotalType.Weight){ if ( Parent is Item ) ( Parent as Item ).UpdateTotal( sender, type, (int)(delta*m_Redux)*-1 ); else if ( Parent is Mobile ) ( Parent as Mobile ).UpdateTotal( sender, type, (int)(delta*m_Redux)*-1 ); } }
/*public override void DropItem( Item dropped ) * { * base.DropItem( dropped ); * * if ( this.RootParent is Mobile ) * ((Mobile) this.RootParent).InvalidateProperties(); * }*/ public override void UpdateTotal(Item sender, TotalType type, int delta) { base.UpdateTotal(sender, type, delta); if (this.RootParent is Mobile) { ((Mobile)this.RootParent).InvalidateProperties(); } }
public override int GetTotal(TotalType type) { bool weightless = false; bool inBank = false; bool cycleItems = true; Item bank = null; if (ParentEntity is Item) { bank = ParentEntity as Item; } if (RootParentEntity is PlayerMobile) { while (cycleItems) { if (bank is BankBox) { inBank = true; cycleItems = false; } else if (bank.ParentEntity is Item) { bank = bank.ParentEntity as Item; } else { cycleItems = false; } } } if (!Movable || IsSecure || inBank) { weightless = false; } else if (RootParentEntity is PlayerMobile) { weightless = true; } else if (ParentEntity == null) { weightless = true; } if (type == TotalType.Items && weightless) { return(0); } else if (type == TotalType.Weight && weightless) { return(0); } else { return(base.GetTotal(type)); } }
public override void UpdateTotal(Item sender, TotalType type, int delta) { bool weightless = false; bool inBank = false; bool cycleItems = true; Item bank = null; if (ParentEntity is Item) { bank = ParentEntity as Item; } if (RootParentEntity is PlayerMobile) { while (cycleItems) { if (bank is BankBox) { inBank = true; cycleItems = false; } else if (bank.ParentEntity is Item) { bank = bank.ParentEntity as Item; } else { cycleItems = false; } } } if (!Movable || IsSecure || inBank) { weightless = false; } else if (RootParentEntity is PlayerMobile) { weightless = true; } else if (ParentEntity == null) { weightless = true; } if (type == TotalType.Items && weightless) { base.UpdateTotal(sender, type, 0); } else if (type == TotalType.Weight && weightless) { base.UpdateTotal(sender, type, 0); } else { base.UpdateTotal(sender, type, delta); } }
public override int GetTotal( TotalType type ) { int baseTotal = base.GetTotal( type ); if( type == TotalType.Gold ) baseTotal += CurrencySystem.ConvertTo( CurrencyType, CurrencyType.Gold, this.Amount ); return baseTotal; }
/// <summary> /// Set the total info /// </summary> /// <param name="serviceType">The given servicetype.</param> /// <param name="total">The total number.</param> /// <param name="totalType">The totaltype.<see cref="TotalType"/> .</param> public void SetTotal(EServiceType serviceType, int total, TotalType totalType) { if (!ContainsKey(serviceType)) { Add(serviceType, new UserProgressItem()); } this[serviceType].ProgressSummary = new ProgressSummary(0, total, totalType); }
public override int GetTotal( TotalType type ) { int baseTotal = base.GetTotal( type ); if ( type == TotalType.Gold ) baseTotal += this.Amount; return baseTotal; }
public override int GetTotal(TotalType type) { if (AccountGold.Enabled && Owner?.Account != null && type == TotalType.Gold) { return(Owner.Account.TotalGold); } return(base.GetTotal(type)); }
public override int GetTotal(TotalType type) { int baseTotal = base.GetTotal(type); if (type == TotalType.Gold) { baseTotal += CurrencySystem.ConvertTo(CurrencyType, CurrencyType.Gold, this.Amount); } return(baseTotal); }
public override int GetTotal(TotalType type) { int total = base.GetTotal(type); if (type == TotalType.Items) { return(9); // RunUO seems to treat TotalItems as a 0-based count for some reason } return(total); }
public override void UpdateTotal(Item sender, TotalType type, int delta) { if (type != TotalType.Weight) { base.UpdateTotal(sender, type, delta); } else { base.UpdateTotal(sender, type, (int)(delta * (0.05))); } }
public override int GetTotal(TotalType type) { int baseTotal = base.GetTotal(type); if (type == TotalType.Gold) { baseTotal += this.Amount; } return(baseTotal); }
public override int GetTotal(TotalType type) { if (type != TotalType.Weight) { return(base.GetTotal(type)); } else { return((int)(TotalItemWeights() * (0.05))); } }
public override int GetTotal(TotalType type) { int total = base.GetTotal(type); if (type == TotalType.Weight) { total = (int)(total * GoldWeightMultiplier); } return(total); }
public override int GetTotal(TotalType type) { int total = base.GetTotal(type); if (type == TotalType.Weight) { total -= total * m_WeightReduction / 100; } return(total); }
public override void UpdateTotal(Item sender, TotalType type, int delta) { if (type != TotalType.Weight) { base.UpdateTotal(sender, type, delta); } else { base.UpdateTotal(sender, type, WeightReductionAmount == 1.0 ? 0 : (int)(delta * (1.0 - WeightReductionAmount))); } }
public override int GetTotal(TotalType type) { int total = base.GetTotal(type); if (type == TotalType.Items) { total = this.m_ItemCount; } return(total); }
public override void UpdateTotal(Item sender, TotalType type, int delta) { base.UpdateTotal(sender, type, delta); if (type == TotalType.Weight && RootParent is Mobile) { Server.Gumps.MReagentGump.XReagentGump(((Mobile)RootParent)); Server.Gumps.QuickBar.RefreshQuickBar(((Mobile)RootParent)); Server.Gumps.WealthBar.RefreshWealthBar(((Mobile)RootParent)); ((Mobile)RootParent).InvalidateProperties(); } }
public override int GetTotal(TotalType type) { switch (type) { default: return 0; case TotalType.Items: return 1; case TotalType.Weight: return 1; } }
public override int GetTotal(TotalType type) { int total = base.GetTotal(type); //Force the total count of the book to 1 regard less of how many deed is in there. //We still restricted to 500 per BOD. if (type == TotalType.Items) { return(0); } return(total); }
public override int GetTotal(TotalType type) { if (type == TotalType.Weight) { int weight = base.GetTotal(type); if (weight > 0) { return((int)Math.Max(1, (base.GetTotal(type) * 0.3))); } } return(base.GetTotal(type)); }
public override int GetTotal(TotalType type) { switch (type) { default: return(0); case TotalType.Items: return(1); case TotalType.Weight: return(1); } }
public void SendTaskProgressTotal(int count, TotalType totalType) { var sf = new StackFrame(); var mn = sf.GetMethod().Name; var msgEntity = ProgressInfoMessageBuilder.Create() .WithCallbackMethodName(mn) .WithServiceType(serviceType) .WithTotal(count) .WithTotalType(totalType) .Build(); distributionFacility.Push(msgEntity); }
public override int GetTotal(TotalType type) { if (Expansion == Expansion.T2A) { return base.GetTotal(type); } int baseTotal = base.GetTotal(type); if (type == TotalType.Gold) { baseTotal += Amount; } return baseTotal; }
public override void UpdateTotal(Item sender, TotalType type, int delta) { base.UpdateTotal(sender, type, delta); if (type == TotalType.Weight) { if (Parent is Item) { (Parent as Item).UpdateTotal(sender, type, ( int )(delta * ReducedPercentage)); //* -1 ); } else if (Parent is Mobile) { (Parent as Mobile).UpdateTotal(sender, type, ( int )(delta * ReducedPercentage)); //* -1 ); } } }
public override int GetTotal(TotalType type) { if (Expansion == Expansion.T2A) { return(base.GetTotal(type)); } int baseTotal = base.GetTotal(type); if (type == TotalType.Gold) { baseTotal += Amount; } return(baseTotal); }
public override int GetTotal( TotalType type ) { if( type == TotalType.Weight ) return 0; return base.GetTotal( type ); }
public override int GetTotal(TotalType type) { if (AccountGold.Enabled && Owner != null && Owner.Account != null && type == TotalType.Gold) { return Owner.Account.TotalGold; } return base.GetTotal(type); }
public override int GetTotal( TotalType type ) { if ( type != TotalType.Weight ) return base.GetTotal( type ); double weight = 0; if ( Items.Count == 1 ) weight += Items[ 0 ].PileWeight; if ( weight > 0 && m_WeightReduction != 0 ) weight -= weight * m_WeightReduction / (double) 100; return (int) ( weight + Weight ); }
public override int GetTotal( TotalType type ) { int total = base.GetTotal( type ); if ( type == TotalType.Weight ) total -= total * m_WeightReduction / 100; return total; }
public override int GetTotal( TotalType type ) { int total = base.GetTotal( type ); if ( type == TotalType.Items ) total = m_ItemCount; return total; }
public override void UpdateTotal(Item sender, TotalType type, int delta) { base.UpdateTotal(sender, type, delta); if (type == TotalType.Weight && this.RootParent is Mobile) ((Mobile)this.RootParent).InvalidateProperties(); }
public void SetTotal(string serviceType, int total, TotalType totalType) { lock (lockObject) { dictProgressInfo[serviceType] = new ProgressInfoEntity() { ProgressSummary = new ProgressSummary(0, total, totalType) }; } }
public override void UpdateTotal( Item sender, TotalType type, int delta ) { InvalidateProperties(); base.UpdateTotal(sender, type, delta); }
public override int GetTotal(TotalType type) { if (type == TotalType.Weight) { int weight = base.GetTotal(type); if(weight > 0) return (int)Math.Max(1, (base.GetTotal(type) * .25)); } return base.GetTotal(type); }
//设置总数 public void SendTaskProgressTotal(int count, TotalType totalType) { var sf = new StackFrame(); var mn = sf.GetMethod().Name; var msgEntity = ProgressInfoMessageBuilder.Create() .WithCallbackMethodName(mn) .WithServiceType(serviceType) .WithTotal(count) .WithTotalType(totalType) .Build(); distributionFacility.Push(msgEntity); }