Elin Decompiled Documentation EA 23.102 Nightly
Loading...
Searching...
No Matches
TraitFoodMeat.cs
Go to the documentation of this file.
1public class TraitFoodMeat : TraitFood
2{
3 public override string LangUse => "invBury";
4
5 public override bool CanUse(Chara c, Card tg)
6 {
7 return tg.trait is TraitGrave;
8 }
9
10 public override bool OnUse(Chara c, Card tg)
11 {
12 c.Say("bury", owner, tg);
13 c.PlaySound("mud");
14 owner.Destroy();
15 tg.ModEncLv(1);
16 return true;
17 }
18}
Definition: Card.cs:11
SoundSource PlaySound(string id, float v=1f, bool spatial=true)
Definition: Card.cs:5404
void ModEncLv(int a)
Definition: Card.cs:3549
void Destroy()
Definition: Card.cs:4538
void Say(string lang, string ref1=null, string ref2=null)
Definition: Card.cs:6046
Definition: Chara.cs:10
override bool CanUse(Chara c, Card tg)
Definition: TraitFoodMeat.cs:5
override bool OnUse(Chara c, Card tg)
override string LangUse
Definition: TraitFoodMeat.cs:3
Card owner
Definition: Trait.cs:26