feat(runtime): render real Guild formation
This commit is contained in:
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user