feat(runtime): render real Guild formation

This commit is contained in:
2026-08-13 23:19:45 +08:00
parent f44093a32f
commit bbad4e2df8
3 changed files with 445 additions and 89 deletions
+2 -2
View File
@@ -194,7 +194,7 @@ func commit_guild_response() -> Dictionary:
var cost := 12 if state.guild_response == "retain_loan" else 14
if state.coin < cost:
return _reject(Contracts.INSUFFICIENT_COIN)
var mapped_recruit := _mapped_guild_recruit() if state.guild_response == "add_recruit" else ""
var mapped_recruit := mapped_guild_recruit() if state.guild_response == "add_recruit" else ""
if state.guild_response == "add_recruit" and (mapped_recruit.is_empty() or mapped_recruit in state.field_order):
return _reject(Contracts.INVALID_ID)
state.guild_committed = true
@@ -427,7 +427,7 @@ func _domain_context(compat_context: Dictionary = {}) -> Dictionary:
"trained_slot": compat_context.get("trained_slot", state.trained_member),
}
func _mapped_guild_recruit() -> String:
func mapped_guild_recruit() -> String:
var key := "%s:%s" % [state.front_choice + ":" + state.rear_choice, state.adaptation_choice]
return {
"Hearthguard:Wayrunner:EQ-002": "Farstring",