BTW, old grundwert128 is ..
grundwert128 = ware.get_besch()->get_preis()<<7 = preis*128
new grundwert128 is ..
grundwert128 = (ware.get_besch()->get_preis()*1000)/welt->get_settings().get_bonus_basefactor() = preis*1000/125 = preise*8
The value is very different between them.
Is this code really correct ? I doubt.
No reply for this ? Which means that this fomula is correct ?
Then, default bonus_basefactor 125 can get only 0.8% of the price. It was 12.8% before.
bonus_basefactor=1 can get full price.
bonus_basefactor=2 can get half of the price.
bonus_basefactor=1000 can get 0.1% of the price.
So, we can't set the price of between 100% and 50%.
I think this fomula below is better, which allows to use more flexible value.
const sint32 grundwert128 = ware.get_besch()->get_preis()*welt->get_settings().get_bonus_basefactor();
In this case.
bonus_basefactor=1000 can get full price.
bonus_basefactor=500 can get half of the price.
bonus_basefactor=1 can get 0.1% of the price.
How do you think about this ?