… | |
… | |
44 | Dam => "<b>Damage</b>, how much damage your melee/missile attack inflicts. Higher values indicate a greater amount of damage will be inflicted with each attack.", |
44 | Dam => "<b>Damage</b>, how much damage your melee/missile attack inflicts. Higher values indicate a greater amount of damage will be inflicted with each attack.", |
45 | Arm => "<b>Armour</b>, how much damage (from physical attacks) will be subtracted from successful hits made upon you. This value ranges between 0 to 99%. Current armour worn primarily determines Arm value. This is the same as the physical resistance.", |
45 | Arm => "<b>Armour</b>, how much damage (from physical attacks) will be subtracted from successful hits made upon you. This value ranges between 0 to 99%. Current armour worn primarily determines Arm value. This is the same as the physical resistance.", |
46 | Spd => "<b>Speed</b>, how fast you can move. The value of speed may range between nearly 0 (\"very slow\") to higher than 5 (\"lightning fast\"). Base speed is determined from the Dex and modified downward proportionally by the amount of weight carried which exceeds the Max Carry limit. The armour worn also sets the upper limit on speed.", |
46 | Spd => "<b>Speed</b>, how fast you can move. The value of speed may range between nearly 0 (\"very slow\") to higher than 5 (\"lightning fast\"). Base speed is determined from the Dex and modified downward proportionally by the amount of weight carried which exceeds the Max Carry limit. The armour worn also sets the upper limit on speed.", |
47 | WSp => "<b>Weapon Speed</b>, how many attacks you may make per unit of time (0.120s). Higher values indicate faster attack speed. Current weapon and Dex effect the value of weapon speed.", |
47 | WSp => "<b>Weapon Speed</b>, how many attacks you may make per unit of time (0.120s). Higher values indicate faster attack speed. Current weapon and Dex effect the value of weapon speed.", |
48 | ); |
48 | ); |
|
|
49 | |
|
|
50 | =item guard { BLOCK } |
|
|
51 | |
|
|
52 | Returns an object that executes the given block as soon as it is destroyed. |
|
|
53 | |
|
|
54 | =cut |
|
|
55 | |
|
|
56 | sub guard(&) { |
|
|
57 | bless \(my $cb = $_[0]), "CFClient::Guard" |
|
|
58 | } |
|
|
59 | |
|
|
60 | sub CFClient::Guard::DESTROY { |
|
|
61 | ${$_[0]}->() |
|
|
62 | } |
49 | |
63 | |
50 | package CFClient::PodToPango; |
64 | package CFClient::PodToPango; |
51 | |
65 | |
52 | use base Pod::POM::View::Text; |
66 | use base Pod::POM::View::Text; |
53 | |
67 | |
… | |
… | |
376 | ["unlock", sub { $::CONN->send ("lock " . pack "CN", 0, $self->{tag}) }], |
390 | ["unlock", sub { $::CONN->send ("lock " . pack "CN", 0, $self->{tag}) }], |
377 | ) |
391 | ) |
378 | : ( |
392 | : ( |
379 | ["lock", sub { $::CONN->send ("lock " . pack "CN", 1, $self->{tag}) }], |
393 | ["lock", sub { $::CONN->send ("lock " . pack "CN", 1, $self->{tag}) }], |
380 | ["$move_prefix all", sub { $::CONN->send ("move $targ $self->{tag} 0") }], |
394 | ["$move_prefix all", sub { $::CONN->send ("move $targ $self->{tag} 0") }], |
381 | ["$move_prefix n", |
395 | ["$move_prefix <n>", |
382 | sub { |
396 | sub { |
383 | do_n_dialog (sub { $::CONN->send ("move $targ $self->{tag} $_[0]") }) |
397 | do_n_dialog (sub { $::CONN->send ("move $targ $self->{tag} $_[0]") }) |
384 | } |
398 | } |
385 | ] |
399 | ] |
386 | ) |
400 | ) |