Home
last modified time | relevance | path

Searched refs:mon (Results 1 – 25 of 85) sorted by relevance

1234

/openbsd-src/games/monop/
H A Dprop.dat36 {0, 0, 1, 0, &mon[0], { 2, 10, 30, 90, 160, 250} },
37 {0, 0, 3, 0, &mon[0], { 4, 20, 60, 180, 320, 450} },
38 {0, 0, 6, 0, &mon[1], { 6, 30, 90, 270, 400, 550} },
39 {0, 0, 7, 0, &mon[1], { 6, 30, 90, 270, 400, 550} },
40 {0, 0, 9, 0, &mon[1], { 8, 40,100, 300, 450, 600} },
41 {0, 0, 11, 0, &mon[2], {10, 50,150, 450, 625, 750} },
42 {0, 0, 13, 0, &mon[2], {10, 50,150, 450, 625, 750} },
43 {0, 0, 14, 0, &mon[2], {12, 60,180, 500, 700, 900} },
44 {0, 0, 16, 0, &mon[3], {14, 70,200, 550, 750, 950} },
45 {0, 0, 17, 0, &mon[3], {14, 70,200, 550, 750, 950} },
[all …]
H A Dmon.dat1 /* $OpenBSD: mon.dat,v 1.4 2003/06/03 03:01:40 millert Exp $ */
2 /* $NetBSD: mon.dat,v 1.2 1995/03/23 08:34:49 cgd Exp $ */
32 * @(#)mon.dat 5.4 (Berkeley) 5/31/93
H A Dmonop.c164 for (mp = mon; mp < &mon[N_MON]; mp++) { in init_monops()
/openbsd-src/games/hack/
H A Dhack.fight.c171 struct monst *mon; in fightm() local
173 for(mon = fmon; mon; mon = mon->nmon) if(mon != mtmp) { in fightm()
174 if(DIST(mon->mx,mon->my,mtmp->mx,mtmp->my) < 3) in fightm()
176 return(hitmm(mtmp,mon)); in fightm()
204 hmon(struct monst *mon, struct obj *obj, int thrown) in hmon() argument
211 if(mon->data->mlet == 'c' && !uarmg){ in hmon()
214 done_in_by(mon); in hmon()
220 if(strchr(mlarge, mon->data->mlet)) { in hmon()
231 monnam(mon)); in hmon()
238 if(mon->data->mlet == 'O' && obj->otyp == TWO_HANDED_SWORD && in hmon()
[all …]
H A Dhack.potion.c288 potionhit(struct monst *mon, struct obj *obj) in potionhit() argument
291 boolean uclose, isyou = (mon == &youmonst); in potionhit()
299 uclose = (dist(mon->mx,mon->my) < 3); in potionhit()
302 botlnam, monnam(mon)); in potionhit()
303 if(rn2(5) && mon->mhp > 1) in potionhit()
304 mon->mhp--; in potionhit()
314 if(mon->mhp < mon->mhpmax) { in potionhit()
315 mon->mhp = mon->mhpmax; in potionhit()
316 pline("%s looks sound and hale again!", Monnam(mon)); in potionhit()
320 if(mon->mhpmax > 3) in potionhit()
[all …]
H A Dhack.do.c325 struct monst *mon; in dothrow() local
353 mon = u.ustuck; in dothrow()
354 bhitpos.x = mon->mx; in dothrow()
355 bhitpos.y = mon->my; in dothrow()
385 mon = boomhit(u.dx, u.dy); in dothrow()
386 if(mon == &youmonst) { /* the thing was caught */ in dothrow()
394 mon = bhit(u.dx, u.dy, (obj->otyp == ICE_BOX) ? 1 : in dothrow()
398 if(mon) { in dothrow()
400 wakeup(mon); in dothrow()
403 tmp = -1+u.ulevel+mon->data->ac+abon(); in dothrow()
[all …]
H A Dhack.zap.c475 struct monst *mon; in buzz() local
530 if((mon = m_at(sx,sy)) && in buzz()
531 (type != -1 || mon->data->mlet != 'D')) { in buzz()
532 wakeup(mon); in buzz()
533 if(rnd(20) < 18 + mon->data->ac) { in buzz()
534 int tmp = zhit(mon,abstype); in buzz()
535 if(mon->mhp < 1) { in buzz()
537 if(cansee(mon->mx,mon->my)) in buzz()
539 Monnam(mon), fltxt); in buzz()
540 mondied(mon); in buzz()
[all …]
H A Dhack.pri.c609 pmon(struct monst *mon) in pmon() argument
611 int show = (Blind && Telepat) || canseemon(mon); in pmon()
613 if(mon->mdispl){ in pmon()
614 if(mon->mdx != mon->mx || mon->mdy != mon->my || !show) in pmon()
615 unpmon(mon); in pmon()
617 if(show && !mon->mdispl){ in pmon()
618 atl(mon->mx,mon->my, in pmon()
619 (!mon->mappearance in pmon()
621 ) ? mon->data->mlet : mon->mappearance); in pmon()
622 mon->mdispl = 1; in pmon()
[all …]
H A Dhack.mon.c543 mfndpos(struct monst *mon, coord poss[9],int info[9], int flag) in mfndpos() argument
550 x = mon->mx; in mfndpos()
551 y = mon->my; in mfndpos()
554 pool = (mon->data->mlet == ';'); in mfndpos()
557 if(mon->mconf) { in mfndpos()
584 (!mon->mpeaceful && sengr_at("Elbereth", nx, ny))) { in mfndpos()
601 if(mon->mtrapseen & tt){ in mfndpos()
679 relmon(struct monst *mon) in relmon() argument
683 if(mon == fmon) fmon = fmon->nmon; in relmon()
685 for(mtmp = fmon; mtmp->nmon != mon; mtmp = mtmp->nmon) ; in relmon()
[all …]
H A Dhack.mkshop.c210 struct monst *mon; in mkzoo() local
239 mon = makemon( in mkzoo()
243 if(mon) mon->msleep = 1; in mkzoo()
/openbsd-src/usr.bin/at/
H A Dparsetime.c458 assign_date(struct tm *tm, int mday, int mon, int year) in assign_date() argument
480 (tm->tm_mon > mon ||(tm->tm_mon == mon && tm->tm_mday > mday))) in assign_date()
484 tm->tm_mon = mon; in assign_date()
504 int mday, wday, mon; in month() local
528 mon = sc_tokid - JAN; in month()
536 assign_date(tm, mday, mon, year); in month()
563 mon = atoi(sc_token); in month()
585 mday = mon; in month()
586 mon = x; in month()
590 year = (mon % 10000) - 1900; in month()
[all …]
/openbsd-src/usr.sbin/rpc.statd/
H A Dtest.c28 struct mon *argp; in sm_mon_1()
94 struct mon mon; local
105 mon.mon_id.mon_name = argv[1];
106 mon.mon_id.my_id.my_name = argv[1];
107 mon.mon_id.my_id.my_prog = SM_PROG;
108 mon.mon_id.my_id.my_vers = SM_VERS;
109 mon.mon_id.my_id.my_proc = 1; /* have it call sm_stat() !!! */
114 if (res = sm_mon_1(&mon, cli))
/openbsd-src/gnu/usr.bin/perl/cpan/Time-Local/t/
H A DLocal.t105 my ( $year, $mon, $mday, $hour, $min, $sec ) = @{$vals};
106 $mon--;
115 ->( $sec, $min, $hour, $mday, $mon, $y );
132 month => $mon,
135 "$sub( $sec, $min, $hour, $mday, $mon, $y )"
143 ->( $sec, $min, $hour, $mday, $mon, $y );
160 month => $mon,
163 "$sub( $sec, $min, $hour, $mday, $mon, $y )"
455 my ( $year, $mon, $mday, $hour, $min, $sec )
457 $mon
[all...]
/openbsd-src/gnu/usr.bin/perl/cpan/Time-Piece/t/
H A D07arith.t9 is($t->mon, 2);
14 is($t2->mon, 3);
19 is($t3->mon, 1);
25 is($t4->mon, 3);
31 is($t6->mon, 1);
36 is($t7->mon, 12);
41 is($t8->mon, 1);
46 is($t9->mon, 12);
H A D01base.t13 cmp_ok($t->mon, '==', 1, 'correct mon');
/openbsd-src/gnu/usr.bin/perl/dist/Devel-PPPort/devel/
H A Dupdate_release_date.pl16 my ( $sec, $min, $hour, $mday, $mon, $year, $wday, $yday, $isdst ) =
18 ++$mon;
21 my $human_ts = sprintf( "%04d-%02d-%02d", $year, $mon, $mday );
/openbsd-src/sys/arch/landisk/stand/boot/
H A Dgetsecs.c167 uint32_t mon, year; in getsecs()
180 mon = rtc_read(RS5C313_MON1); in getsecs()
181 mon += rtc_read(RS5C313_MON10) * 10; in getsecs()
/openbsd-src/gnu/usr.bin/cvs/contrib/
H A Dlog.in108 my ($sec,$min,$hour,$mday,$mon,$year,$wday,$yday,$isdst) = localtime;
135 $logfh->print ("Date:\t$days[$wday] $mos[$mon] $mday, $year @ $hour:" . sprintf("%02d", $min) . "\n…
140 …$mailfh->print ("Date:\t$days[$wday] $mos[$mon] $mday, $year @ $hour:" . sprintf("%02d", $min) . "…
H A Dlog_accum.in175 local($sec,$min,$hour,$mday,$mon,$year,$wday,$yday,$isdst) = localtime(time);
181 $year%100, $mon+1, $mday,
211 ($sec, $min, $hour, $mday, $mon, $year, $wday, $yday, $isdst, $zone, $gmtoff) =
225 $DoW[$wday], $mday, $MoY[$mon], $year,
/openbsd-src/gnu/usr.bin/perl/cpan/Time-Piece/
H A DPiece.pm201 sub mon { subroutine
361 sprintf("%d$sep%02d$sep%02d", $time->year, $time->mon, $time->[c_mday]);
369 sprintf("%02d$sep%02d$sep%d", $time->mon, $time->[c_mday], $time->year);
375 sprintf("%02d$sep%02d$sep%d", $time->[c_mday], $time->mon, $time->year);
394 my $jd = $time->_jd( $time->year, $time->mon, $time->mday,
846 if( @{$locales->{mon}} < 12 ){
847 @{$locales->{mon}} = @MON_LIST;
850 @MON_LIST= @{$locales->{mon}};
865 @{ $locales->{mon} } = @MON_LIST;
/openbsd-src/lib/librpcsvc/
H A Dsm_inter.x51 struct sm_stat_res SM_MON(struct mon) = 2;
85 struct mon { struct
/openbsd-src/gnu/usr.bin/perl/t/op/
H A Dtime.t35 ($sec,$min,$hour,$mday,$mon,$year,$wday,$yday,$isdst) = localtime($beg);
59 ($sec,$min,$hour,$mday,$mon,$year,$wday,$yday,$isdst) = localtime($beg);
61 ($sec,$min,$hour2,$mday,$mon,$year,$wday,$yday,$isdst) = localtime($beg);
66 ($sec,$min,$hour,$mday,$mon,$year,$wday,$yday,$isdst) = gmtime($beg);
/openbsd-src/usr.bin/ssh/
H A Dmonitor.c1586 monitor_openfds(struct monitor *mon, int do_logfds) in mm_answer_gss_accept_ctx()
1603 mon->m_recvfd = pair[0]; in mm_answer_gss_accept_ctx()
1604 mon->m_sendfd = pair[1]; in mm_answer_gss_accept_ctx()
1611 mon->m_log_recvfd = pair[0]; in mm_answer_gss_checkmic()
1612 mon->m_log_sendfd = pair[1]; in mm_answer_gss_checkmic()
1614 mon->m_log_recvfd = mon->m_log_sendfd = -1; in mm_answer_gss_checkmic()
1620 struct monitor *mon; in mm_answer_gss_checkmic()
1622 mon = xcalloc(1, sizeof(*mon)); in mm_answer_gss_checkmic()
1488 monitor_openfds(struct monitor * mon,int do_logfds) monitor_openfds() argument
1524 struct monitor *mon; monitor_init() local
1533 monitor_reinit(struct monitor * mon) monitor_reinit() argument
[all...]
/openbsd-src/sys/arch/alpha/alpha/
H A Dmcclock.c106 ct->mon = regs[MC_MONTH];
131 regs[MC_MONTH] = ct->mon;
H A Dclock.c92 dt.dt_mon = ct.mon; in rtc_gettime()
113 ct.mon = dt.dt_mon; in rtc_settime()

1234