Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
RogueReborn
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Model registry
Analyze
Contributor analytics
Repository analytics
Insights
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
Mikhail Andrenkov
RogueReborn
Commits
d9d51f9a
Commit
d9d51f9a
authored
8 years ago
by
Ian Prins
Browse files
Options
Downloads
Patches
Plain Diff
add maxStrenght attribute (strength can be sapped)
parent
c0b43fa2
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/include/playerchar.h
+2
-1
2 additions, 1 deletion
src/include/playerchar.h
src/playerchar.cpp
+1
-0
1 addition, 0 deletions
src/playerchar.cpp
with
3 additions
and
1 deletion
src/include/playerchar.h
+
2
−
1
View file @
d9d51f9a
...
...
@@ -10,6 +10,7 @@ class PlayerChar : public Mob {
public:
PlayerChar
(
Coord
);
int
getStrength
();
int
getMaxStrength
();
int
getArmor
();
int
getGold
();
int
getHP
();
...
...
@@ -19,7 +20,7 @@ class PlayerChar : public Mob {
int
maxDelved
();
private:
const
int
START_HP
=
10
,
START_ARMOR
=
0
,
START_STR
=
1
,
START_GOLD
=
0
,
START_LEVEL
=
1
;
int
HP
,
maxHP
,
armor
,
strength
,
gold
,
level
;
int
HP
,
maxHP
,
armor
,
strength
,
maxStrength
,
gold
,
level
;
ItemZone
backpack
;
bool
hasFoundAmulet
;
int
maxDepth
;
...
...
This diff is collapsed.
Click to expand it.
src/playerchar.cpp
+
1
−
0
View file @
d9d51f9a
...
...
@@ -9,6 +9,7 @@ PlayerChar::PlayerChar(Coord pos)
,
maxHP
(
START_HP
)
,
armor
(
START_ARMOR
)
,
strength
(
START_STR
)
,
maxStrength
(
START_STR
)
,
gold
(
START_GOLD
)
,
level
(
START_LEVEL
)
,
backpack
(
ItemZone
())
...
...
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