13 return EClass.game.religions.dictAll[base.GetParam(1,
null)];
18 public override bool IsImplemented()
24 public override void OnCreate(
int lv)
27 this.OnChangeMaterial();
31 public void OnChangeMaterial()
33 this.owner.isOn = (this.owner.material.alias ==
"gold");
36 this.owner.AddCard(this.GetManiGene());
38 if (this.owner.placeState == PlaceState.installed)
40 this.owner.renderer.RefreshExtra();
45 public Thing GetManiGene()
47 this.owner.things.DestroyAll(
null);
48 Debug.Log(
"Mani:" + this.owner.c_seed.ToString());
49 Rand.SetSeed(this.owner.c_seed);
51 Rand.SetSeed(this.owner.c_seed);
52 Thing thing =
DNA.GenerateGene(r,
new DNA.Type?(
DNA.Type.Superior),
this.owner.LV,
this.owner.c_seed);
53 thing.c_DNA.cost = thing.c_DNA.cost / 2;
54 thing.MakeRefFrom(
"mani");
56 Card owner = this.owner;
57 int c_seed = owner.c_seed;
58 owner.c_seed = c_seed + 1;
63 public override void _OnUse(
Chara c)
65 this.
Religion.Talk(
"shrine",
null,
null);
67 uint num = <PrivateImplementationDetails>.ComputeStringHash(
id);
68 if (num <= 1330461687U)
70 if (num != 336916743U)
72 if (num != 636753111U)
74 if (num != 1330461687U)
78 if (!(
id ==
"element"))
83 else if (!(
id ==
"earth"))
87 Rand.SetSeed(this.owner.c_seed);
88 SourceMaterial.Row randomMaterial =
MATERIAL.GetRandomMaterial(this.owner.LV / 2 + 20, (
this.Religion.id ==
"earth") ?
"metal" :
"leather",
true);
90 thing.ChangeMaterial(randomMaterial);
93 EClass.pc.Pick(thing,
true,
true);
100 EClass.pc.Pick(
ThingGen.Create(
"blood_angel", -1, -1),
true,
true);
103 else if (num <= 3290931474U)
105 if (num != 2445848765U)
107 if (num != 3290931474U)
111 if (!(
id ==
"harvest"))
116 EClass.pc.Pick(t,
true,
true);
121 if (!(
id ==
"healing"))
126 EClass.player.ModKeyItem(
"jure_feather", 1,
true);
127 Msg.Say(
"jure_hug2");
131 else if (num != 3775092334U)
133 if (num != 4145017712U)
141 EClass.player.ModKeyItem((!
EClass.player.wellWished &&
EClass.player.CountKeyItem(
"well_wish") == 0) ?
"well_wish" :
"well_enhance", 1,
true);
146 if (!(
id ==
"machine"))
150 Thing t2 = this.owner.things.Find(
"gene", -1, -1) ?? this.GetManiGene();
151 EClass.pc.Pick(t2,
true,
true);