@@ -24,18 +24,17 @@ var advice := [
2424 "If you find yourself surrounded by enemies, get out of there" ,
2525]
2626var player_died := false
27- var last_pickup :Item = null
2827func _ready ():
2928 if Items .level == 1 :
3029 Items .using_seed = Items .WorldRNG .seed
3130 $ HUD/Generating/UsefulAdvice .text = advice [randi ()% advice .size ()] + "\n "
3231 $ HUD/Generating/UsefulAdvice .text += "Seed: " + str (Items .using_seed )
3332var end_times : String
3433func _process (delta ):
35- if last_pickup == null :
34+ if Items . last_pickup == null :
3635 $ HUD/LastItem .texture = null
3736 else :
38- $ HUD/LastItem .texture = last_pickup .texture
37+ $ HUD/LastItem .texture = Items . last_pickup .texture
3938 if get_tree ().get_nodes_in_group ("Player" )[0 ].health .temperature > 30 :
4039 $ HUD/Hot .modulate .a = lerp ($ HUD/Hot .modulate .a , (get_tree ().get_nodes_in_group ("Player" )[0 ].health .temperature - 30 )/ 110.0 , 0.2 )
4140 else :
@@ -153,14 +152,14 @@ func _process(delta):
153152 $ HUD/ShortDesc .visible = true
154153 $ HUD/ShortDesc .text = Items .player_spells [i ].name
155154
156- if last_pickup != null and mouse .x > 4 and mouse .y > 184 and mouse .x < 20 and mouse .y < 200 :
155+ if Items . last_pickup != null and mouse .x > 4 and mouse .y > 184 and mouse .x < 20 and mouse .y < 200 :
157156 if Input .is_key_pressed (KEY_SHIFT ):
158157 $ HUD/Description .visible = true
159- $ HUD/Description/Name .text = last_pickup .name
160- $ HUD/Description/Description .text = last_pickup .description
158+ $ HUD/Description/Name .text = Items . last_pickup .name
159+ $ HUD/Description/Description .text = Items . last_pickup .description
161160 else :
162161 $ HUD/ShortDesc .visible = true
163- $ HUD/ShortDesc .text = last_pickup .name
162+ $ HUD/ShortDesc .text = Items . last_pickup .name
164163
165164 if Input .is_action_just_pressed ("Interact1" ) and clicked != - 1 :
166165 match clicked :
0 commit comments