update
This commit is contained in:
@@ -391,6 +391,18 @@ static func _anker_setzen() -> void:
|
||||
ANKER[key] = int(NETZ.andocken(tuer)["knoten"])
|
||||
|
||||
|
||||
## Was diesen Menschen nicht im Tagesablauf aufhält, sondern in Momenten.
|
||||
## Ein bis zwei Probleme -- die zweite Ebene neben den Ursachen.
|
||||
static func probleme_von(i: int) -> Array:
|
||||
var alle: Array = Probleme.LISTE.keys()
|
||||
var out: Array = [str(alle[i % alle.size()])]
|
||||
if i % 2 == 1:
|
||||
var zweites: String = str(alle[(i + 2) % alle.size()])
|
||||
if zweites != out[0]:
|
||||
out.append(zweites)
|
||||
return out
|
||||
|
||||
|
||||
## Woran der Traum dieses Menschen scheitert. Zwei bis drei Ursachen, nie alle.
|
||||
## Die erste hängt am Weg gleicher Nummer -- so ist der neueste Mensch immer
|
||||
## mit dem neuesten Weg anzugehen.
|
||||
@@ -462,6 +474,7 @@ static func _mensch(i: int) -> Dictionary:
|
||||
"problem": str(anliegen["problem"]),
|
||||
"tags": (anliegen["tags"] as Array).duplicate(),
|
||||
"ursachen": ursachen_von(i),
|
||||
"probleme": probleme_von(i),
|
||||
"mission": true,
|
||||
"heim": heim,
|
||||
"farbe": Color.from_hsv(fmod(0.02 + float(i) * 0.191, 1.0), 0.5, 0.8),
|
||||
@@ -495,15 +508,6 @@ static func _nachname(i: int) -> String:
|
||||
return str(NACHNAMEN[(i / VORNAMEN.size() + i) % NACHNAMEN.size()])
|
||||
|
||||
|
||||
## Die Tätigkeiten eines Menschen in der Reihenfolge seines Tages, ohne Dopplung.
|
||||
static func aktivitaeten(id: String) -> Array:
|
||||
var out: Array = []
|
||||
for e in by_id(id)["routine"]:
|
||||
if not out.has(e[2]):
|
||||
out.append(e[2])
|
||||
return out
|
||||
|
||||
|
||||
static func by_id(id: String) -> Dictionary:
|
||||
for h in LIST:
|
||||
if h["id"] == id:
|
||||
|
||||
Reference in New Issue
Block a user