-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #216 from AmProsius/bug216
Digger doesn't repair hut
- Loading branch information
Showing
6 changed files
with
26 additions
and
0 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
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
7 changes: 7 additions & 0 deletions
7
src/Ninja/G1CP/Content/Fixes/Session/fix216_DiggerDailyRoutine.d
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,7 @@ | ||
/* | ||
* #216 Digger doesn't repair hut | ||
*/ | ||
func int G1CP_216_DiggerDailyRoutine() { | ||
var int funcId; funcId = MEM_GetSymbolIndex("Rtn_start_506"); | ||
return (G1CP_ReplacePushStr(funcId, "OCR_Hut_15", "OCR_HUT_15") > 0); | ||
}; |
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,14 @@ | ||
/* | ||
* #216 Digger doesn't repair hut | ||
* | ||
* There does not seem an easy way to test this fix programmatically, so this test relies on manual confirmation. | ||
* | ||
* Expected behavior: The Digger will repair his hut shortly after triggering this test. | ||
*/ | ||
func void G1CP_Test_216() { | ||
if (G1CP_TestsuiteAllowManual) { | ||
// Set time and place | ||
Wld_SetTime(11, 0); | ||
AI_Teleport(hero, "OCR_HUT_15"); | ||
}; | ||
}; |
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
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