Quote from: SpaceDorf on October 23, 2017, 02:47:28 PMQuote from: DrMrEd on October 23, 2017, 02:22:08 PMTHAT :
it seemed a little overwhelming otherwise,
IS
THE
POINT
LOL dude - your point is undeniable
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
Show posts MenuQuote from: SpaceDorf on October 23, 2017, 02:47:28 PMQuote from: DrMrEd on October 23, 2017, 02:22:08 PMTHAT :
it seemed a little overwhelming otherwise,
IS
THE
POINT
public void FailConstruction(Pawn worker)
{
Map map = this.Map;
this.Destroy(DestroyMode.FailConstruction);
Blueprint_Build newBlueprint = (Blueprint_Build) null;
if (this.def.entityDefToBuild.blueprintDef != null)
{
newBlueprint = (Blueprint_Build) ThingMaker.MakeThing(this.def.entityDefToBuild.blueprintDef, (ThingDef) null);
newBlueprint.stuffToUse = this.Stuff;
newBlueprint.SetFactionDirect(this.Faction);
GenSpawn.Spawn((Thing) newBlueprint, this.Position, map, this.Rotation, false);
}
Lord lord = worker.GetLord();
if (lord != null)
lord.Notify_ConstructionFailed(worker, this, newBlueprint);
MoteMaker.ThrowText(this.DrawPos, map, "TextMote_ConstructionFail".Translate(), 6f);
if (this.Faction != Faction.OfPlayer || (double) this.WorkToMake <= 1400.0)
return;
Messages.Message("MessageConstructionFailed".Translate((object) this.Label, (object) worker.LabelShort), (GlobalTargetInfo) new TargetInfo(this.Position, map, false), MessageSound.Negative);
}
<SoundDef>
<defName>DesignateFailed</defName>
<eventNames />
<maxSimultaneous>1</maxSimultaneous>
<subSounds>
<li>
<onCamera>True</onCamera>
<grains>
<li Class="AudioGrain_Clip">
<clipPath>UI/Designate/DesignateFailed</clipPath>
</li>
</grains>
<volumeRange>
<min>19.11764</min>
<max>19.11764</max>
</volumeRange>
<sustainLoop>False</sustainLoop>
</li>
</subSounds>
</SoundDef>
public override IEnumerable<Gizmo> GetGizmos()
{
foreach (Gizmo baseGizmo in base.GetGizmos())
{
yield return baseGizmo;
}
yield return new Command_Action
{
defaultLabel = "CommandBedSetOwnerLabel".Translate(),
icon = ContentFinder<UnityEngine.Texture2D>.Get("UI/Commands/AssignOwner", true),
defaultDesc = "CommandBedSetOwnerDesc".Translate(),
action = delegate
{
Find.WindowStack.Add(new Dialog_AssignBuildingOwner(this));
},
hotKey = KeyBindingDefOf.Misc3
};
}
<thingClass>Building_BearTrap</thingClass>
damageInfo.SetBodyRegion(BodyPartHeight.Bottom, BodyPartDepth.Outside);