Created
September 26, 2014 01:49
-
-
Save phrohdoh/812fb594e58ff6ab67d6 to your computer and use it in GitHub Desktop.
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
diff --git a/OpenRA.Mods.RA/UnitUpgradeManager.cs b/OpenRA.Mods.RA/UnitUpgradeManager.cs | |
index 7bc9fdb..23d0e4e 100644 | |
--- a/OpenRA.Mods.RA/UnitUpgradeManager.cs | |
+++ b/OpenRA.Mods.RA/UnitUpgradeManager.cs | |
@@ -45,7 +45,10 @@ public void GrantUpgrade(Actor self, string upgrade) | |
{ | |
foreach (var up in upgradable.Value) | |
if (up.AcceptsUpgrade(upgrade)) | |
+ { | |
up.UpgradeAvailable(self, upgrade, true); | |
+ Game.Debug("Granting {0} to {1}", upgrade, self.Info.Name); | |
+ } | |
} | |
public void RevokeUpgrade(Actor self, string upgrade) | |
diff --git a/OpenRA.Mods.TS/OpenRA.Mods.TS.csproj b/OpenRA.Mods.TS/OpenRA.Mods.TS.csproj | |
index 9650418..42a0f58 100644 | |
--- a/OpenRA.Mods.TS/OpenRA.Mods.TS.csproj | |
+++ b/OpenRA.Mods.TS/OpenRA.Mods.TS.csproj | |
@@ -2,9 +2,7 @@ | |
<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | |
<PropertyGroup> | |
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> | |
- <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> | |
- <ProductVersion>10.0.0</ProductVersion> | |
- <SchemaVersion>2.0</SchemaVersion> | |
+ <Platform Condition=" '$(Platform)' == '' ">x86</Platform> | |
<ProjectGuid>{5457CBF5-4CE4-421E-A8BF-9FD6C9732E1D}</ProjectGuid> | |
<OutputType>Library</OutputType> | |
<RootNamespace>OpenRA.Mods.TS</RootNamespace> | |
@@ -25,6 +23,8 @@ | |
<CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet> | |
<DebugType>full</DebugType> | |
<AllowUnsafeBlocks>true</AllowUnsafeBlocks> | |
+ <WarningLevel>4</WarningLevel> | |
+ <Optimize>false</Optimize> | |
</PropertyGroup> | |
<ItemGroup> | |
<Reference Include="System" /> | |
@@ -42,7 +42,7 @@ | |
<Name>OpenRA.Game</Name> | |
</ProjectReference> | |
<ProjectReference Include="..\OpenRA.Mods.Common\OpenRA.Mods.Common.csproj"> | |
- <Project>{fe6c8cc0-2f07-442a-b29f-17617b3b7fc6}</Project> | |
+ <Project>{FE6C8CC0-2F07-442A-B29F-17617B3B7FC6}</Project> | |
<Name>OpenRA.Mods.Common</Name> | |
</ProjectReference> | |
<ProjectReference Include="..\OpenRA.Mods.RA\OpenRA.Mods.RA.csproj"> | |
@@ -56,6 +56,7 @@ | |
<Compile Include="TiberianSunRefinery.cs" /> | |
<Compile Include="Render\WithVoxelWalkerBody.cs" /> | |
<Compile Include="Render\WithVoxelUnloadBody.cs" /> | |
+ <Compile Include="CloakGenerator.cs" /> | |
</ItemGroup> | |
<!-- To modify your build process, add your task inside one of the targets below and uncomment it. | |
Other similar extension points exist, see Microsoft.Common.targets. | |
diff --git a/mods/ts/rules/defaults.yaml b/mods/ts/rules/defaults.yaml | |
index 7f8835d..4101e2d 100644 | |
--- a/mods/ts/rules/defaults.yaml | |
+++ b/mods/ts/rules/defaults.yaml | |
@@ -44,6 +44,9 @@ | |
Demolishable: | |
ScriptTriggers: | |
WithMakeAnimation: | |
+ Cloak: | |
+ RequiresUpgrade: cloakgen | |
+ CloakTypes: cloakgen | |
^Wall: | |
AppearsOnRadar: | |
@@ -125,6 +128,7 @@ | |
SpeedModifier: 120, 150 | |
ReloadModifier: 90, 75 | |
GivesExperience: | |
+ UnitUpgradeManager: | |
DrawLineToTarget: | |
ActorLostNotification: | |
ProximityCaptor: | |
diff --git a/mods/ts/rules/structures.yaml b/mods/ts/rules/structures.yaml | |
index e292d47..a0aff7d 100644 | |
--- a/mods/ts/rules/structures.yaml | |
+++ b/mods/ts/rules/structures.yaml | |
@@ -123,6 +123,11 @@ GAPILE: | |
Sequence: idle-flag | |
Power: | |
Amount: -20 | |
+ CloakGenerator: | |
+ CloakRange: 8c0 | |
+ CloakableTypes: cloakgen | |
+ ProvidesUpgradeType: cloakgen | |
+ UpgradeLifespanTicks: 40 | |
PROC: | |
Inherits: ^Building |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment