forked from Musashi1584/RPGO
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
236050b
commit b3334d3
Showing
8 changed files
with
114 additions
and
19 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 @@ | ||
*.int diff |
Binary file not shown.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
class X2Condition_Cyborg extends X2Condition; | ||
|
||
event name CallMeetsCondition(XComGameState_BaseObject kTarget) | ||
{ | ||
local XComGameState_Unit TargetUnit; | ||
local name AutopsyName; | ||
|
||
TargetUnit = XComGameState_Unit(kTarget); | ||
|
||
if (IsCyborg(TargetUnit)) | ||
{ | ||
return 'AA_Success'; | ||
} | ||
|
||
return 'AA_NoCyborg'; | ||
} | ||
|
||
static function bool IsCyborg(XComGameState_Unit TargetUnit) | ||
{ | ||
local EInventorySlot InvSlot; | ||
local XComGameState_Item ItemState; | ||
|
||
foreach class'X2Item_Augmentations'.default.AugmentationSlots(InvSlot) | ||
{ | ||
If (TargetUnit.GetItemInSlot(InvSlot) == none) | ||
{ | ||
return false; | ||
} | ||
} | ||
|
||
return true; | ||
} |
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