summaryrefslogtreecommitdiff
path: root/scenes/stockticker/stonks.gd
diff options
context:
space:
mode:
authorZoey Kitt <zoey.kitt@outlook.com>2024-11-16 17:31:04 -0600
committerZoey Kitt <zoey.kitt@outlook.com>2024-11-16 17:31:04 -0600
commit9f505c69edd093b807e6924d708993db253b2c92 (patch)
tree5b2ece4559b2cdc6cbb39a704aee1960c1a08e65 /scenes/stockticker/stonks.gd
parenta4a7851542db91d93b75bd42aa1c1df0edca0e90 (diff)
parent0806d809557c4c1bff35707b825e3475c816d0e6 (diff)
Merge branch 'main' into main-window
Diffstat (limited to 'scenes/stockticker/stonks.gd')
-rw-r--r--scenes/stockticker/stonks.gd5
1 files changed, 4 insertions, 1 deletions
diff --git a/scenes/stockticker/stonks.gd b/scenes/stockticker/stonks.gd
index 1279382..5cb0ab4 100644
--- a/scenes/stockticker/stonks.gd
+++ b/scenes/stockticker/stonks.gd
@@ -20,7 +20,7 @@ var darksouls_text: Label
var price_history = []
var base_pos_mult = 0.5 # no size limit
-var base_neg_mult = 0.5 # probably keep this below 1
+var base_neg_mult = 100.5 # probably keep this below 1
var hype_mult = 1.0
var hype_decr = 0.1
@@ -71,6 +71,7 @@ func draw_stonks(minval: Big, maxval: Big) -> void:
var pos = Vector2(x_pos, y_pos)
stonks.add_point(pos, index)
index += 1
+
func get_min_price() -> Big:
var minval = Big.new(-1)
@@ -135,6 +136,8 @@ func _on_timer_timeout() -> void:
new_price = Big.new(0)
shares = 0
shares_label.text = "Shares\nHeld:%d" % shares
+ $AudioStreamPlayer.play()
+ $ShakePivot.shake()
if len(price_history) >= MAX_PRICES:
price_history.pop_front()