mirror of
https://github.com/ilyakooo0/urbit.git
synced 2024-11-11 16:09:31 +03:00
added :ticket
This commit is contained in:
parent
5e39bd46d9
commit
1fbd634ff4
@ -687,9 +687,7 @@
|
||||
|= [tea=wire hen=duct hin=(hypo sign)]
|
||||
^- [p=(list move) q=_..^$]
|
||||
?: ?=([%auto @ @ @ @ ?(%y %v) ~] tea)
|
||||
~& %taking-auto
|
||||
?> ?=(%writ -.+.q.hin)
|
||||
~& %taking-auto-writ
|
||||
=+ our=(slav %p i.t.tea)
|
||||
=* sud i.t.t.tea
|
||||
=+ her=(slav %p i.t.t.t.tea)
|
||||
|
@ -414,7 +414,6 @@
|
||||
?(%init %veer %vega %verb) :: drop-throughs
|
||||
+>(mos :_(mos [hen %give +.sih]))
|
||||
%writ :: file exists
|
||||
~& > %dill-writ
|
||||
%= +>.$
|
||||
mos
|
||||
:_ mos
|
||||
|
33
main/app/ticket/core.hook
Normal file
33
main/app/ticket/core.hook
Normal file
@ -0,0 +1,33 @@
|
||||
!:
|
||||
|_ [hid=hide ~]
|
||||
++ poke-ticket-args
|
||||
|= [ost=bone you=ship her=@p num=?(~ [p=@ud ~])]
|
||||
:_ +>.$
|
||||
=+ n=?~(num 1 p.num)
|
||||
=+ ^= sep ^- @
|
||||
=+ mir=(clan her)
|
||||
?+ mir ~|(%ticket-clan !!)
|
||||
%king (bex 8)
|
||||
%duke (bex 16)
|
||||
%earl (bex 32)
|
||||
==
|
||||
:- [ost %give %nice ~]
|
||||
|-
|
||||
?: ?=(0 n) ~
|
||||
=+ ^= tic
|
||||
(,@p .^(%a (scot %p our.hid) %tick (scot %da lat.hid) (scot %p her) ~))
|
||||
%+ welp
|
||||
(spam ost "{<her>}: {<tic>}")
|
||||
$(her (add sep her), n (dec n))
|
||||
++ spam
|
||||
|= [ost=bone msg=tape]
|
||||
%+ turn (~(tap by sup.hid))
|
||||
|= [ost=bone *]
|
||||
:^ ost %give %rush
|
||||
:- %tang :_ ~
|
||||
leaf/msg
|
||||
++ peer
|
||||
|=
|
||||
*
|
||||
`+>
|
||||
--
|
15
main/mar/ticket-args/door.hook
Normal file
15
main/mar/ticket-args/door.hook
Normal file
@ -0,0 +1,15 @@
|
||||
::
|
||||
:::: /hoon/core/zing/pro
|
||||
::
|
||||
/? 314
|
||||
/- ticket-args
|
||||
|_ arg=ticket-args
|
||||
::
|
||||
++ grab :: convert from
|
||||
|%
|
||||
++ noun :: convert from %noun
|
||||
|= src=*
|
||||
^+ +>+
|
||||
+>+(arg (ticket-args src))
|
||||
--
|
||||
--
|
1
main/sur/ticket-args/gate.hook
Normal file
1
main/sur/ticket-args/gate.hook
Normal file
@ -0,0 +1 @@
|
||||
,[her=@p num=?(~ [p=@ud ~])]
|
Loading…
Reference in New Issue
Block a user