private void CheckCreateVerbProperties() { if (cachedVerbProperties == null && (int)pawn.RaceProps.intelligence >= 1) { cachedVerbProperties = new List <VerbProperties>(); cachedVerbProperties.Add(NativeVerbPropertiesDatabase.VerbWithCategory(VerbCategory.BeatFire)); if (!pawn.RaceProps.IsMechanoid) { cachedVerbProperties.Add(NativeVerbPropertiesDatabase.VerbWithCategory(VerbCategory.Ignite)); } } }
private void UpdateVerbsLinksAndProps() { if (this.beatFireVerb != null) { this.beatFireVerb.caster = this.pawn; this.beatFireVerb.verbProps = NativeVerbPropertiesDatabase.VerbWithCategory(VerbCategory.BeatFire); this.beatFireVerb.loadID = VerbUtility.GenerateBeatFireLoadId(this.pawn); } if (this.igniteVerb != null) { this.igniteVerb.caster = this.pawn; this.igniteVerb.verbProps = NativeVerbPropertiesDatabase.VerbWithCategory(VerbCategory.Ignite); this.igniteVerb.loadID = VerbUtility.GenerateIgniteLoadId(this.pawn); } }
private void CheckCreateVerbProperties() { if (this.cachedVerbProperties != null) { return; } if (this.pawn.RaceProps.intelligence >= Intelligence.ToolUser) { this.cachedVerbProperties = new List <VerbProperties>(); this.cachedVerbProperties.Add(NativeVerbPropertiesDatabase.VerbWithCategory(VerbCategory.BeatFire)); if (!this.pawn.RaceProps.IsMechanoid) { this.cachedVerbProperties.Add(NativeVerbPropertiesDatabase.VerbWithCategory(VerbCategory.Ignite)); } } }
public Verb_Ignite() { verbProps = NativeVerbPropertiesDatabase.VerbWithCategory(VerbCategory.Ignite); }
public Verb_BeatFire() { this.verbProps = NativeVerbPropertiesDatabase.VerbWithCategory(VerbCategory.BeatFire); }