コード例 #1
0
 public bool WillInteract(HandApply interaction, NetworkSide side)
 {
     return(DefaultWillInteract.Default(interaction, side) &&
            !mobAI.health.IsDead &&
            !mobAI.health.IsCrit &&
            !mobAI.health.IsSoftCrit &&
            interaction.Intent == Intent.Help &&
            interaction.HandObject != null &&
            mobExplore.IsInFoodPreferences(interaction.HandObject));
 }