Skip to content

Commit

Permalink
Heads v0.1.4
Browse files Browse the repository at this point in the history
Heads v0.1.4
  • Loading branch information
Sigma88 authored Nov 10, 2017
2 parents 812d399 + f5aa5fa commit 8aba6d8
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 4 deletions.
6 changes: 6 additions & 0 deletions Heads/Changelog.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
**v0.1.4**

- Fixed collections
- Fixed UIKerbals attributes


**v0.1.3**

- More modularity
Expand Down
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
{
"MAJOR": 0,
"MINOR": 1,
"PATCH": 3,
"PATCH": 4,
"BUILD": 0
},
"KSP_VERSION":
Expand Down
Binary file modified [Source]/Distribution/SigmaReplacementsHeads.dll
Binary file not shown.
6 changes: 4 additions & 2 deletions [Source]/SigmaReplacements/Heads/CustomHead.cs
Original file line number Diff line number Diff line change
Expand Up @@ -55,13 +55,13 @@ void LoadFor(ProtoCrewMember kerbal)
{
Debug.Log("CustomHead.LoadFor", "kerbal = " + kerbal);

HeadInfo.hash = "";
Info.hash = "";
int? useChance = null;
string collection = "";

for (int i = 0; i < HeadInfo.DataBase?.Count; i++)
{
HeadInfo info = (HeadInfo)HeadInfo.DataBase[i].GetFor(kerbal);
string collection = "";

if (info != null)
{
Expand All @@ -72,6 +72,8 @@ void LoadFor(ProtoCrewMember kerbal)

if (info.useChance == 1 || useChance < info.useChance * 100)
{
Debug.Log("CustomSuit.LoadFor", "Matched suit useChance = " + info.useChance + " to generated chance = " + useChance + " %");
Debug.Log("CustomSuit.LoadFor", "Matched suit collection = " + info.collection + " to current collection = " + collection);
// Collection
collection = info.collection;

Expand Down
2 changes: 1 addition & 1 deletion [Source]/SigmaReplacements/Heads/Version.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ namespace Heads
[KSPAddon(KSPAddon.Startup.Instantly, true)]
public class Version : MonoBehaviour
{
public static readonly System.Version number = new System.Version("0.1.2");
public static readonly System.Version number = new System.Version("0.1.4");

void Awake()
{
Expand Down

0 comments on commit 8aba6d8

Please sign in to comment.