This commit is contained in:
Team3
2026-09-05 11:07:43 +02:00
parent 124a55a03e
commit c62c6e551f
6 changed files with 176 additions and 247 deletions

View File

@@ -402,12 +402,10 @@ func notieren(human_id: String, nr: int) -> String:
var grund := slot_grund(human_id, nr)
if not Ursachen.ist_blocker(grund):
notiz_sperre = NOTIZ_SPERRE
notified.emit("Hier läuft nichts schief — %s ist einfach ihr Tag." %
Orte.text(grund), Color(1, 0.75, 0.55))
notified.emit("Nichts schief: %s" % Orte.text(grund), Color(1, 0.75, 0.55))
return "daneben"
if erkannt(human_id, nr):
notified.emit("Das hast du schon notiert: %s." % Orte.text(grund),
Color(0.8, 0.85, 1))
notified.emit("Schon notiert: %s" % Orte.text(grund), Color(0.8, 0.85, 1))
return "bekannt"
if not erkannt_slots.has(human_id):
erkannt_slots[human_id] = {}
@@ -586,7 +584,7 @@ func situationen_ticken(delta: float, wach: bool) -> void:
situation["rest"] = float(situation["rest"]) - delta
if float(situation["rest"]) <= 0.0:
var p := situation_problem()
notified.emit("Der Moment ist vorbei — %s bleibt." % Probleme.name_von(p),
notified.emit("Moment verpasst: %s" % Probleme.name_von(p),
Color(1, 0.75, 0.55))
situation = {}
situation_pause = SITUATION_PAUSE
@@ -631,8 +629,7 @@ func situation_sehen() -> void:
if not probleme_bekannt.has(id):
probleme_bekannt[id] = {}
probleme_bekannt[id][p] = true
notified.emit("Dahinter steckt: %s — %s" %
[Probleme.name_von(p), Probleme.LISTE[p]["kurz"]], Color(0.8, 0.95, 1))
notified.emit("Erkannt: %s" % Probleme.name_von(p), Color(0.8, 0.95, 1))
state_changed.emit()
@@ -670,15 +667,14 @@ func situation_anwenden(tech_id: String) -> Dictionary:
situation_pause = SITUATION_PAUSE
if id == active_mission:
progress[id] = minf(mission_progress(id) + SITUATION_GEWINN, MISSION_ZIEL)
notified.emit("%s trägt durch den Moment. (+%d %%)" %
notified.emit("%s trägt durch +%d %%" %
[TechDB.by_id(tech_id)["name"], int(SITUATION_GEWINN)], Color(0.6, 1, 0.7))
if problem_fortschritt(id, problem) >= PROBLEM_UEBERWINDEN:
if not ueberwunden.has(id):
ueberwunden[id] = {}
ueberwunden[id][problem] = true
res["ueberwunden"] = true
notified.emit("%s ist überwunden — dieser Moment kommt nicht wieder." %
Probleme.name_von(problem), Color(1, 0.85, 0.4))
notified.emit("%s überwunden" % Probleme.name_von(problem), Color(1, 0.85, 0.4))
state_changed.emit()
return res