2021-08-20 11:16:49 +02:00
|
|
|
using UnityEngine;
|
2021-10-27 13:28:19 +02:00
|
|
|
using UnityEngine.U2D.Animation;
|
2021-08-20 11:16:49 +02:00
|
|
|
|
|
|
|
|
[CreateAssetMenu(fileName = "Player Stats", menuName = "Scriptable Objects/Player Stat", order = 1)]
|
|
|
|
|
public class PlayerStatsSO : ScriptableObject
|
|
|
|
|
{
|
2021-10-21 23:17:10 +02:00
|
|
|
[Header("Main")]
|
2021-10-27 15:06:53 +02:00
|
|
|
public int characterIndex;
|
2021-10-21 13:30:20 +02:00
|
|
|
public Sprite[] portraits;
|
2021-10-27 13:28:19 +02:00
|
|
|
public SpriteLibraryAsset[] spriteLibraryAssets;
|
2021-10-27 15:06:53 +02:00
|
|
|
public RuntimeAnimatorController runtimeAnimatorController;
|
2022-05-04 17:17:53 +02:00
|
|
|
public DialogueSO _dialogue;
|
2022-05-13 12:44:13 +02:00
|
|
|
public CharacterTypeEnum characterName;
|
2022-09-05 22:07:12 +03:00
|
|
|
[Header("Stats")]
|
|
|
|
|
public int defenseLevel;
|
|
|
|
|
public int arcanaLevel;
|
|
|
|
|
public int speedLevel;
|
2022-09-10 19:57:50 +03:00
|
|
|
public int jumpForce = 2;
|
|
|
|
|
public int dashForce = 5;
|
2021-12-30 14:28:24 +01:00
|
|
|
public bool canDoubleJump = true;
|
2021-10-21 23:17:10 +02:00
|
|
|
public float arcanaRecharge = 1;
|
2021-12-11 18:37:11 +01:00
|
|
|
[Header("Moves")]
|
|
|
|
|
public AttackSO m2L;
|
|
|
|
|
public AttackSO m5L;
|
2022-02-23 00:25:32 +01:00
|
|
|
public AttackSO m2M;
|
|
|
|
|
public AttackSO m5M;
|
|
|
|
|
public AttackSO m2H;
|
|
|
|
|
public AttackSO m5H;
|
2022-06-16 20:28:49 +02:00
|
|
|
public AttackSO jL;
|
2022-07-24 01:25:32 +03:00
|
|
|
public AttackSO jM;
|
2022-04-21 23:58:15 +02:00
|
|
|
public AttackSO mThrow;
|
2022-07-19 13:40:43 +03:00
|
|
|
public AttackSO mParry;
|
2022-06-16 20:28:49 +02:00
|
|
|
public ArcanaSO m5Arcana;
|
|
|
|
|
public ArcanaSO m2Arcana;
|
|
|
|
|
public ArcanaSO jArcana;
|
2022-09-10 19:57:50 +03:00
|
|
|
[HideInInspector] public int maxHealth = 10000;
|
2022-09-05 22:07:12 +03:00
|
|
|
|
|
|
|
|
public int Arcana { get { return arcanaLevel; } set { } }
|
|
|
|
|
public float Defense { get { return (defenseLevel - 1) * 0.05f + 0.95f; } set { } }
|
|
|
|
|
public int SpeedWalk { get { return (speedLevel - 1) * 1 + 2; } set { } }
|
|
|
|
|
public int SpeedRun { get { return (speedLevel - 1) * 1+ 7; } set { } }
|
|
|
|
|
|
2021-08-20 11:16:49 +02:00
|
|
|
}
|