mirror of
https://github.com/vegapnk/RJW-Genes.git
synced 2024-08-15 00:23:31 +00:00
Improvements to Spawning
This commit is contained in:
parent
13630e6e7c
commit
7f1fa01abd
2 changed files with 19 additions and 0 deletions
|
@ -97,8 +97,12 @@ namespace RJW_Genes
|
|||
Thing cum = ThingMaker.MakeThing(cumDef);
|
||||
cum.Position = cell;
|
||||
int stacks = Math.Max(1, (int)(hediff.Severity * 3));
|
||||
stacks = Math.Min(stacks, 75); // 75 is the default max stacksize ...
|
||||
cum.stackCount = stacks;
|
||||
cum.SpawnSetup(map, false);
|
||||
|
||||
//TODO: Reduce this ... better?
|
||||
hediff.Severity -= stacks / 50;
|
||||
}
|
||||
|
||||
private int ticksLeft;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue