Skip to content
Snippets Groups Projects
Commit 6363d046 authored by Robin Halseth Sandvik's avatar Robin Halseth Sandvik
Browse files

Gave abilities an Icon property.

parent a580da14
No related branches found
No related tags found
1 merge request!84Merge, ability cluster
......@@ -19,6 +19,7 @@ namespace BigSock {
public override ulong Id => 201;
public override string Name => "Dodge";
public override string Description => "A basic dodge move.";
public override string IconName => "item/foureyes";
public AbilityDodge() {
StaminaCost = 10;
......
......@@ -6,6 +6,8 @@ using System.Text;
using UnityEngine;
using UnityEngine.InputSystem;
using BigSock.Service;
namespace BigSock {
......@@ -33,6 +35,19 @@ namespace BigSock {
*/
public abstract ulong Id { get; }
/*
The icon of the ability.
*/
public Sprite Icon => SpriteService.SINGLETON.Get(IconName);
/*
The name of the icon this ability uses.
Override this to change what icon the item uses.
*/
public virtual string IconName { get; } = "item/runningshoes";
/*
The next time the ability has cooled down.
*/
......
......@@ -31,6 +31,11 @@ namespace BigSock {
*/
ulong Id { get; }
/*
The icon of the ability.
*/
Sprite Icon { get; }
/*
The next time the ability has cooled down.
*/
......
......@@ -23,6 +23,7 @@ namespace BigSock {
public override ulong Id => 101;
public override string Name => "Basic Player Projectile Attack";
public override string Description => "A basic projectile shooting attack the player has.";
public override string IconName => "item/coffee";
public BasicProjectile1() {
AttackStats = new AttackStats{
......
......@@ -23,6 +23,7 @@ namespace BigSock {
public override ulong Id => 104;
public override string Name => "Chargeable Player Attack";
public override string Description => "A basic projectile shooting attack the player has.";
public override string IconName => "item/elixirofspeed";
......
......@@ -20,6 +20,7 @@ namespace BigSock {
public override ulong Id => 102;
public override string Name => "Big Ball";
public override string Description => "It's big and slow, but it packs a punch.";
public override string IconName => "item/premature";
public BiggerSlowerProjectile() {
AttackStats = new AttackStats{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment