Skip to content

Commit 8aba6d8

Browse files
authored
Heads v0.1.4
Heads v0.1.4
2 parents 812d399 + f5aa5fa commit 8aba6d8

File tree

6 files changed

+12
-4
lines changed

6 files changed

+12
-4
lines changed

Heads/Changelog.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
**v0.1.4**
2+
3+
- Fixed collections
4+
- Fixed UIKerbals attributes
5+
6+
17
**v0.1.3**
28

39
- More modularity
Binary file not shown.

Heads/GameData/Sigma/Replacements/Heads/Plugins/SigmaReplacementsHeads.version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
{
1414
"MAJOR": 0,
1515
"MINOR": 1,
16-
"PATCH": 3,
16+
"PATCH": 4,
1717
"BUILD": 0
1818
},
1919
"KSP_VERSION":
512 Bytes
Binary file not shown.

[Source]/SigmaReplacements/Heads/CustomHead.cs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,13 +55,13 @@ void LoadFor(ProtoCrewMember kerbal)
5555
{
5656
Debug.Log("CustomHead.LoadFor", "kerbal = " + kerbal);
5757

58-
HeadInfo.hash = "";
58+
Info.hash = "";
5959
int? useChance = null;
60+
string collection = "";
6061

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

6666
if (info != null)
6767
{
@@ -72,6 +72,8 @@ void LoadFor(ProtoCrewMember kerbal)
7272

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

[Source]/SigmaReplacements/Heads/Version.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ namespace Heads
88
[KSPAddon(KSPAddon.Startup.Instantly, true)]
99
public class Version : MonoBehaviour
1010
{
11-
public static readonly System.Version number = new System.Version("0.1.2");
11+
public static readonly System.Version number = new System.Version("0.1.4");
1212

1313
void Awake()
1414
{

0 commit comments

Comments
 (0)