integration

bad other team code on another branch
This commit is contained in:
Crizomb 2025-01-28 23:58:50 +01:00
parent 7925fd966a
commit 521a62973a
278 changed files with 11344 additions and 0 deletions

47
Assets/Scripts/Duck.cs Executable file
View file

@ -0,0 +1,47 @@
using UnityEngine;
public class Duck : MonoBehaviour
{
[SerializeField] protected float baseMovementSpeed;
[SerializeField] protected int baseHP;
[SerializeField] protected int baseArmor;
[SerializeField] protected float baseAttackSpeed;
[SerializeField] protected int manaToSpecialAttack;
[SerializeField] protected Weapon weapon;
protected float currentMovementSpeed;
protected int currentHP;
protected int currentArmor;
protected float currentAttackSpeed;
//TODO WEAPON
//TODO Special Ability
public virtual void activateSpecialAbility(){
}
public virtual void takeDamage(int damage){
currentHP -= (damage > currentArmor) ? (damage - currentArmor) : 0;
}
// Start is called once before the first execution of Update after the MonoBehaviour is created
void Start()
{
currentMovementSpeed = baseMovementSpeed;
currentHP = baseHP;
currentArmor = baseArmor;
currentAttackSpeed = baseAttackSpeed;
}
// Update is called once per frame
void Update()
{
}
}