Ye Xuan the Gambler

Ye Xuan the Gambler is an Event-triggered Secret that makes a special Adventure appear in some locations for 3 days. It is a chance-based minigame which can reward a large amount of Pills, treasures and manuals depending on the numbers of people you can send during the event period.
== Prerequisites and duration ==
Adventuring NPCs need to have equipped and more than 50 remaining Lifespan to playSettings\MapStories\MapStory_Special.xml.
The adventure can be triggered repeatedly as long as the Secret remains active. The Secret lasts for 3 days.
== Rules ==
The game can be played repeatedly during the same adventure, as long as Ye Xuan hasn't lost a total of 3 times. It is possible to adventure and trigger the story again until the secret ends to receive repeat rewards, with any quantity of adventurers. Ties don't count as either wins or losses.
# The players draws 2 non-repeating random numbers between 1 and 5. 
# Then Ye Xuan draws 2 non-repeating numbers from the numbers the players hasn't drawn.
# The player must guess the absolute difference between the sum of their numbers and the sum of Ye Xuan's numbers.
# Ye Xuan's guess is a random number between 0 and 6, inclusive
# The closest guess wins
== Outcomes ==
* If the player loses, the adventuring cultivator loses 50 years of lifespan
* in case of tie, nothing happens
* if the player wins, they receive a random reward as detailed below
== Best choices ==
Player's combination	Player's combination	Player's combination	Ye Xuan sum options	Ye Xuan sum options	Ye Xuan sum options	Best Choice	Outcome (/21)	Outcome (/21)	Outcome (/21)
#1 	#2 	Sum 	#1 	#2 	#3 	Best Choice	Win 	Draw 	Lose
1 	2 	3 	7 	8 	9 	5 	15 	4 	2
1 	3 	4 	6 	7 	9 	3 	13 	4 	4
1 	4 	5 	5 	7 	8 	2 	14 	4 	3
1 	5 	6 	5 	6 	7 	1 	17 	3 	1
2 	3 	5 	5 	6 	9 	1 	12 	3 	6
2 	4 	6 	4 	6 	8 	2 	16 	3 	2
2 	5 	7 	4 	5 	7 	2 	14 	4 	3
3 	4 	7 	3 	6 	7 	1 	12 	3 	6
3 	5 	8 	3 	5 	6 	3 	13 	4 	4
4 	5 	9 	3 	4 	5 	5 	15 	4 	2
On average if playing optimally, the player has a 141/210 (67.1%) chance of winning, 36/210 (17.1%) chance of drawing, and 33/210 (15.7%) chance of losing.
== Rewards ==
* 25% chance: get a reward from the combined Alchemy Recipes, Talisman Recipes, Location Manuals and Miracle Manuals drop pools. 
* 75% chance: get a reward from the Gift of the Master drop pool, consisting in cultivation treasures and Alchemy pills.
== Event generic details ==
The event associated is of type Secret and has roughly 1.4% chance to trigger among its type. It has no internal cooldown.
The adventure location is randomly chosen among these locations, as long as they're unlocked:
* Riverback City
* Seascape
* Snaketail Village
* City of Abundance
* City of Desolation
* Riverbank Plains
* Central Plain
* Reed Village
* Blossomfall
* Ratoon Village
* Sunstop Town
* Galepeak Town
== References ==
Category:Events
Category:Secrets
Category:Special Adventures