Skip to content

Commit

Permalink
v1.101
Browse files Browse the repository at this point in the history
  • Loading branch information
juanosarg committed Apr 20, 2020
1 parent f268ed1 commit fd8d93f
Show file tree
Hide file tree
Showing 6 changed files with 20 additions and 12 deletions.
Binary file modified 1.1/Assemblies/VanillaPowerExpanded.dll
Binary file not shown.
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -71,19 +71,23 @@ public virtual void SetUpPowerVars()
public override void PostExposeData()
{
Thing thing = null;
if (Scribe.mode == LoadSaveMode.Saving && this.connectParent != null)
if ((this.parent.def.defName != "VPE_HelixienGenerator")&& (this.parent.def.defName != "VPE_IndustrialHelixienGenerator"))
{
thing = this.connectParent.parent;
}
Scribe_References.Look<Thing>(ref thing, "parentThing", false);
if (thing != null)
{
this.connectParent = ((ThingWithComps)thing).GetComp<CompPipe>();
}
if (Scribe.mode == LoadSaveMode.PostLoadInit && this.connectParent != null)
{
this.ConnectToTransmitter(this.connectParent, true);
if (Scribe.mode == LoadSaveMode.Saving && this.connectParent != null)
{
thing = this.connectParent.parent;
}
Scribe_References.Look<Thing>(ref thing, "parentThing", false);
if (thing != null)
{
this.connectParent = ((ThingWithComps)thing).GetComp<CompPipe>();
}
if (Scribe.mode == LoadSaveMode.PostLoadInit && this.connectParent != null)
{
this.ConnectToTransmitter(this.connectParent, true);
}
}

}

public override void PostSpawnSetup(bool respawningAfterLoad)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,11 @@ public override void PostDeSpawn(Map map)
public override void PostExposeData()
{
base.PostExposeData();
Scribe_Values.Look<bool>(ref this.powerOnInt, "powerOn", true, false);
if (this.parent.def.defName != "VPE_HelixienGenerator")
{
Scribe_Values.Look<bool>(ref this.powerOnInt, "powerOn", true, false);
}

}

public override void PostDraw()
Expand Down
Binary file not shown.

0 comments on commit fd8d93f

Please sign in to comment.