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
!23
Created ItemService.
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Created ItemService.
master
into
main
Overview
0
Commits
6
Pipelines
0
Changes
11
Merged
Robin Halseth Sandvik
requested to merge
master
into
main
2 years ago
Overview
0
Commits
6
Pipelines
0
Changes
11
Expand
ItemService handles getting items for us.
ItemService dynamically pulls in all item classes on start-up.
It offers 2 methods: get item by id, get a random item.
Edited
2 years ago
by
Robin Halseth Sandvik
0
0
Merge request reports
Compare
main
main (base)
and
latest version
latest version
b6dce7d7
6 commits,
2 years ago
11 files
+
199
−
5
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
11
Search (e.g. *.vue) (Ctrl+P)
MrBigsock/Assets/Code/Item/Items/ItemCoffee.cs
0 → 100644
+
25
−
0
Options
using
System.Collections
;
using
System
;
using
System.Collections.Generic
;
using
UnityEngine
;
using
UnityEngine.InputSystem
;
namespace
BigSock.Item
{
/*
A passive item that increases user's max hp by 25%.
*/
public
class
ItemCoffee
:
PassiveItemBase
{
public
override
ulong
Id
=>
103
;
public
override
string
Name
=>
"Caffeinated Coffee"
;
public
override
string
Description
=>
"Increases attack speed by 25%"
;
public
ItemCoffee
()
{
Modifier
=
new
CharacterStats
{
AttackSpeed
=
0.25f
,
};
}
}
}
\ No newline at end of file
Loading