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));
         }
     }
 }
Exemple #2
0
 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);
 }
Exemple #5
0
 public Verb_BeatFire()
 {
     this.verbProps = NativeVerbPropertiesDatabase.VerbWithCategory(VerbCategory.BeatFire);
 }