Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
Mr BigSock
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Gard Aleksander Furre
Mr BigSock
Commits
2d4e0198
Commit
2d4e0198
authored
2 years ago
by
Robin Halseth Sandvik
Browse files
Options
Downloads
Patches
Plain Diff
Changed params for abilities.
parent
84d90685
No related branches found
Branches containing commit
No related tags found
1 merge request
!24
PrefabService & abilities
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
MrBigsock/Assets/Code/Core/Abilities/Base/BaseAbility.cs
+2
-2
2 additions, 2 deletions
MrBigsock/Assets/Code/Core/Abilities/Base/BaseAbility.cs
MrBigsock/Assets/Code/Core/Abilities/Base/IAbility.cs
+1
-1
1 addition, 1 deletion
MrBigsock/Assets/Code/Core/Abilities/Base/IAbility.cs
with
3 additions
and
3 deletions
MrBigsock/Assets/Code/Core/Abilities/Base/BaseAbility.cs
+
2
−
2
View file @
2d4e0198
...
...
@@ -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
,
Vector
2
target
)
{
public
bool
Use
(
Character
actor
,
Vector
3
?
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
,
Vector
2
target
);
protected
abstract
bool
Activate
(
Character
actor
,
Vector
3
?
target
);
}
...
...
This diff is collapsed.
Click to expand it.
MrBigsock/Assets/Code/Core/Abilities/Base/IAbility.cs
+
1
−
1
View file @
2d4e0198
...
...
@@ -57,6 +57,6 @@ namespace BigSock {
/*
Try to use the ability.
*/
bool
Use
(
Character
actor
,
Vector
2
target
);
bool
Use
(
Character
actor
,
Vector
3
?
target
);
}
}
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment