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

Changed params for abilities.

parent 84d90685
No related branches found
No related tags found
1 merge request!24PrefabService & abilities
......@@ -50,7 +50,7 @@ namespace BigSock {
Handles cooldown and ability cost here.
Returns true if the ability was successfully used.
*/
public bool Use(Character actor, Vector2 target) {
public bool Use(Character actor, Vector3? target = null) {
// Check that the ability is cooled down.
if(Ready) {
//> Handle checking costs here.
......@@ -77,7 +77,7 @@ namespace BigSock {
- Even if nothing was hit, used to indicate that cooldowns should be updated.
This should be overridden in sub-classes for the actual abilities.
*/
protected abstract bool Activate(Character actor, Vector2 target);
protected abstract bool Activate(Character actor, Vector3? target);
}
......
......@@ -57,6 +57,6 @@ namespace BigSock {
/*
Try to use the ability.
*/
bool Use(Character actor, Vector2 target);
bool Use(Character actor, Vector3? target);
}
}
\ No newline at end of file
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