Skip to content

Commit

Permalink
last fixes + added proper south sprite for mechanoid workshop
Browse files Browse the repository at this point in the history
  • Loading branch information
rheirman committed Sep 7, 2018
1 parent 80d7e98 commit 95f3359
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 3 deletions.
Binary file modified Assemblies/WhatTheHack.dll
Binary file not shown.
2 changes: 1 addition & 1 deletion Defs/RecipeDefs/Recipes_Mechanoids.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<workSpeedStat>WTH_HackingMaintenanceSpeed</workSpeedStat>
<effectWorking>Repair</effectWorking>
<soundWorking>Recipe_Machining</soundWorking>
<workAmount>2000</workAmount>
<workAmount>1500</workAmount>
<unfinishedThingDef>UnfinishedComponent</unfinishedThingDef>
<ingredients>
<li>
Expand Down
7 changes: 5 additions & 2 deletions Source/WhatTheHack/Buildings/Building_HackingTable.cs
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,11 @@ public bool TryAddPawnForModification(Pawn pawn, RecipeDef recipeDef)
{
return false;
}
pawn.health.surgeryBills.AddBill(bill);
bill.Part = bodyparts.First();
if(pawn.health.surgeryBills.FirstShouldDoNow == null || pawn.health.surgeryBills.FirstShouldDoNow.recipe != WTH_DefOf.WTH_HackMechanoid)
{
pawn.health.surgeryBills.AddBill(bill);
bill.Part = bodyparts.First();
}
}
Need_Power powerNeed = pawn.needs.TryGetNeed<Need_Power>();
if (powerNeed != null)
Expand Down
1 change: 1 addition & 0 deletions Source/WhatTheHack/Jobs/JobDriver_CarryToHackingTable.cs
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ protected override IEnumerable<Toil> MakeNewToils()
{
this.pawn.carryTracker.TryDropCarriedThing(HackingTable.GetSleepingSlotPos(Building_HackingTable.SLOTINDEX), ThingPlaceMode.Direct, out Thing thing, null);
this.pawn.ClearAllReservations();
HackingTable.TryAddPawnForModification(Takee, WTH_DefOf.WTH_HackMechanoid);
Takee.Position = HackingTable.GetSleepingSlotPos(Building_HackingTable.SLOTINDEX);
},
defaultCompleteMode = ToilCompleteMode.Instant
Expand Down
Binary file modified Textures/Things/MechanoidWorkshop_south.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 95f3359

Please sign in to comment.