mirror of
https://github.com/overte-org/overte.git
synced 2025-04-21 17:03:58 +02:00
Merge pull request #2124 from birarda/master
bot.js repair for wrong body when bot # < 20
This commit is contained in:
commit
1f1369367f
1 changed files with 1 additions and 3 deletions
|
@ -72,12 +72,10 @@ Avatar.position = firstPosition;
|
|||
// pick an integer between 1 and 20 for the face model for this bot
|
||||
botNumber = getRandomInt(1, 100);
|
||||
|
||||
newBodyFilePrefix = "defaultAvatar";
|
||||
|
||||
if (botNumber <= 20) {
|
||||
newFaceFilePrefix = "bot" + botNumber;
|
||||
newBodyFilePrefix = "defaultAvatar_body"
|
||||
} else {
|
||||
|
||||
if (botNumber <= 40) {
|
||||
newFaceFilePrefix = "superhero";
|
||||
} else if (botNumber <= 60) {
|
||||
|
|
Loading…
Reference in a new issue