Adjust price shop option to 0.5 to 2.0 range
This commit is contained in:
		
							parent
							
								
									8cdd745d69
								
							
						
					
					
						commit
						1103d77ca5
					
				| 
						 | 
				
			
			@ -372,7 +372,7 @@ def shuffle_shops(world, items, player: int):
 | 
			
		|||
        if 'p' in option:
 | 
			
		||||
            def price_adjust(price: int) -> int:
 | 
			
		||||
                # it is important that a base price of 0 always returns 0 as new price!
 | 
			
		||||
                return int(price * (0.5 + world.random.random() * 2))
 | 
			
		||||
                return int(price * (0.5 + world.random.random() * 1.5))
 | 
			
		||||
 | 
			
		||||
            def adjust_item(item):
 | 
			
		||||
                if item:
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue