|
| InvOwnerDeliver (Card owner=null, Card container=null, CurrencyType _currency=CurrencyType.Money) |
|
override bool | ShouldShowGuide (Thing t) |
|
override void | _OnProcess (Thing t) |
|
override bool | AllowHold (Thing t) |
|
| InvOwnerDraglet (Card owner=null, Card container=null, CurrencyType _currency=CurrencyType.Money) |
|
override void | OnInit () |
|
override void | OnClick (ButtonGrid button) |
|
override void | OnRightClick (ButtonGrid button) |
|
override int | GetPrice (Thing t, CurrencyType currency, int num, bool sell) |
|
override string | GetTextDetail (Thing t, CurrencyType currency, int num, bool sell) |
|
virtual void | OnWriteNote (Thing t, UINote n) |
|
sealed override void | OnProcess (Thing t) |
|
virtual void | _OnProcess (Thing t) |
|
virtual void | OnAfterRefuel () |
|
void | RedrawButton () |
|
override void | BuildUICurrency (UICurrency uiCurrency, bool canReroll=false) |
|
virtual bool | AllowHold (Thing t) |
|
virtual bool | AllowMoved (Thing t) |
|
virtual bool | ShouldShowGuide (Thing t) |
|
virtual bool | AllowDrop (Thing t) |
|
virtual Thing | CreateDefaultContainer () |
|
virtual void | BuildUICurrency (UICurrency uiCurrency, bool canReroll=false) |
|
bool | IsWeightOver (Thing t) |
|
| InvOwner (Card owner, Card container=null, CurrencyType _currency=CurrencyType.None, PriceType _price=PriceType.Default) |
|
void | Init () |
|
virtual void | OnInit () |
|
virtual void | OnClick (ButtonGrid button) |
|
virtual void | OnRightClick (ButtonGrid button) |
|
virtual void | OnRightPressed (ButtonGrid button) |
|
InvOwner | GetShitDestOwner (ButtonGrid b, bool rightMouse=false) |
|
virtual void | OnShiftClick (ButtonGrid b, bool rightMouse=false) |
|
virtual bool | CanShiftClick (ButtonGrid b, bool rightMouse=false) |
|
virtual string | GetTextShiftClick (ButtonGrid b) |
|
virtual void | OnCtrlClick (ButtonGrid button) |
|
virtual bool | CanCtrlClick (ButtonGrid b) |
|
virtual string | GetTextCtrlClick (ButtonGrid b) |
|
virtual void | OnAltClick (ButtonGrid button) |
|
virtual bool | CanAltClick (ButtonGrid b) |
|
virtual string | GetTextAltClick (ButtonGrid b) |
|
void | Grab (DragItemCard.DragInfo from) |
|
Thing | PutBack (DragItemCard.DragInfo from) |
|
void | OnStartDrag (DragItemCard.DragInfo from) |
|
virtual bool | OnCancelDrag (DragItemCard.DragInfo from) |
|
virtual bool | OnDrag (DragItemCard.DragInfo from, DragItemCard.DragInfo to, bool execute, bool cancel=false) |
|
virtual void | OnProcess (Thing t) |
|
bool | CanOpenContainer (Thing t) |
|
ListInteraction | ListInteractions (ButtonGrid b, bool context) |
|
bool | TryHold (Thing t) |
|
virtual void | ListInteractions (ListInteraction list, Thing t, Trait trait, ButtonGrid b, bool context) |
|
virtual string | GetAutoUseLang (ButtonGrid button) |
|
void | AutoUse (ButtonGrid button, bool repeat=false) |
|
void | ShowContextMenu (ButtonGrid button) |
|
virtual int | GetPrice (Thing t, CurrencyType currency, int num, bool sell) |
|
virtual string | GetTextDetail (Thing t, CurrencyType currency, int num, bool sell) |
|
virtual void | OnWriteNote (ButtonGrid button, UINote n) |
|
virtual string | IDCostIcon (Thing t) |
|
virtual bool | IsFailByCurse (Thing t) |
|
Definition at line 1 of file InvOwnerDeliver.cs.
static void InvOwnerDeliver.PayBill |
( |
Thing |
t, |
|
|
bool |
fromBank = false |
|
) |
| |
|
inlinestatic |
Definition at line 53 of file InvOwnerDeliver.cs.
54 {
55 bool flag = t.id == "bill_tax";
56 bool flag2 = t.id == "bill_debt";
58 bool flag3 = flag2 && questDebt !=
null && !questDebt.paid && questDebt.
IsValidBill(t);
60 {
61 SE.Beep();
64 return;
65 }
66 if (fromBank)
67 {
69 }
71 {
72 return;
73 }
74 if (flag2)
75 {
76 EClass.player.debt -= t.
c_bill;
78 {
79 EClass.player.debt = 0;
80 }
81 questDebt.paid = true;
83 }
84 else if (flag)
85 {
86 EClass.player.stats.taxBillsPaid += t.
c_bill;
89 {
90 EClass.player.taxBills = 0;
91 }
92 int num = t.
GetInt(35) / 1000;
93 if (num > 0)
94 {
97 Msg.
Say(
"getSalary", thing);
99 }
100 }
101 else
102 {
103 EClass.player.unpaidBill -= t.
c_bill;
104 }
107 }
int GetInt(int id, int? defaultInt=null)
void ModCurrency(int a, string id="money")
bool TryPay(int a, string id="money")
Thing Pick(Thing t, bool msg=true, bool tryStack=true)
bool IsValidBill(Thing t)
static Thing CreateParcel(string idLang=null, params Thing[] things)
static Thing Create(string id, int idMat=-1, int lv=-1)
void SendPackage(Thing p)
References Card.c_bill, Game.cards, CardManager.container_deposit, ThingGen.Create(), ThingGen.CreateParcel(), Player.debt, Card.Destroy(), EClass.game, QuestManager.Get(), BaseCard.GetInt(), QuestDebt.IsValidBill(), Card.ModCurrency(), EClass.pc, Chara.Pick(), EClass.player, Game.quests, Msg.Say(), World.SendPackage(), Card.SetNum(), Player.taxBills, Card.TryPay(), Quest.UpdateJournal(), and EClass.world.
Referenced by _OnProcess(), and Faction.TryPayBill().