miijs 1.5.3 → 1.5.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +5 -2
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -948,7 +948,10 @@ module.exports={
|
|
|
948
948
|
miiBin+="1000101011010010000001101000011100011000110001100100011001100110010101100111111110111100000001110101110001000101011101100000001110100100010000000000000000000000".slice(0,8*8);
|
|
949
949
|
miiBin+=mii.info.type==="Special"?"0":"1";
|
|
950
950
|
miiBin+="0000000";
|
|
951
|
-
|
|
951
|
+
for(var i=0;i<4;i++){
|
|
952
|
+
miiBin+=Math.floor(Math.random()*255).toString(2).padStart(8,"0");
|
|
953
|
+
}
|
|
954
|
+
miiBin+="01000101011101100000001110100100010000000000000000000000";
|
|
952
955
|
miiBin+=mii.info.birthday.toString(2).padStart(5,"0").slice(2,5);
|
|
953
956
|
miiBin+=mii.info.birthMonth.toString(2).padStart(4,"0");
|
|
954
957
|
miiBin+=mii.info.gender==="Male"?"0":"1";
|
|
@@ -1111,7 +1114,7 @@ module.exports={
|
|
|
1111
1114
|
studioMii[0x27] = mii.mouth.yPos;
|
|
1112
1115
|
studioMii[0x29] = mii.facialHair.mustacheType;
|
|
1113
1116
|
studioMii[1] = mii.facialHair.beardType;
|
|
1114
|
-
studioMii[0] = mii.facialHair.col;
|
|
1117
|
+
studioMii[0] = hairCols3DS.indexOf(mii.facialHair.col);
|
|
1115
1118
|
if (!studioMii[0]) studioMii[0] = 8;
|
|
1116
1119
|
studioMii[0x28] = mii.facialHair.mustacheSize;
|
|
1117
1120
|
studioMii[0x2A] = mii.facialHair.mustacheYPos;
|