From ba33133be8b38efe0475968b419036a421da2bac Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Mon, 16 Jun 2014 23:47:25 -0400 Subject: add some docs --- bin/smt | 117 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 117 insertions(+) (limited to 'bin/smt') diff --git a/bin/smt b/bin/smt index ac901f6..4ea8746 100755 --- a/bin/smt +++ b/bin/smt @@ -1,12 +1,129 @@ #!/usr/bin/env perl use strict; use warnings; +# PODNAME: smt +# ABSTRACT: command line interface to Games::SMTNocturne::Demons use Getopt::Long; use List::Util 'max', 'sum0'; use Games::SMTNocturne::Demons; +=head1 SYNOPSIS + + smt [args...] + + Possible commands: + + demon + + demons_of_type + + all_demons + + fuse [--boss [,...] [--deathstones ] + [--kagutsuchi ] + + fusions_for [--boss [,...] [--max_level ] + + min_level_for [--boss [,...] [--max_level ] + + party_fusion [--boss [,...] [--max_level ] + [--deathstones ] [ ...] + +=head1 DESCRIPTION + +This program exposes the functionality from L on +the command line, as well as adding some useful functionality on top of it. + +=head1 COMMANDS + +=head2 demon + + $ smt demon Pixie + + +Displays the type, name, and base level for the given demon. + +=head2 demons_of_type + + $ smt demons_of_type Wilder + + + + + + + +Displays the type, name, and base level for all demons of a given type. + +=head2 all_demons + + $ smt all_demons + + + + + + + + + + + [...] + +Displays the type, name, and base level for all demons. + +=head2 fuse + + $ smt fuse Zhen Lilim + + +Displays the demon that would result from fusing C with C. + +=head2 fusions_for + + $ smt fusions_for 'Jack Frost' + Fuse with resulting in + Fuse with resulting in + Fuse with resulting in + Fuse with resulting in + [...] + +Displays all possible ways to create C via fusion. + +=head2 min_level_for + + $ smt min_level_for 'Jack Frost' + Level 4: + Fuse with resulting in + +Calculates the "easiest" way to fuse a given demon, where "easiest" is defined +as requiring the lowest leveled demons possible. + +=head2 party_fusion + + $ smt party_fusion Pixie 'Hua Po' Zhen + + + + : + Fuse with resulting in + : + Fuse with resulting in + Fuse with resulting in + : + Fuse with resulting in + Fuse with resulting in + : + Fuse with resulting in + + +Calculates all possible demons that can be fused from the given party, as well +as an example path to take in order to create that demon. + +=cut + sub _demon { Games::SMTNocturne::Demons::demon(@_) } sub _demons_of_type { Games::SMTNocturne::Demons::demons_of_type(@_) } sub _all_demons { Games::SMTNocturne::Demons::all_demons(@_) } -- cgit v1.2.3-54-g00ecf