예제 #1
0
 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));
         }
     }
 }
예제 #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);
     }
 }
예제 #3
0
 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));
         }
     }
 }
예제 #4
0
 public Verb_Ignite()
 {
     verbProps = NativeVerbPropertiesDatabase.VerbWithCategory(VerbCategory.Ignite);
 }
예제 #5
0
 public Verb_BeatFire()
 {
     this.verbProps = NativeVerbPropertiesDatabase.VerbWithCategory(VerbCategory.BeatFire);
 }