mirror of
https://github.com/ilyakooo0/urbit.git
synced 2024-12-25 16:05:27 +03:00
treaty: hardcode default ally
This commit is contained in:
parent
e8148f20dd
commit
f6b5377d8f
@ -1,6 +1,9 @@
|
|||||||
/- docket, *treaty
|
/- docket, *treaty
|
||||||
/+ default-agent, agentio, verb, dbug
|
/+ default-agent, agentio, verb, dbug
|
||||||
|%
|
|%
|
||||||
|
:: TODO: update before livenet deploy
|
||||||
|
++ default-ally ~zod
|
||||||
|
::
|
||||||
+$ card card:agent:gall
|
+$ card card:agent:gall
|
||||||
+$ state-0
|
+$ state-0
|
||||||
$: treaties=(map [=ship =desk] treaty)
|
$: treaties=(map [=ship =desk] treaty)
|
||||||
@ -23,9 +26,8 @@
|
|||||||
pass pass:io
|
pass pass:io
|
||||||
cc ~(. +> bowl)
|
cc ~(. +> bowl)
|
||||||
++ on-init
|
++ on-init
|
||||||
=/ sponsor=ship (sein:title [our now our]:bowl)
|
?: =(our.bowl default-ally) `this
|
||||||
?: =(our.bowl sponsor) `this
|
(on-poke %ally-update-0 !>([%add default-ally]))
|
||||||
(on-poke %ally-update-0 !>([%add sponsor]))
|
|
||||||
++ on-save !>(state)
|
++ on-save !>(state)
|
||||||
++ on-load
|
++ on-load
|
||||||
|= =vase
|
|= =vase
|
||||||
@ -120,8 +122,9 @@
|
|||||||
|= =path
|
|= =path
|
||||||
^- (unit (unit cage))
|
^- (unit (unit cage))
|
||||||
?+ path (on-peek:def path)
|
?+ path (on-peek:def path)
|
||||||
[%x %alliance ~] ``(alliance-update:cg:ca %ini entente)
|
[%x %alliance ~] ``(alliance-update:cg:ca %ini entente)
|
||||||
[%x %allies ~] ``(ally-update:cg:ca %ini allies)
|
[%x %default-ally ~] ``ship+!>(default-ally)
|
||||||
|
[%x %allies ~] ``(ally-update:cg:ca %ini allies)
|
||||||
::
|
::
|
||||||
[%x %treaties @ ~]
|
[%x %treaties @ ~]
|
||||||
=/ =ship (slav %p i.t.t.path)
|
=/ =ship (slav %p i.t.t.path)
|
||||||
|
1
pkg/garden/mar/ship.hoon
Symbolic link
1
pkg/garden/mar/ship.hoon
Symbolic link
@ -0,0 +1 @@
|
|||||||
|
../../base-dev/mar/ship.hoon
|
Loading…
Reference in New Issue
Block a user