-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
maximize test coverage of living/status
- Loading branch information
1 parent
c85a804
commit 7d30a08
Showing
2 changed files
with
69 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
inherit "/std/shadow.c"; | ||
|
||
int *MockHeals = ({ }); | ||
void reset_mock_heals () { | ||
MockHeals = ({ }); | ||
} | ||
int *query_mock_heals () { | ||
return MockHeals; | ||
} | ||
void heal (int n) { | ||
MockHeals += ({ n }); | ||
} | ||
|
||
mapping MockAddVitals = ([ "hp": 0, "sp": 0, "mp": 0 ]); | ||
void reset_mock_add_vitals () { | ||
MockAddVitals = ([ "hp": 0, "sp": 0, "mp": 0 ]); | ||
} | ||
mapping query_mock_add_vitals () { | ||
return MockAddVitals; | ||
} | ||
void add_hp (int n) { | ||
MockAddVitals["hp"] += n; | ||
} | ||
void add_sp (int n) { | ||
MockAddVitals["sp"] += n; | ||
} | ||
void add_mp (int n) { | ||
MockAddVitals["mp"] += n; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters