feat: define action completion costs
This commit is contained in:
@@ -145,12 +145,21 @@ func _refresh_npc_inspector() -> void:
|
||||
var score_keys: Array = decision.scores.keys()
|
||||
score_keys.sort()
|
||||
var score_rows: Array[String] = []
|
||||
var rejection_rows: Array[String] = []
|
||||
for action_id in score_keys:
|
||||
if decision.rejections.has(action_id):
|
||||
rejection_rows.append(
|
||||
"%s — %s"
|
||||
% [_get_action_name(StringName(action_id)), String(decision.rejections[action_id])]
|
||||
)
|
||||
continue
|
||||
score_rows.append(
|
||||
"%s %.2f" % [_get_action_name(StringName(action_id)), float(decision.scores[action_id])]
|
||||
)
|
||||
if not score_rows.is_empty():
|
||||
score_text = "\n\nUtility\n" + "\n".join(score_rows)
|
||||
if not rejection_rows.is_empty():
|
||||
score_text += "\n\nUnavailable\n" + "\n".join(rejection_rows)
|
||||
var event_text := _build_event_history(npc)
|
||||
var housemate_text := _build_housemate_display(npc)
|
||||
npc_inspector_label.text = (
|
||||
|
||||
Reference in New Issue
Block a user