8 public override void Execute()
10 if (this.target ==
null)
12 string str =
"exception: target not found:";
13 Chara chara = this.target;
14 Debug.LogError(str + ((chara !=
null) ? chara.ToString() :
null));
19 foreach (
Thing thing2
in this.target.things)
21 if (thing2.isEquipped && !thing2.isGifted && (thing2.GetPrice(CurrencyType.Money,
false, PriceType.Default,
null) > num || thing2.rarity >= Rarity.Artifact))
24 num = thing2.GetPrice(CurrencyType.Money,
false, PriceType.Default,
null);
29 thing =
ThingGen.Create(
"plat", -1, -1).SetNum(
EClass.rndHalf(
this.target.LV / 10 + 2));
33 this.target.RemoveCard(thing);
34 this.target.EQ_CAT(thing.category.id);
36 this.target.SetInt(111, this.target.GetInt(111,
null) + 1);
37 SE.Play(
"questComplete");
39 EClass.player.ModFame(
EClass.rndHalf(Mathf.Max(10, 10 + (
this.target.LV -
EClass.pc.LV) * 3)));