HashLips / generative-art-opensource

Create generative art by using the canvas api and node js, feel free to contribute to this repo with new ideas.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

"addRarityPercentForLayer" not working as expected

turbopasi opened this issue · comments

Good day !

It seems that addRarityPercentForLayer method is not working for us as expected. Here is an example :

addRarityPercentForLayer( 'legendary', 'Hair', {
  'common' : 0, 
  'uncommon' : 1,
  'rare' : 8,
  'epic' : 33, 
  'legendary' : 58
});

With this setting we expect, that for "legendary" pictures, no "common" Hair is used. (common 0%).
In reality, "common" Hair is still being used for "legendary" pictures.

Is this by design, or are we missing something ?

Thanks for any advice !

Turned out we were looking at the wrong config file at that point. Everything working as expected.