Fix one-time lens coupon for female

Last commit fixed Orbis, this one fixes:
Henesys, Showa, NLC, Mu Lung, Ludibrium, Singapore, Amoria, Ariant
This commit is contained in:
P0nk
2022-08-11 21:14:26 +02:00
parent ae7b832e00
commit 6ea4e3cfc1
8 changed files with 8 additions and 8 deletions

View File

@@ -138,7 +138,7 @@ function action(mode, type, selection) {
cm.sendOk("I'm sorry, but I don't think you have our cosmetic lens coupon with you right now. Without the coupon, I'm afraid I can't do it for you..");
}
} else if (beauty == 3) {
var color = (colors[selection] / 100) % 100 | 0;
var color = (colors[selection] / 100) % 10 | 0;
if (cm.haveItem(5152100 + color)) {
cm.gainItem(5152100 + color, -1);

View File

@@ -125,7 +125,7 @@ function action(mode, type, selection) {
cm.sendOk("Hmm ... it looks like you don't have the coupon specifically for this place. Sorry to say this, but without the coupon, there's no plastic surgery for you...");
}
} else if (beauty == 3) {
var color = (colors[selection] / 100) % 100 | 0;
var color = (colors[selection] / 100) % 10 | 0;
if (cm.haveItem(5152100 + color)) {
cm.gainItem(5152100 + color, -1);

View File

@@ -144,7 +144,7 @@ function action(mode, type, selection) {
cm.sendOk("Hmm ... it looks like you don't have the coupon specifically for this place. Sorry to say this, but without the coupon, there's no plastic surgery for you...");
}
} else if (beauty == 3) {
var color = (colors[selection] / 100) % 100 | 0;
var color = (colors[selection] / 100) % 10 | 0;
if (cm.haveItem(5152100 + color)) {
cm.gainItem(5152100 + color, -1);

View File

@@ -130,7 +130,7 @@ function action(mode, type, selection) {
cm.sendOk("I'm sorry, but I don't think you have our cosmetic lens coupon with you right now. Without the coupon, I'm afraid I can't do it for you..");
}
} else if (beauty == 3) {
var color = (colors[selection] / 100) % 100 | 0;
var color = (colors[selection] / 100) % 10 | 0;
if (cm.haveItem(5152100 + color)) {
cm.gainItem(5152100 + color, -1);

View File

@@ -131,7 +131,7 @@ function action(mode, type, selection) {
cm.dispose();
}
} else if (beauty == 3) {
var color = (colors[selection] / 100) % 100 | 0;
var color = (colors[selection] / 100) % 10 | 0;
if (cm.haveItem(5152100 + color)) {
cm.gainItem(5152100 + color, -1);

View File

@@ -129,7 +129,7 @@ function action(mode, type, selection) {
cm.dispose();
}
} else if (beauty == 3) {
var color = (colors[selection] / 100) % 100 | 0;
var color = (colors[selection] / 100) % 10 | 0;
if (cm.haveItem(5152100 + color)) {
cm.gainItem(5152100 + color, -1);

View File

@@ -107,7 +107,7 @@ function action(mode, type, selection) {
cm.sendOk("I'm sorry, but I don't think you have our cosmetic lens coupon with you right now. Without the coupon, I'm afraid I can't do it for you..");
}
} else if (beauty == 3) {
var color = (colors[selection] / 100) % 100 | 0;
var color = (colors[selection] / 100) % 10 | 0;
if (cm.haveItem(5152100 + color)) {
cm.gainItem(5152100 + color, -1);

View File

@@ -106,7 +106,7 @@ function action(mode, type, selection) {
cm.sendOk("I'm sorry, but I don't think you have our cosmetic lens coupon with you right now. Without the coupon, I'm afraid I can't do it for you..");
}
} else if (beauty == 3) {
var color = (colors[selection] / 100) % 100 | 0;
var color = (colors[selection] / 100) % 10 | 0;
if (cm.haveItem(5152100 + color)) {
cm.gainItem(5152100 + color, -1);