You're welcome
also I found this thread meanwhile : https://ludeon.com/forums/index.php?topic=10895.0
also I found this thread meanwhile : https://ludeon.com/forums/index.php?topic=10895.0
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 Menu
also I found this thread meanwhile : https://ludeon.com/forums/index.php?topic=10895.0

(but that was nice as it force me to look at dll modding and i'm now intrigued ^^)
(even if know and understand a bit of the xml part of modding, I don't know nothing about dll modding) private void HuntingWork()
{
if (this.enabled[0] && (!this.thresholdsEnabled[0] || !Building_AutoHuntBeacon.suspended[0]))
{
IEnumerable<Pawn> enumerable =
from Pawn p in Find.get_ListerPawns().get_AllPawns()
where p.get_RaceProps().get_Animal() && !p.health.get_Dead() && p.get_Position().InHorDistOf(base.get_Position(), this.range[0])
select p;
foreach (Pawn current in enumerable)
{
if (this.huntedAnimals.Contains(current.def.defName) && Find.get_DesignationManager().DesignationOn(current, DesignationDefOf.Hunt) == null && (!this.thresholdsEnabled[0] || !Building_AutoHuntBeacon.suspended[0]))
{
Find.get_DesignationManager().AddDesignation(new Designation(current, DesignationDefOf.Hunt));
Building_AutoHuntBeacon.amountDesignated[0] += Mathf.RoundToInt(current.get_RaceProps().get_MeatAmount());
if (Building_AutoHuntBeacon.amount[0] + Building_AutoHuntBeacon.amountDesignated[0] >= Building_AutoHuntBeacon.upperThresholds[0])
{
Building_AutoHuntBeacon.suspended[0] = true;
}
}
}
}
Quote from: thoregan on July 05, 2015, 10:05:55 AMHaha ca existe encore ça ^^
[frenchfag]
Oh mon dieu un noëliste! fuyez pauvres fou!
[/frenchfag]