Changeset 290 for binary-improvements
- Timestamp:
- Sep 25, 2016, 1:51:01 PM (8 years ago)
- Location:
- binary-improvements/AllocsCommands
- Files:
-
- 5 deleted
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
binary-improvements/AllocsCommands/AllocsCommands.csproj
r270 r290 49 49 <Compile Include="Commands\SayToPlayer.cs" /> 50 50 <Compile Include="Commands\ShowInventory.cs" /> 51 <Compile Include="Commands\TeleportPlayer.cs" />52 51 <Compile Include="PrivateMessageConnections.cs" /> 53 52 <Compile Include="Chat.cs" /> 54 53 <Compile Include="Commands\ListItems.cs" /> 55 <Compile Include="Commands\ExportItemIcons.cs" />56 <Compile Include="Commands\BuffPlayer.cs" />57 <Compile Include="Commands\DebuffPlayer.cs" />58 <Compile Include="Commands\RepairChunkDensity.cs" />59 54 </ItemGroup> 60 55 <Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" /> -
binary-improvements/AllocsCommands/Commands/Give.cs
r250 r290 52 52 53 53 if (_params.Count == 4) { 54 if (!iv.HasQuality ) {54 if (!iv.HasQuality && iv.Attachments == null && iv.Parts == null) { 55 55 SdtdConsole.Instance.Output ("Item " + _params [1] + " does not support quality."); 56 56 return; … … 63 63 } 64 64 iv.Quality = quality; 65 66 // Specific code for weapons with parts and attachmetns 67 if (iv.Attachments != null && iv.Attachments.Length != 0) { 68 for (int i = 0; i < iv.Attachments.Length; i++) { 69 ItemValue att = iv.Attachments[i]; 70 if (att.HasQuality) { 71 att.Quality = quality; 72 } 73 } 74 } 75 76 if (iv.Parts != null && iv.Parts.Length != 0) { 77 for (int i = 0; i < iv.Parts.Length; i++) { 78 ItemValue part = iv.Parts[i]; 79 if (part.HasQuality) { 80 part.Quality = quality; 81 } 82 } 83 } 65 84 } 66 85
Note:
See TracChangeset
for help on using the changeset viewer.