Skip to content

Commit

Permalink
RW 1.1 Release
Browse files Browse the repository at this point in the history
  • Loading branch information
DingoDjango committed Mar 1, 2020
1 parent 9a48dcc commit a6efc94
Show file tree
Hide file tree
Showing 8 changed files with 148 additions and 81 deletions.
9 changes: 6 additions & 3 deletions About/About.xml
Original file line number Diff line number Diff line change
@@ -1,14 +1,17 @@
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8" ?>
<ModMetaData>
<name>Grenade Fix: Rearmed</name>
<author>Dingo</author>
<url>https://ludeon.com/forums/index.php?topic=26077</url>
<targetVersion>1.0.2059</targetVersion>
<packageId>Dingo.GrenadeFixRearmed</packageId>
<description>This mod dynamically injects a minimum range to any weapon with an explosive projectile.

Affects grenades, launchers, etc. including weapons added by mods.*

The minimum range is slightly larger than the weapon's explosion radius, ensuring that pawns won't explode themselves by accident.

*If the weapon already has a safe minimum range (e.g. mortars) it will not be affected.</description>
<url>https://ludeon.com/forums/index.php?topic=26077</url>
<supportedVersions>
<li>1.1</li>
</supportedVersions>
</ModMetaData>
2 changes: 1 addition & 1 deletion About/Manifest.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<Manifest>
<identifier>GrenadeFixRearmed</identifier>
<version>1.0.2059.1</version>
<version>1.1.7364.1</version>
<manifestUri>https://raw.githubusercontent.com/DingoDjango/GrenadeFixRearmed/master/About/Manifest.xml</manifestUri>
<downloadUri>https://github.com/DingoDjango/GrenadeFixRearmed/releases/latest</downloadUri>
</Manifest>
2 changes: 1 addition & 1 deletion About/ModSync.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<ModSyncNinjaData>
<ID>da171c68-9c33-4948-b0db-df88fb5030d4</ID>
<ModName>Grenade Fix: Rearmed</ModName>
<Version>1.0.2059.1</Version>
<Version>1.1.7364.1</Version>
<SaveBreaking>False</SaveBreaking>
<Host name="Github">
<Owner>DingoDjango</Owner>
Expand Down
Binary file modified Assemblies/Grenade Fix Rearmed.dll
Binary file not shown.
127 changes: 127 additions & 0 deletions Grenade Fix Rearmed.csproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,127 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProjectGuid>{8AAF4A07-19E6-4D10-B7DD-75FA0CDA210C}</ProjectGuid>
<OutputType>Library</OutputType>
<RootNamespace>Grenade_Fix_Rearmed</RootNamespace>
<AssemblyName>Grenade Fix Rearmed</AssemblyName>
<TargetFrameworkVersion>v4.7.2</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
<Deterministic>true</Deterministic>
<PublishUrl>publish\</PublishUrl>
<Install>true</Install>
<InstallFrom>Disk</InstallFrom>
<UpdateEnabled>false</UpdateEnabled>
<UpdateMode>Foreground</UpdateMode>
<UpdateInterval>7</UpdateInterval>
<UpdateIntervalUnits>Days</UpdateIntervalUnits>
<UpdatePeriodically>false</UpdatePeriodically>
<UpdateRequired>false</UpdateRequired>
<MapFileExtensions>true</MapFileExtensions>
<ApplicationRevision>0</ApplicationRevision>
<ApplicationVersion>1.0.0.%2a</ApplicationVersion>
<IsWebBootstrapper>false</IsWebBootstrapper>
<UseApplicationTrust>false</UseApplicationTrust>
<BootstrapperEnabled>true</BootstrapperEnabled>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<PlatformTarget>AnyCPU</PlatformTarget>
<DebugSymbols>true</DebugSymbols>
<DebugType>embedded</DebugType>
<Optimize>false</Optimize>
<OutputPath>Assemblies\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<GenerateSerializationAssemblies>Off</GenerateSerializationAssemblies>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<PlatformTarget>AnyCPU</PlatformTarget>
<DebugType>none</DebugType>
<Optimize>true</Optimize>
<OutputPath>Assemblies\</OutputPath>
<DefineConstants>
</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<GenerateSerializationAssemblies>Off</GenerateSerializationAssemblies>
</PropertyGroup>
<PropertyGroup>
<StartupObject />
</PropertyGroup>
<ItemGroup>
<Reference Include="0Harmony">
<HintPath>C:\Program Files (x86)\Steam\steamapps\common\RimWorld\Mods\Harmony\Assemblies\0Harmony.dll</HintPath>
<Private>False</Private>
</Reference>
<Reference Include="Assembly-CSharp">
<HintPath>C:\Program Files (x86)\Steam\steamapps\common\RimWorld\RimWorldWin64_Data\Managed\Assembly-CSharp.dll</HintPath>
<Private>False</Private>
</Reference>
<Reference Include="System" />
<Reference Include="System.Core" />
<Reference Include="System.Xml.Linq" />
<Reference Include="System.Data.DataSetExtensions" />
<Reference Include="System.Data" />
<Reference Include="System.Xml" />
<Reference Include="UnityEngine">
<HintPath>C:\Program Files (x86)\Steam\steamapps\common\RimWorld\RimWorldWin64_Data\Managed\UnityEngine.dll</HintPath>
<Private>False</Private>
</Reference>
<Reference Include="UnityEngine.CoreModule">
<HintPath>C:\Program Files (x86)\Steam\steamapps\common\RimWorld\RimWorldWin64_Data\Managed\UnityEngine.CoreModule.dll</HintPath>
<Private>False</Private>
</Reference>
<Reference Include="UnityEngine.IMGUIModule">
<HintPath>C:\Program Files (x86)\Steam\steamapps\common\RimWorld\RimWorldWin64_Data\Managed\UnityEngine.IMGUIModule.dll</HintPath>
<Private>False</Private>
</Reference>
</ItemGroup>
<ItemGroup>
<Content Include="About\About.xml" />
<Content Include="About\Manifest.xml" />
<Content Include="About\ModSync.xml" />
<Content Include="About\Preview.png" />
<Content Include="About\PublishedFileId.txt" />
</ItemGroup>
<ItemGroup>
<Folder Include="Assemblies\" />
</ItemGroup>
<ItemGroup>
<Compile Include="Main.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
</ItemGroup>
<ItemGroup>
<BootstrapperPackage Include=".NETFramework,Version=v4.7.2">
<Visible>False</Visible>
<ProductName>Microsoft .NET Framework 4.7.2 %28x86 and x64%29</ProductName>
<Install>true</Install>
</BootstrapperPackage>
<BootstrapperPackage Include="Microsoft.Net.Framework.3.5.SP1">
<Visible>False</Visible>
<ProductName>.NET Framework 3.5 SP1</ProductName>
<Install>false</Install>
</BootstrapperPackage>
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<PropertyGroup>
<PostBuildEvent>mkdir "C:\Program Files (x86)\Steam\steamapps\common\RimWorld\Mods\$(ProjectName)"

xcopy "$(ProjectDir)About" "C:\Program Files (x86)\Steam\steamapps\common\RimWorld\Mods\$(ProjectName)\About" /i /e /r /y
xcopy "$(ProjectDir)Assemblies" "C:\Program Files (x86)\Steam\steamapps\common\RimWorld\Mods\$(ProjectName)\Assemblies" /i /e /r /y

cd $(ProjectDir)
del /f /s /q bin
del /f /s /q obj
rmdir /s /q bin
rmdir /s /q obj</PostBuildEvent>
</PropertyGroup>
<PropertyGroup>
<PreBuildEvent>cd $(OutDir)
del /s /q *</PreBuildEvent>
</PropertyGroup>
</Project>
11 changes: 7 additions & 4 deletions Source/GrenadeFixRearmed.cs → Main.cs
Original file line number Diff line number Diff line change
@@ -1,14 +1,17 @@
using System.Collections.Generic;
using System;
using System.Collections.Generic;
using System.Reflection;
using System.Linq;
using RimWorld;
using UnityEngine;
using Verse;

namespace GrenadeFixRearmed
namespace Grenade_Fix_Rearmed
{
[StaticConstructorOnStartup]
public static class GrenadeFixRearmed
public static class Main
{
static GrenadeFixRearmed()
static Main()
{
//Find all explosive projectile weapons
IEnumerable<ThingDef> explosives = DefDatabase<ThingDef>.AllDefs.Where(def => def.Verbs.Exists(verb => verb.CausesExplosion));
Expand Down
15 changes: 6 additions & 9 deletions Source/Properties/AssemblyInfo.cs → Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("Grenade_Fix_Rearmed")]
[assembly: AssemblyTitle("Grenade Fix Rearmed")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("Grenade_Fix_Rearmed")]
[assembly: AssemblyCopyright("Copyright © 2016")]
[assembly: AssemblyProduct("Grenade Fix Rearmed")]
[assembly: AssemblyCopyright("Copyright © Dingo 2020")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]

Expand All @@ -20,7 +20,7 @@
[assembly: ComVisible(false)]

// The following GUID is for the ID of the typelib if this project is exposed to COM
[assembly: Guid("d5769885-314b-4ea0-887a-878500762536")]
[assembly: Guid("8aaf4a07-19e6-4d10-b7dd-75fa0cda210c")]

// Version information for an assembly consists of the following four values:
//
Expand All @@ -29,8 +29,5 @@
// Build Number
// Revision
//
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.0.2059.1")]
[assembly: AssemblyFileVersion("1.0.2059.1")]
[assembly: AssemblyVersion("1.1.7364.1")]
[assembly: AssemblyFileVersion("1.1.7364.1")]
63 changes: 0 additions & 63 deletions Source/Grenade Fix Rearmed.csproj

This file was deleted.

0 comments on commit a6efc94

Please sign in to comment.