public void TryAddMarkExCondition() { ACM.Add(new ExCondition(!IsIn(), Util.GetStr("AC_无法操作的标记") + "\n" + GetListStr()).NoTrans()); }
public virtual bool IsCanRemoveLoan(LoanData data) { ACM.Reset(SelfBaseUnit); ACM.Add(new ExCondition(IsLoanExpire(data), "AC_债务没有到期")); return(ACM.IsTrue()); }
public virtual bool IsCanPayLoan(LoanData data) { ACM.Reset(SelfBaseUnit); ACM.Add(new ExCondition(IsGoldEnough(data), "AC_金币不够", data.Gold)); return(ACM.IsTrue()); }
public virtual bool IsCanPayLoan() { ACM.Reset(SelfBaseUnit); ACM.Add(new ExCondition(IsHaveLoan(), "AC_没有债务")); return(ACM.IsTrue()); }
public virtual bool IsCanAddLoan() { ACM.Reset(SelfBaseUnit); ACM.Add(new ExCondition(!IsInMaxLoan(), "AC_超出贷款上限", UIUtil.FractionCol(CurLoan, MaxLoan))); return(ACM.IsTrue()); }