Apply suggestions from code review

Co-authored-by: Lemongrass3110 <lemongrass@kstp.at>
This commit is contained in:
Jittapan Pluemsumran 2022-11-08 23:47:57 +07:00 committed by Atemo
parent c069b2d0f1
commit e76ef51793

View File

@ -32,7 +32,7 @@ sec_in02,126,178,3 script Kachua's Secret Box#bm 4_TREASURE_BOX,{
}
delitem("K_Secret_Key", 1);
getgroupitem(IG_KACHUA_SECRET_BOX);
mes "Kachua's Secret Box is opened!";
mes "Kachua's Secret Box was opened!";
mes "Were you lucky?";
specialeffect2 EF_VALLENTINE;
close;
@ -46,7 +46,7 @@ sec_in02,126,178,3 script Kachua's Secret Box#bm 4_TREASURE_BOX,{
mes "You have decided not to open the Box.";
close;
} else if (countitem("K_Secret_Key") < 10) {
mes "Not enough <ITEM>[Kachua Secret Key]<INFO>23919</INFO></ITEM>.";
mes "You do not have enough <ITEM>[Kachua Secret Key]<INFO>23919</INFO></ITEM>.";
close;
} else {
for (.@i = 1; .@i <= 10; ++.@i) {
@ -60,10 +60,10 @@ sec_in02,126,178,3 script Kachua's Secret Box#bm 4_TREASURE_BOX,{
}
delitem("K_Secret_Key", 1);
getgroupitem(IG_KACHUA_SECRET_BOX);
dispbottom "Kachua's Secret Box opened " + .@i + " times. It's kept opening.",0xFFFFFF;
dispbottom "Kachua's Secret Box was opened " + .@i + " times. It's kept opening.",0xFFFFFF;
specialeffect2 EF_VALLENTINE;
}
mes "Kachua's Secret Box is opened 10 times!";
mes "Kachua's Secret Box was opened 10 times!";
mes "Were you lucky?";
close;
}