summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2025-01-30 21:48:43 -0300
committerJesusaves <cpntb1@ymail.com>2025-01-30 21:48:43 -0300
commit369383cc68625ddfa9b2129b8a459bdae754a004 (patch)
tree3936d07a1c09b7a83a89488ecf3ffd998ec8cdad
parente1092f723ff51735f06f19bf0dab81bb203e6f35 (diff)
downloadserverdata-369383cc68625ddfa9b2129b8a459bdae754a004.tar.gz
serverdata-369383cc68625ddfa9b2129b8a459bdae754a004.tar.bz2
serverdata-369383cc68625ddfa9b2129b8a459bdae754a004.tar.xz
serverdata-369383cc68625ddfa9b2129b8a459bdae754a004.zip
Alright, paper isn't SO likely...
-rw-r--r--npc/019-4-1/ofelia.txt18
1 files changed, 13 insertions, 5 deletions
diff --git a/npc/019-4-1/ofelia.txt b/npc/019-4-1/ofelia.txt
index d9adddc03..4f6f92223 100644
--- a/npc/019-4-1/ofelia.txt
+++ b/npc/019-4-1/ofelia.txt
@@ -174,11 +174,23 @@ function _spin {
}
.@type$ = any("Box", "Dye", "Food", "Tea", "Cake", "Potion", "Exploration Utility", "Paper");
.@amount = 1;
+ // Pattern A: 1 + a third prob
if (.@type$ == "Food") {
.@item = relative_array_random(.food);
.@tmp = array_find(.food, .@item) + 1;
if (.@tmp)
.@amount = 1 + (.food[.@tmp] / 3);
+ // Pattern A': 1 but can be 2 if it is common
+ } else if (.@type$ == "Paper") {
+ .@item = relative_array_random(.paper);
+ .@tmp = array_find(.paper, .@item) + 1;
+ if (.@tmp)
+ .@amount = (.paper[.@tmp] >= 3 ? any(2,1) : 1);
+ // Pattern A'': 1 but can be 2 if Main Quest is advanced enough
+ } else if (.@type$ == "Potion") {
+ .@item = relative_array_random(.potions);
+ .@amount = any(1,(getq(General_Narrator) > 17 ? 2 : 1);
+ // Pattern B: Randomly 1~3
} else if (.@type$ == "Tea") {
.@item = relative_array_random(.tea);
.@amount = rand2(1,3);
@@ -188,13 +200,9 @@ function _spin {
} else if (.@type$ == "Exploration Utility") {
.@item = relative_array_random(.explore);
.@amount = rand2(1,3);
- } else if (.@type$ == "Potion") {
- .@item = relative_array_random(.potions);
- .@amount = any(1,(getq(General_Narrator) > 17 ? 2 : 1);
+ // Pattern C: Always 1
} else if (.@type$ == "Box") {
.@item = relative_array_random(.boxes);
- } else if (.@type$ == "Paper") {
- .@item = relative_array_random(.paper);
} else if (.@type$ == "Dye") {
.@item = relative_array_random(.dyes);
} else {