generation-jdr/lib/choixsoustype.php
2017-08-23 01:59:25 +01:00

20 lines
414 B
PHP

<?php
function choixsoustype($classe, $pnj)
{
$tabletype = array(
"Critique",
"CA",
"archers",
"desctructeur",
"désarmeur",
"2armescourte",
"2armeslongues",
"2mains",
"Monte"
);
$type=rand(0, count($tabletype)-1);
$pnj->setSousclasse($type);
}