2021-02-12 01:11:03 +01:00
|
|
|
import { Grammar } from "./grammar.js";
|
2021-02-10 15:25:14 +01:00
|
|
|
import { Misc } from "./misc.js";
|
|
|
|
|
|
|
|
const words = [ 'pore', 'pre', 'flor', 'lane', 'turlu', 'pin', 'a', 'alph', 'i', 'onse', 'iane', 'ane', 'zach', 'arri', 'ba', 'bo', 'bi',
|
|
|
|
'alta', 'par', 'pir', 'zor', 'zir', 'de', 'pol', 'tran', 'no', 'la','al' , 'pul', 'one', 'ner', 'nur' ];
|
|
|
|
|
|
|
|
/* -------------------------------------------- */
|
|
|
|
export class RdDNameGen {
|
|
|
|
|
|
|
|
static getName( msg, params ) {
|
2021-02-12 01:11:03 +01:00
|
|
|
let name = Misc.upperFirst( Misc.rollOneOf(words) + Misc.rollOneOf(words) )
|
2021-02-10 15:25:14 +01:00
|
|
|
//console.log(name);
|
|
|
|
ChatMessage.create( { content: `Nom : ${name}`, whisper: ChatMessage.getWhisperRecipients("GM") } );
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|