8 public override void OnStart()
10 Chara chara =
EClass.game.cards.globalCharas.Find(
"loytel");
11 if (chara.homeBranch !=
null)
13 chara.homeBranch.RemoveMemeber(chara);
15 EClass.pc.homeBranch.AddMemeber(chara);
16 EClass.pc.party.AddMemeber(chara);
17 chara.homeZone =
EClass.pc.homeBranch.owner;
19 chara.RemoveEditorTag(EditorTag.Invulnerable);
22 EClass.pc.Pick(thing,
true,
true);
26 public override bool CanUpdateOnTalk(
Chara c)
28 int phase = this.phase;
33 public override string GetTextProgress()
35 return "progressDebt".lang(Lang._currency(
EClass.player.debt,
true, 14),
null,
null,
null,
null);
39 public bool CanGiveBill()
41 return this.stage < 6;
45 public int GetBillAmount()
59 })[this.stage] * 10000;
63 public void GiveBill()
66 thing.c_bill = this.GetBillAmount();
67 thing.c_isImportant =
true;
68 EClass.player.DropReward(thing,
false);
77 public void GiveReward()
79 this.gaveBill =
false;
84 EClass.player.DropReward(
ThingGen.Create(
"ticket_massage", -1, -1),
false);
87 EClass.player.DropReward(
ThingGen.Create(
"ticket_armpillow", -1, -1),
false);
90 EClass.player.DropReward(
ThingGen.Create(
"ticket_champagne", -1, -1),
false);
93 EClass.player.DropReward(
ThingGen.Create(
"ticket_resident", -1, -1),
false);
96 EClass.player.DropReward(
ThingGen.Create(
"loytel_mart", -1, -1),
false);
99 EClass.player.flags.loytelMartLv = 1;
100 Msg.Say(
"upgradeLoytelMart");
108 public string GetIdTalk_GiveBill()
112 return "loytel_bill_give2";
114 return "loytel_bill_give1";
119 public bool gaveBill;