… | |
… | |
205 | |
205 | |
206 | } elsif ($k eq "smoothing") { # cfplus-style smoothing |
206 | } elsif ($k eq "smoothing") { # cfplus-style smoothing |
207 | $ns->smoothing ($v); |
207 | $ns->smoothing ($v); |
208 | |
208 | |
209 | } elsif ($k eq "fxix") { |
209 | } elsif ($k eq "fxix") { |
|
|
210 | $v = 2 if $v > 2; |
210 | $ns->fxix ($v); |
211 | $ns->fxix ($v); |
|
|
212 | $setup{$k} = $v; |
211 | |
213 | |
212 | } elsif ($k eq "msg") { |
214 | } elsif ($k eq "msg") { |
|
|
215 | $v = 2 if $v > 2; |
213 | $ns->can_msg ($v); |
216 | $ns->can_msg ($v >= 2); |
|
|
217 | $setup{$k} = $v; |
|
|
218 | |
|
|
219 | } elsif ($k eq "xwidget") { |
|
|
220 | # eXperimental server-side widgets |
|
|
221 | $ns->{can_widget} = 1; |
214 | |
222 | |
215 | } elsif ($k eq "excmd") { |
223 | } elsif ($k eq "excmd") { |
216 | # we support it |
224 | # we support it |
217 | |
225 | |
218 | } else { |
226 | } else { |
… | |
… | |
476 | $pl->chargen_race_next; |
484 | $pl->chargen_race_next; |
477 | } |
485 | } |
478 | |
486 | |
479 | $pl->chargen_race_done; |
487 | $pl->chargen_race_done; |
480 | |
488 | |
|
|
489 | while () { |
|
|
490 | my $res = query $ns, cf::CS_QUERY_SINGLECHAR, |
|
|
491 | "Now choose a gender.\nPress 'f' to become female, and 'm' to become male.\n"; |
|
|
492 | |
|
|
493 | if ($res =~ /^[fF]/) { |
|
|
494 | $pl->gender (1); |
|
|
495 | last; |
|
|
496 | } elsif ($res =~ /^[mM]/) { |
|
|
497 | $pl->gender (0); |
|
|
498 | last; |
|
|
499 | } |
|
|
500 | } |
|
|
501 | |
|
|
502 | $ob->reply (undef, "Welcome to Crossfire!"); |
|
|
503 | |
481 | delete $pl->{deny_save}; |
504 | delete $pl->{deny_save}; |
482 | |
505 | |
483 | last; |
506 | last; |
484 | } |
507 | } |
485 | }); |
508 | }); |