8 public override bool SingleTarget
18 public override string langTransfer
32 public override InvOwnerDraglet.ProcessType processType
41 public InvOwnerDeliver(
Card owner =
null,
Card container =
null, CurrencyType _currency = CurrencyType.Money) : base(owner, container, _currency)
46 public override bool ShouldShowGuide(
Thing t)
53 return t.id ==
"money";
55 return t.category.id ==
"vegi" || t.category.id ==
"fruit" || t.category.id ==
"mushroom";
62 public static void PayBill(
Thing t,
bool fromBank =
false)
64 bool flag = t.id ==
"bill_tax";
65 bool flag2 = t.id ==
"bill_debt";
67 if ((flag &&
EClass.player.taxBills <= 0) || (flag2 && questDebt ==
null))
70 EClass.pc.Pick(t,
false,
true);
75 EClass.game.cards.container_deposit.ModCurrency(-t.c_bill,
"money");
77 else if (!
EClass.pc.TryPay(t.c_bill,
"money"))
83 EClass.player.debt -= t.c_bill;
84 if (
EClass.player.debt < 0)
86 EClass.player.debt = 0;
88 questDebt.paid =
true;
89 questDebt.UpdateJournal();
93 EClass.player.stats.taxBillsPaid += t.c_bill;
95 if (
EClass.player.taxBills < 0)
97 EClass.player.taxBills = 0;
99 int num = t.GetInt(35,
null) / 1000;
102 Thing thing =
ThingGen.Create(
"money2",
"copper").SetNum(num);
107 Msg.Say(
"getSalary", thing,
null,
null,
null);
108 EClass.world.SendPackage(p);
113 EClass.player.unpaidBill -= t.c_bill;
115 Msg.Say(
"payBill", t,
null,
null,
null);
120 public override void _OnProcess(
Thing t)
129 Msg.Say(
"depositMoney", t, this.owner,
null,
null);
130 this.owner.AddThing(t,
true, -1, -1);
134 Msg.Say(
"farm_chest", t, Lang._weight(t.SelfWeight * t.Num,
true, 0),
null,
null);
136 if (questHarvest !=
null)
138 questHarvest.weightDelivered += t.SelfWeight * t.Num;
150 public InvOwnerDeliver.Mode mode;