… | |
… | |
111 | $hitter->{neko_attack} = 0; |
111 | $hitter->{neko_attack} = 0; |
112 | } |
112 | } |
113 | |
113 | |
114 | $hitter->{neko_last_attack} = time; |
114 | $hitter->{neko_last_attack} = time; |
115 | $hitter->{neko_attack}++ |
115 | $hitter->{neko_attack}++ |
116 | or ext::schmorp_irc::do_notice "Neko-san was attacked by ". $hitter->name . "!\n"; |
116 | or ext::irc::do_notice "Neko-san was attacked by ". $hitter->name . "!\n"; |
117 | |
117 | |
118 | $hitter->message ("Meoow! (Please do not hurt me)") |
118 | $hitter->message ("Meoow! (Please do not hurt me)") |
119 | if !($hitter->{neko_attack} & 15); |
119 | if !($hitter->{neko_attack} & 15); |
120 | |
120 | |
121 | if ($hitter->{neko_attack} > 512) { |
121 | if ($hitter->{neko_attack} > 512) { |
… | |
… | |
134 | } |
134 | } |
135 | |
135 | |
136 | sub on_say { |
136 | sub on_say { |
137 | my ($self, $pl, $msg) = @_; |
137 | my ($self, $pl, $msg) = @_; |
138 | |
138 | |
139 | ext::schmorp_irc::do_notice (sprintf "[Neko-fon] %s: %s\n", $pl->ob->name, $msg); |
139 | ext::irc::do_notice (sprintf "[Neko-fon] %s: %s\n", $pl->ob->name, $msg); |
140 | } |
140 | } |
141 | |
141 | |
142 | cf::object::attachment "Nekosan", package => __PACKAGE__; |
142 | cf::object::attachment "Nekosan", package => __PACKAGE__; |
143 | |
143 | |