This repository has been archived by the owner on Oct 19, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 40
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 #1 from luiges90/master
Merge pull request #1 from luiges90/master
- Loading branch information
Showing
12 changed files
with
124 additions
and
38 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
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
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
33 changes: 33 additions & 0 deletions
33
GameObjects/GameObjects/Influences/InfluenceKindPack/InfluenceKind330.cs
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,33 @@ | ||
namespace GameObjects.Influences.InfluenceKindPack | ||
{ | ||
using GameObjects; | ||
using GameObjects.Influences; | ||
using System; | ||
|
||
internal class InfluenceKind330 : InfluenceKind | ||
{ | ||
private int combatMethodID; | ||
|
||
public override void ApplyInfluenceKind(Troop troop) | ||
{ | ||
troop.Stunts.AddStunt(troop.Scenario.GameCommonData.AllStunts.GetStunt(this.combatMethodID)); | ||
} | ||
|
||
public override void InitializeParameter(string parameter) | ||
{ | ||
try | ||
{ | ||
this.combatMethodID = int.Parse(parameter); | ||
} | ||
catch | ||
{ | ||
} | ||
} | ||
|
||
public override void PurifyInfluenceKind(Troop troop) | ||
{ | ||
troop.Stunts.RemoveStunt(troop.Scenario.GameCommonData.AllStunts.GetStunt(this.combatMethodID)); | ||
} | ||
} | ||
} | ||
|
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
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
Binary file modified
BIN
+0 Bytes
(100%)
WorldOfTheThreeKingdoms/bin/x86/Release/GameData/Common/CommonData.mdb
Binary file not shown.
Binary file modified
BIN
-4 KB
(100%)
WorldOfTheThreeKingdoms/bin/x86/Release/GameData/Common/SaveTemplate.mdb
Binary file not shown.