Skip to content
This repository has been archived by the owner on Nov 25, 2018. It is now read-only.

Commit

Permalink
B19 Update
Browse files Browse the repository at this point in the history
  • Loading branch information
notfood committed Sep 14, 2018
1 parent 8542539 commit 8c8c477
Show file tree
Hide file tree
Showing 10 changed files with 22 additions and 22 deletions.
2 changes: 1 addition & 1 deletion About/About.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<name>Infused</name>
<author>Latta &amp; NotFood</author>
<url>https://ludeon.com/forums/index.php?topic=21884.0</url>
<targetVersion>0.18.0</targetVersion>
<targetVersion>0.19.0</targetVersion>
<description>Equipment enchantment
</description>
</ModMetaData>
2 changes: 1 addition & 1 deletion About/PublishedFileId.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
731284821
731287727
Binary file modified Assemblies/0Harmony.dll
Binary file not shown.
Binary file modified Assemblies/Infused.dll
Binary file not shown.
4 changes: 0 additions & 4 deletions Defs/InfusionDefs/Chances.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,9 @@
</match>
<chances>
<awful>0.08</awful>
<shoddy>0.08</shoddy>
<poor>0.08</poor>
<normal>0.1</normal>
<good>0.2</good>
<superior>0.33</superior>
<excellent>0.45</excellent>
<masterwork>0.67</masterwork>
<legendary>0.88</legendary>
Expand All @@ -37,11 +35,9 @@
</techLevel>
<chances>
<awful>0.05</awful>
<shoddy>0.05</shoddy>
<poor>0.05</poor>
<normal>0.07</normal>
<good>0.1</good>
<superior>0.15</superior>
<excellent>0.25</excellent>
<masterwork>0.40</masterwork>
<legendary>0.50</legendary>
Expand Down
8 changes: 7 additions & 1 deletion Defs/InfusionDefs/Prefixes.xml
Original file line number Diff line number Diff line change
Expand Up @@ -795,6 +795,12 @@
<multiplier>1.07</multiplier>
</value>
</li>
<li>
<key>HuntingStealth</key>
<value>
<multiplier>2.0</multiplier>
</value>
</li>
</stats>
</Infused.Def>
<Infused.Def ParentName="PrefixRare">
Expand All @@ -813,7 +819,7 @@
</value>
</li>
<li>
<key>BrewingSpeed</key>
<key>DrugCookingSpeed</key>
<value>
<multiplier>1.07</multiplier>
</value>
Expand Down
8 changes: 7 additions & 1 deletion Defs/InfusionDefs/Suffixes.xml
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,12 @@
<multiplier>1.03</multiplier>
</value>
</li>
<li>
<key>HuntingStealth</key>
<value>
<multiplier>2.0</multiplier>
</value>
</li>
</stats>
</Infused.Def>
<Infused.Def ParentName="SuffixCommon">
Expand Down Expand Up @@ -217,7 +223,7 @@
<li>
<key>MoveSpeed</key>
<value>
<multiplier>1.05</multiplier>
<multiplier>1.10</multiplier>
</value>
</li>
</stats>
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# RimWorld-Infused

[![Version](https://img.shields.io/badge/Rimworld-A17-green.svg)](http://rimworldgame.com/)
[![Version](https://img.shields.io/badge/Rimworld-B19-green.svg)](http://rimworldgame.com/)
[![License](https://img.shields.io/badge/license-Custom-blue.svg)](https://ludeon.com/forums/index.php?topic=11171.msg111243#msg111243)

A unique way to make unique items for your special colonists: Randomly enchants equipment.
Expand Down
14 changes: 3 additions & 11 deletions Source/Defs/ChanceDef.cs
Original file line number Diff line number Diff line change
@@ -1,18 +1,14 @@
using System;

using RimWorld;
using RimWorld;
using Verse;

namespace Infused
{
public class QualityChances
{
public float awful;
public float shoddy;
public float poor;
public float normal;
public float good;
public float superior;
public float excellent;
public float masterwork;
public float legendary;
Expand All @@ -21,7 +17,7 @@ public class QualityChances
public class TechLevelRange
{
public TechLevel min = TechLevel.Undefined;
public TechLevel max = TechLevel.Transcendent;
public TechLevel max = TechLevel.Ultra;
}

public class ChanceDef : Verse.Def
Expand All @@ -43,16 +39,12 @@ public float Chance(QualityCategory qc) {
{
case QualityCategory.Awful:
return chances.awful;
case QualityCategory.Shoddy:
return chances.shoddy;
case QualityCategory.Poor:
return chances.poor;
case QualityCategory.Normal:
return chances.normal;
case QualityCategory.Good:
return chances.good;
case QualityCategory.Superior:
return chances.superior;
case QualityCategory.Excellent:
return chances.excellent;
case QualityCategory.Masterwork:
Expand All @@ -68,7 +60,7 @@ public override void ResolveReferences ()
{
base.ResolveReferences ();

this.match.ResolveReferences ();
match.ResolveReferences ();
}
}
}
Expand Down
4 changes: 2 additions & 2 deletions Source/Infused.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,11 @@
<ItemGroup>
<Reference Include="System" />
<Reference Include="Assembly-CSharp">
<HintPath>..\..\..\..\..\Steam\steamapps\common\RimWorld\RimWorldLinux_Data\Managed\Assembly-CSharp.dll</HintPath>
<HintPath>..\Dlls\Assembly-CSharp.dll</HintPath>
<Private>False</Private>
</Reference>
<Reference Include="UnityEngine">
<HintPath>..\..\..\..\..\Steam\steamapps\common\RimWorld\RimWorldLinux_Data\Managed\UnityEngine.dll</HintPath>
<HintPath>..\Dlls\UnityEngine.dll</HintPath>
<Private>False</Private>
</Reference>
<Reference Include="0Harmony">
Expand Down

0 comments on commit 8c8c477

Please sign in to comment.