Initial commit

This commit is contained in:
Senad Uka
2020-01-11 07:32:13 +01:00
commit c43739e158
517 changed files with 456377 additions and 0 deletions

View File

@@ -0,0 +1,34 @@
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
namespace PolyPerfect
{
[CreateAssetMenu(fileName = "New AI Stats", menuName = "PolyPerfect/AIStats", order = 1)]
public class AIStats : ScriptableObject
{
[SerializeField, Tooltip("How dominent this animal is in the food chain, agressive animals will attack less dominant animals.")]
public int dominance = 1;
[SerializeField, Tooltip("How many seconds this animal can run for before it gets tired.")]
public float stamina = 10f;
[SerializeField, Tooltip("How much this damage this animal does to another animal.")]
public float power = 10f;
[SerializeField, Tooltip("How much health this animal has.")]
public float toughness = 5f;
[SerializeField, Tooltip("Chance of this animal attacking another animal."), Range(0f, 99f)]
public float agression = 0f;
[SerializeField, Tooltip("How quickly the animal does damage to another animal (every 'attackSpeed' seconds will cause 'power' amount of damage).")]
public float attackSpeed = 0.5f;
[SerializeField, Tooltip("If true, this animal will attack other animals of the same specices.")]
public bool territorial = false;
[SerializeField, Tooltip("Stealthy animals can't be detected by other animals.")]
public bool stealthy = false;
}
}