示例#1
0
define('DEBUG',  in_array('--debug', $argv));

require __DIR__.'/autoload.php';

use WMHSim\Warlock;
use WMHSim\SimScenario;

$laps    = 5000;
$laps    = DEBUG ? 1 : $laps;

ob_start();

$attacker = str_replace("::", "\\", "\\WMHSim\\Factions\\{$argv[1]}");
$defender = str_replace("::", "\\", "\\WMHSim\\Factions\\{$argv[2]}");

$scenario = new SimScenario(new $attacker, new $defender);

$scenario->setBoostAttack((bool)array_intersect(array('--boosted-hit', 'boosted-both', '--boost-hit', '--boost-both'), $argv));
$scenario->setBoostDamage((bool)array_intersect(array('--boosted-dmg', 'boosted-both', '--boost-dmg', '--boost-both'), $argv));
$scenario->setChargeAttack((bool)array_intersect(array('--charge', '--charge-attack'), $argv));
$scenario->setLaps($laps);
$scenario->setDebug(DEBUG);

if (array_intersect(array('--incite'), $argv)) {
    $scenario->getAttacker()->addBuff('incite');
}
if (array_intersect(array('--chiller'), $argv)) {
    $scenario->getAttacker()->addBuff('chiller');
}
if (array_intersect(array('--warp-str'), $argv)) {
    $scenario->getAttacker()->addBuff('warp-str');
示例#2
0
<?php

ini_set('display_errors', 'On');
define('IS_CLI', php_sapi_name() == 'cli');
define('DEBUG',  true);

require __DIR__.'/autoload.php';

use WMHSim\SimScenario;

$laps    = 1000;
$laps    = DEBUG ? 1 : $laps;

ob_start();

$scenario = new SimScenario(new \WMHSim\Factions\Legion\Scythean(), new \WMHSim\Factions\Legion\Carnivean());

$scenario->setBoostAttack(false);
$scenario->setBoostDamage(false);
$scenario->setChargeAttack(false);
$scenario->setLaps($laps);
$scenario->setDebug(DEBUG);
// $scenario->getAttacker()->addBuff('incite');
// $scenario->getAttacker()->addBuff('chiller');
// $scenario->getAttacker()->addBuff('tide-of-blood');
// $scenario->getDefender()->addBuff('spiny-growth');
// $scenario->getDefender()->addBuff('warp-arm');

$scenario->run();

$output = ob_get_clean();
示例#3
0
<?php

ini_set('display_errors', 'On');
define('IS_CLI', php_sapi_name() == 'cli');
define('DEBUG',  false);

require __DIR__.'/../autoload.php';

use WMHSim\SimScenario;

$laps    = 1000;
$laps    = DEBUG ? 1 : $laps;

ob_start();

$scenario = new SimScenario(new \WMHSim\Factions\Legion\Rhyas(), new \WMHSim\Factions\Circle\FeralWarpwolf());

$scenario->setBoostAttack(true);
$scenario->setBoostDamage(true);
$scenario->setChargeAttack(false);
$scenario->setLaps($laps);
$scenario->setDebug(DEBUG);
$scenario->getDefender()->addBuff('warp-arm');

$scenario->run();

$output = ob_get_clean();
echo IS_CLI ? $output : str_replace("\n", "<br />", $output);
示例#4
0
<?php

ini_set('display_errors', 'On');
define('IS_CLI', php_sapi_name() == 'cli');
define('DEBUG',  false);

require __DIR__.'/../autoload.php';

use WMHSim\SimScenario;

$laps    = 1000;
$laps    = DEBUG ? 1 : $laps;

ob_start();

$scenario = new SimScenario(new \WMHSim\Factions\Legion\Carnivean(), new \WMHSim\Factions\Circle\FeralWarpwolf());

$scenario->setBoostAttack(false);
$scenario->setBoostDamage(false);
$scenario->setChargeAttack(false);
$scenario->setLaps($laps);
$scenario->setDebug(DEBUG);
$scenario->getAttacker()->addBuff('incite');
$scenario->getAttacker()->addBuff('chiller');
$scenario->getDefender()->addBuff('warp-str');

$scenario->run();

$output = ob_get_clean();
echo IS_CLI ? $output : str_replace("\n", "<br />", $output);