treaty: hardcode default ally

This commit is contained in:
Liam Fitzgerald 2021-09-21 14:52:54 +10:00
parent e8148f20dd
commit f6b5377d8f
2 changed files with 9 additions and 5 deletions

View File

@ -1,6 +1,9 @@
/- docket, *treaty
/+ default-agent, agentio, verb, dbug
|%
:: TODO: update before livenet deploy
++ default-ally ~zod
::
+$ card card:agent:gall
+$ state-0
$: treaties=(map [=ship =desk] treaty)
@ -23,9 +26,8 @@
pass pass:io
cc ~(. +> bowl)
++ on-init
=/ sponsor=ship (sein:title [our now our]:bowl)
?: =(our.bowl sponsor) `this
(on-poke %ally-update-0 !>([%add sponsor]))
?: =(our.bowl default-ally) `this
(on-poke %ally-update-0 !>([%add default-ally]))
++ on-save !>(state)
++ on-load
|= =vase
@ -121,6 +123,7 @@
^- (unit (unit cage))
?+ path (on-peek:def path)
[%x %alliance ~] ``(alliance-update:cg:ca %ini entente)
[%x %default-ally ~] ``ship+!>(default-ally)
[%x %allies ~] ``(ally-update:cg:ca %ini allies)
::
[%x %treaties @ ~]

1
pkg/garden/mar/ship.hoon Symbolic link
View File

@ -0,0 +1 @@
../../base-dev/mar/ship.hoon