summaryrefslogtreecommitdiff
path: root/npc/000-0-0/chest.txt
diff options
context:
space:
mode:
Diffstat (limited to 'npc/000-0-0/chest.txt')
-rw-r--r--npc/000-0-0/chest.txt12
1 files changed, 4 insertions, 8 deletions
diff --git a/npc/000-0-0/chest.txt b/npc/000-0-0/chest.txt
index 8c332c844..2674400ac 100644
--- a/npc/000-0-0/chest.txt
+++ b/npc/000-0-0/chest.txt
@@ -17,16 +17,14 @@
.@questState = getq(ShipQuests_Arpan);
- if (.@questState == 0)
- {
+ if (.@questState == 0) {
npctalk3 l("You should talk to Magic Arpan first.");
end;
}
if (.busy == false)
{
- if (.@questState <= 1)
- {
+ if (.@questState == 1) {
inventoryplace CreasedShirt, 2;
setq1 ShipQuests_Arpan, 2;
getitem CreasedShirt, 1;
@@ -48,15 +46,13 @@ OnTimer220:
OnTimer500:
.busy = false; // unlock
- if (.dir == 0)
- {
+ if (.dir == 0) {
stopnpctimer; // stop here if the chest is closed
}
end;
OnUnTouch:
- if (getareausers(.x - 2, .y - 4, .x + 2, .y + 6) > 0 || .dir == 0)
- {
+ if (getareausers(.x - 2, .y - 4, .x + 2, .y + 6) > 0 || .dir == 0) {
end;
}
OnTimer30000: