generation-jdr/lib/choixsoustype.php
2017-08-16 16:33:29 +02:00

18 lines
317 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);
}