extends Node2D var paintings_sold = 0 var paintings_total = 0 var paintings: Array = Array() # tracker variables for bid markers, proposing bids happens between numpad and audience var current_bid = 0 var final_bid = 0 var target_sales: int = 0 var total_sales: int = 0 # state tracker for a given painting's auction var bidding_open: bool = false func _ready() -> void: paintings_total = randi_range(7,10) target_sales = (paintings_total * 100000)/randf_range(1.25,2) # need to workshop the target sales generation process for more interesting numbers #var e = 0 #for painting in paintings: #if e <= paintings_total: #paintings.append() print("You have " + str(paintings_total) + " paintings. Sell them for at least $" + str(target_sales) + " or face the consequences!") pass func _on_gavel_gavel_hit(): bidding_open = not bidding_open if bidding_open == true: current_bid = target_sales/(paintings_total + 2) else: total_sales = total_sales + current_bid