25 lines
1.2 KiB
GDScript3
25 lines
1.2 KiB
GDScript3
|
|
extends "res://ui/menus/ModalMenu.gd"
|
||
|
|
|
||
|
|
# Where research data comes from, said at the moment the player finds out they
|
||
|
|
# have none.
|
||
|
|
#
|
||
|
|
# Both research screens used to answer a shortfall badly: the skill tree
|
||
|
|
# refused the node and said nothing at all, and the ship lab said "already
|
||
|
|
# queued or complete", which is not why it refused. Research data is the one
|
||
|
|
# currency in the game with a single non-obvious source - you take it off
|
||
|
|
# planets, and lab worlds carry most of it - so a player short of it needs
|
||
|
|
# telling where to go, not a silent button.
|
||
|
|
|
||
|
|
@onready var have_label: Label = $HaveLabel
|
||
|
|
@onready var detail_label: Label = $DetailLabel
|
||
|
|
|
||
|
|
|
||
|
|
func open_for_shortfall(needed: int, subject: String) -> void:
|
||
|
|
open_menu()
|
||
|
|
have_label.text = "%s NEEDS %d - YOU HAVE %d" % [
|
||
|
|
subject.to_upper(), needed, GameState.research_points]
|
||
|
|
detail_label.text = ("Research data is not mined and not built. It comes off worlds "
|
||
|
|
+ "you take from whatever is holding them, and a research lab world pays "
|
||
|
|
+ "several times what an ordinary one does.\n\n"
|
||
|
|
+ "Build a planet scanner to find the nearest lab world, fly there, and "
|
||
|
|
+ "destroy its garrison. What they were working on becomes yours.")
|