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
Merge requests
!30
Improvements to attacks.
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Improvements to attacks.
master
into
main
Overview
0
Commits
13
Pipelines
0
Changes
10
Merged
Robin Halseth Sandvik
requested to merge
master
into
main
2 years ago
Overview
0
Commits
13
Pipelines
0
Changes
10
Expand
Added damage variance.
Added crit chance and modifiers.
Added projectile speed to character stats.
Simplified the process by adding a Calculate() method to AttackStats that will handle all the work.
Changed the code so not having a hp or xp bar won't cause exceptions.
0
0
Merge request reports
Compare
main
main (base)
and
latest version
latest version
b1bf65e9
13 commits,
2 years ago
10 files
+
202
−
13
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
10
Search (e.g. *.vue) (Ctrl+P)
MrBigsock/Assets/Code/Core/Abilities/BasicProjectile1.cs
+
4
−
1
Options
@@ -28,6 +28,8 @@ namespace BigSock {
Range
=
10f
,
ProjectileSpeed
=
10f
,
AttackSpeed
=
1f
,
CritChance
=
0.1f
,
CritDamageModifier
=
2f
,
};
}
@@ -42,7 +44,8 @@ namespace BigSock {
protected
override
bool
Activate
(
Character
actor
,
Vector3
?
target
)
{
if
(
target
==
null
)
return
false
;
var
attack
=
(
AttackStats
)
AttackStats
.
Apply
(
actor
.
Stats
);
var
attack
=
(
AttackStats
)
AttackStats
.
Calculate
(
actor
.
Stats
);
//var attack = (AttackStats) AttackStats.Apply(actor.Stats);
attack
.
Actor
=
actor
;
Loading