示例#1
0
 public virtual int getBlockId(float width, TreeGenBlocks blocks, TreeGen gen)
 {
     return
         (width < 0.3f || NoLogs?blocks.GetLeaves(width) :
              (blocks.otherLogBlockCode != null && gen.TriggerRandomOtherBlock() ? blocks.otherLogBlockId : blocks.logBlockId)
         );
 }
示例#2
0
 public override int getBlockId(float width, TreeGenBlocks blocks, TreeGen gen)
 {
     if (segment != 0 && width >= 0.3f)
     {
         return(blocks.trunkSegmentBlockIds[segment - 1]);
     }
     return(base.getBlockId(width, blocks, gen));
 }