|
| 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 57 of file InvOwnerDeliver.cs.
58 {
59 bool flag = t.id == "bill_tax";
60 bool flag2 = t.id == "bill_debt";
62 bool flag3 = flag2 && questDebt !=
null && !questDebt.paid && questDebt.
IsValidBill(t);
64 {
65 SE.Beep();
68 return;
69 }
70 if (fromBank)
71 {
73 }
75 {
76 return;
77 }
78 if (flag2)
79 {
80 EClass.player.debt -= t.
c_bill;
82 {
83 EClass.player.debt = 0;
84 }
85 questDebt.paid = true;
87 }
88 else if (flag)
89 {
90 EClass.player.stats.taxBillsPaid += t.
c_bill;
93 {
94 EClass.player.taxBills = 0;
95 }
96 int num = t.
GetInt(35) / 1000;
97 if (num > 0)
98 {
101 Msg.
Say(
"getSalary", thing);
103 }
104 }
105 else
106 {
107 EClass.player.unpaidBill -= t.
c_bill;
108 }
111 }
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().