items.js 38 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048
  1. /*jshint multistr:true*/
  2. var ITEM_STATCHANGE = 10; // constant
  3. var ITEM_STATCHANGE2 = 9; // constant
  4. function YouEatTitle(bCooked, pow) { return bCooked ? "Eat Cooked" : "Eat"; }
  5. function YouEatDescription(bCooked, pow) { return !bCooked ? "You eat the" : "You call on your ancestors and eat the"; }
  6. function WomanEatTitle(bCooked, pow) { return bCooked ? "Eats Cooked" : "Eats"; }
  7. function WomanEatDescription(bCooked, pow) { return !bCooked ? rival.name + " eats" : "You call on your ancestors and " + rival.name + " eats"; }
  8. function eatStatNut(char,stat,val,changeNatural){
  9. if(changeNatural==undefined || changeNatural){char.changeNatural(stat, val);}
  10. char[stat] += val;
  11. char.capTraits();
  12. char.calcPhysique();
  13. }
  14. // Breast Melon
  15. function eatMelonYou(bCooked, pow)
  16. {
  17. if (bCooked) player.goods--;
  18. if (player.Mods.breasts < 200) {
  19. // Can benefit
  20. player.Mods.breasts += pow + pow + bCooked ? 5 : 3;
  21. if (player.Mods.breasts > 200) player.Mods.breasts = 200;
  22. Message(NextWindow,
  23. "<h1>" + YouEatTitle(bCooked, pow) + " Melon</h1>\
  24. <p>" + YouEatDescription(bCooked, pow) + " melon and feel your ancestors spirit, teaching you how to make your women feed your children better.</p>");
  25. } else {
  26. // No effect
  27. Message(NextWindow,
  28. "<h1>" + YouEatTitle(bCooked, pow) + " Melon</h1>\
  29. <p>" + YouEatDescription(bCooked, pow) + " melon and your belly full</p>");
  30. }
  31. }
  32. function eatMelonWoman(bCooked, pow)
  33. {
  34. if (bCooked) player.goods--;
  35. redraw();
  36. if (rival.Mods.breasts < 200) {
  37. // Can benefit
  38. rival.Mods.breasts += pow + pow + bCooked ? 5 : 3;
  39. if (rival.Mods.breasts > 200) rival.Mods.breasts = 200;
  40. var ch = bCooked ? 80 : 20;
  41. if (rival.physique.breasts > 30 && getRandomInt(1, 100) < ch) {
  42. rival.physique.breastrows += 1;
  43. Message("",
  44. "<h1>" + rival.name + " " + WomanEatTitle(bCooked, pow) + " Melon</h1>\
  45. <p>" + WomanEatDescription(bCooked, pow) + " the melon....</p>", true);
  46. setTimeout(function() {
  47. $("#message").append("and " + rival.hisher + " breasts swell a little and grow a new set of breasts.</p>\
  48. <p align='center'><font size='-4'>click to continue</font></p>");
  49. $("#message").click(function() { $(".stats").show(); Camp(); });
  50. redraw();
  51. }, 1000);
  52. } else {
  53. Message("",
  54. "<h1>" + rival.name + " " + WomanEatTitle(bCooked, pow) + " Melon</h1>\
  55. <p>" + WomanEatDescription(bCooked, pow) + " the melon....</p>", true);
  56. setTimeout(function() {
  57. $("#message").append("and " + rival.hisher + " breasts swell a little.</p>\
  58. <p align='center'><font size='-4'>click to continue</font></p>");
  59. $("#message").click(function() { $(".stats").show(); Camp(); });
  60. redraw();
  61. }, 1000);
  62. }
  63. } else {
  64. // No effect
  65. Message(NextWindow,
  66. "<h1>" + rival.name + " " + WomanEatTitle(bCooked, pow) + " Melon</h1>\
  67. <p>" + WomanEatDescription(bCooked, pow) + " the melon and " + rival.hisher + " belly full</p>");
  68. }
  69. }
  70. // Small Breast Melon
  71. function eatSmallMelonYou(bCooked, pow)
  72. {
  73. if (bCooked) player.goods--;
  74. if (player.Mods.breasts > -20) {
  75. // Can benefit
  76. player.Mods.breasts -= bCooked ? 7 : 5;
  77. if (player.Mods.breasts < -20) player.Mods.breasts = -20;
  78. Message(NextWindow,
  79. "<h1>" + YouEatTitle(bCooked, pow) + " Small Melon</h1>\
  80. <p>" + YouEatDescription(bCooked, pow) + " melon and feel your bad ancestors spirit, you forget how to make your women feed your children.</p>");
  81. } else {
  82. // No effect
  83. Message(NextWindow,
  84. "<h1>" + YouEatTitle(bCooked, pow) + " Small Melon</h1>\
  85. <p>" + YouEatDescription(bCooked, pow) + " small melon and your belly full</p>");
  86. }
  87. }
  88. function eatSmallMelonWoman(bCooked, pow)
  89. {
  90. if (bCooked) player.goods--;
  91. redraw();
  92. if (rival.Mods.breasts > -20) {
  93. // Can benefit
  94. rival.Mods.breasts -= bCooked ? 7 : 5;
  95. if (rival.Mods.breasts < -20) rival.Mods.breasts = -20;
  96. Message("",
  97. "<h1>" + rival.name + " " + WomanEatTitle(bCooked, pow) + " Small Melon</h1>\
  98. <p>" + WomanEatDescription(bCooked, pow) + " the small melon....</p>", true);
  99. setTimeout(function() {
  100. $("#message").append("and " + rival.hisher + " breasts shrink a little.</p>\
  101. <p align='center'><font size='-4'>click to continue</font></p>");
  102. $("#message").click(function() { $(".stats").show(); Camp(); });
  103. redraw();
  104. }, 1000);
  105. } else {
  106. // No effect
  107. Message(NextWindow,
  108. "<h1>" + rival.name + " " + WomanEatTitle(bCooked, pow) + " Small Melon</h1>\
  109. <p>" + WomanEatDescription(bCooked, pow) + " the melon and " + rival.hisher + " belly full</p>");
  110. }
  111. }
  112. // Paw Fruit
  113. function eatPawFruitYou(bCooked, pow)
  114. {
  115. if (bCooked) player.goods--;
  116. player.physique.breastrows += bCooked ? 2 : 1;
  117. if (player.physique.tail < 20) {
  118. player.physique.tail += 1;
  119. player.physique.tailtype = 3;
  120. }
  121. redraw();
  122. Message(NextWindow,
  123. "<h1>" + YouEatTitle(bCooked, pow) + " Fruit</h1>\
  124. <p>" + YouEatDescription(bCooked, pow) + " melon and feel your ancestors spirit, your chest and rear feel strange.</p>");
  125. }
  126. function eatPawFruitWoman(bCooked, pow)
  127. {
  128. if (bCooked) player.goods--;
  129. redraw();
  130. rival.physique.breastrows += bCooked ? 2 : 1;
  131. if (rival.physique.tail < 20) {
  132. rival.physique.tail += 1;
  133. rival.physique.tailtype = 3;
  134. }
  135. Message("",
  136. "<h1>" + rival.name + " " + WomanEatTitle(bCooked, pow) + " Fruit</h1>\
  137. <p>" + WomanEatDescription(bCooked, pow) + " the fruit....</p>", true);
  138. setTimeout(function() {
  139. $("#message").append("and row a new set of breasts");
  140. if (rival.physique.tail == 1) $("#message").append(" and grows a furry tail");
  141. $("#message").append(".</p><p align='center'><font size='-4'>click to continue</font></p>");
  142. $("#message").click(function() { $(".stats").show(); Camp(); });
  143. redraw();
  144. }, 1000);
  145. }
  146. // Cock Mushroom
  147. function eatMushroomYou(bCooked, pow)
  148. {
  149. if (!bCooked) {
  150. if (player.Mods.cock < 20) {
  151. // Can benefit
  152. player.Mods.cock += 1;
  153. redraw();
  154. if (player.Mods.cock == 1) {
  155. Message(NextWindow,
  156. "<h1>" + YouEatTitle(bCooked, pow) + " Mushroom</h1>\
  157. <p>" + YouEatDescription(bCooked, pow) + " mushroom and you feel the power of your ancestors surge in your groin and you grow a cock!</p>");
  158. } else {
  159. Message(NextWindow,
  160. "<h1>" + YouEatTitle(bCooked, pow) + " Mushroom</h1>\
  161. <p>" + YouEatDescription(bCooked, pow) + " mushroom and you feel your cock stiffen and swells with the power of your ancestors!</p>");
  162. }
  163. return;
  164. }
  165. } else {
  166. player.goods--;
  167. if (player.Mods.cock > 0) {
  168. // Can benefit
  169. player.Mods.cock -= 1;
  170. // check cock
  171. if (player.Mods.cock === 0 && !player.checkCockNonFuta()) {
  172. // No longer has a cock
  173. player.unFuta();
  174. player.capTraits();
  175. player.calcPhysique();
  176. redraw();
  177. Message(NextWindow,
  178. "<h1>" + YouEatTitle(bCooked, pow) + " Mushroom</h1>\
  179. <p>" + YouEatDescription(bCooked, pow) + " mushroom and you feel your cock soften and shrink with the power of your ancestors! Your cock vanishes and you now a woman!!</p>");
  180. } else {
  181. redraw();
  182. Message(NextWindow,
  183. "<h1>" + YouEatTitle(bCooked, pow) + " Mushroom</h1>\
  184. <p>" + YouEatDescription(bCooked, pow) + " mushroom and you feel your cock soften and shrink with the power of your ancestors!</p>");
  185. }
  186. return;
  187. }
  188. }
  189. // No effect
  190. Message(NextWindow,
  191. "<h1>" + YouEatTitle(bCooked, pow) + " Mushroom</h1>\
  192. <p>" + YouEatDescription(bCooked, pow) + " mushroom and your belly full</p>");
  193. }
  194. function eatMushroomWoman(bCooked, pow)
  195. {
  196. redraw();
  197. if (bCooked) {
  198. player.goods--;
  199. if (rival.Mods.cock > 0) {
  200. // Can benefit
  201. rival.Mods.cock -= 1;
  202. Message("",
  203. "<h1>" + rival.name + " " + WomanEatTitle(bCooked, pow) + " Mushroom</h1>\
  204. <p>" + WomanEatDescription(bCooked, pow) + " the mushroom....</p>", true);
  205. setTimeout(function() {
  206. if (rival.Mods.cock === 0 && !rival.checkCockNonFuta()) {
  207. rival.unFuta();
  208. rival.capTraits();
  209. rival.calcPhysique();
  210. $("#message").append("and the power of your ancestors fill " + rival.himher + " and " + rival.hisher() + " cock vanishes.</p>");
  211. } else $("#message").append("and " + rival.hisher + " cock shrinks.</p>");
  212. $("#message").append("<p align='center'><font size='-4'>click to continue</font></p>");
  213. $("#message").click(function() { $(".stats").show(); Camp(); });
  214. redraw();
  215. return;
  216. }, 1000);
  217. return;
  218. }
  219. } else {
  220. if (rival.Mods.cock < 20) {
  221. // Can benefit
  222. rival.Mods.cock += 1;
  223. Message("",
  224. "<h1>" + rival.name + " " + WomanEatTitle(bCooked, pow) + " Mushroom</h1>\
  225. <p>" + WomanEatDescription(bCooked, pow) + " the mushroom....</p>", true);
  226. setTimeout(function() {
  227. if (rival.Mods.cock == 1 && rival.isFemale()) $("#message").append("and the power of your ancestors fill " + rival.himher + " and " + rival.heshe() + " grows a cock.</p>");
  228. else $("#message").append("and " + rival.hisher + " cock swells.</p>");
  229. $("#message").append("<p align='center'><font size='-4'>click to continue</font></p>");
  230. $("#message").click(function() { $(".stats").show(); Camp(); });
  231. redraw();
  232. return;
  233. }, 1000);
  234. return;
  235. }
  236. }
  237. // No effect
  238. Message(NextWindow,
  239. "<h1>" + rival.name + " " + WomanEatTitle(bCooked, pow) + " Mushroom</h1>\
  240. <p>" + WomanEatDescription(bCooked, pow) + " the mushroom and " + rival.hisher + " belly full</p>");
  241. }
  242. // Twin Cock Mushroom
  243. function eatTwinMushroomYou(bCooked, pow)
  244. {
  245. if (bCooked) {
  246. player.goods--;
  247. if (player.physique.gentialscnt == 2 || player.physique.gentialscnt == 3) {
  248. // Can benefit
  249. if (player.physique.gentialscnt == 3) player.physique.gentialscnt = 2;
  250. else player.physique.gentialscnt = 1;
  251. redraw();
  252. if (player.physique.gentialscnt == 2) {
  253. Message(NextWindow,
  254. "<h1>" + YouEatTitle(bCooked, pow) + " Split Mushroom</h1>\
  255. <p>" + YouEatDescription(bCooked, pow) + " mushroom and you feel your cocks stiffen and they merge into a pair of cocks!</p>");
  256. } else {
  257. Message(NextWindow,
  258. "<h1>" + YouEatTitle(bCooked, pow) + " Split Mushroom</h1>\
  259. <p>" + YouEatDescription(bCooked, pow) + " mushroom and you feel your cocks stiffen and they merge into a single cock!</p>");
  260. }
  261. return;
  262. }
  263. } else {
  264. if (player.physique.gentialscnt != 2) {
  265. // Can benefit
  266. if (player.Mods.cock < 20) player.Mods.cock += 1;
  267. if (player.physique.gentialscnt == 1) {
  268. Message(NextWindow,
  269. "<h1>" + YouEatTitle(bCooked, pow) + " Split Mushroom</h1>\
  270. <p>" + YouEatDescription(bCooked, pow) + " mushroom and you feel your cock stiffen and swells with the power of your ancestors, but then it splits in two!</p>");
  271. } else {
  272. Message(NextWindow,
  273. "<h1>" + YouEatTitle(bCooked, pow) + " Split Mushroom</h1>\
  274. <p>" + YouEatDescription(bCooked, pow) + " mushroom and you feel your cocks stiffen and swells with the power of your ancestors, but then they merge into two cocks!</p>");
  275. }
  276. player.physique.gentialscnt = 2;
  277. redraw();
  278. return;
  279. }
  280. }
  281. // No effect
  282. Message(NextWindow,
  283. "<h1>" + YouEatTitle(bCooked, pow) + " Mushroom</h1>\
  284. <p>" + YouEatDescription(bCooked, pow) + " mushroom and your belly full</p>");
  285. }
  286. function eatTwinMushroomWoman(bCooked, pow)
  287. {
  288. redraw();
  289. if (bCooked) {
  290. player.goods--;
  291. if (rival.physique.gentialscnt == 2 || rival.physique.gentialscnt == 3) {
  292. // Can benefit
  293. Message("",
  294. "<h1>" + rival.name + " " + WomanEatTitle(bCooked, pow) + " Twin Mushroom</h1>\
  295. <p>" + WomanEatDescription(bCooked, pow) + " the twin mushroom....</p>", true);
  296. setTimeout(function() {
  297. if (rival.physique.gentialscnt == 3) $("#message").append("and " + rival.hisher + " cocks shrink and merge into a two cocks!</p>");
  298. else if (rival.physique.gentialscnt == 2) $("#message").append("and " + rival.hisher + " cocks swells and join until you have a single cock only!</p>");
  299. else $("#message").append("and " + rival.hisher + " cock shrinks.</p>");
  300. if (rival.physique.gentialscnt == 3) rival.physique.gentialscnt = 2;
  301. else rival.physique.gentialscnt = 1;
  302. $("#message").append("<p align='center'><font size='-4'>click to continue</font></p>");
  303. $("#message").click(function() { $(".stats").show(); Camp(); });
  304. redraw();
  305. return;
  306. }, 1000);
  307. return;
  308. }
  309. } else {
  310. if (rival.physique.gentialscnt != 2) {
  311. // Can benefit
  312. if (rival.Mods.cock < 20) rival.Mods.cock += 1;
  313. Message("",
  314. "<h1>" + rival.name + " " + WomanEatTitle(bCooked, pow) + " Twin Mushroom</h1>\
  315. <p>" + WomanEatDescription(bCooked, pow) + " the twin mushroom....</p>", true);
  316. setTimeout(function() {
  317. if (rival.Mods.cock == 1) $("#message").append("and the power of your ancestors fill " + rival.himher + " and " + rival.heshe() + " grows a pair of cocks.</p>");
  318. else {
  319. if (rival.physique.gentialscnt == 1) $("#message").append("and " + rival.hisher + " cock swells and splits in two!</p>");
  320. else if (rival.physique.gentialscnt == 3) $("#message").append("and " + rival.hisher + " cocks swells and join until there are only two!</p>");
  321. else $("#message").append("and " + rival.hisher + " cock swells.</p>");
  322. }
  323. rival.physique.gentialscnt = 2;
  324. $("#message").append("<p align='center'><font size='-4'>click to continue</font></p>");
  325. $("#message").click(function() { $(".stats").show(); Camp(); });
  326. redraw();
  327. return;
  328. }, 1000);
  329. return;
  330. }
  331. }
  332. // No effect
  333. Message(NextWindow,
  334. "<h1>" + rival.name + " " + WomanEatTitle(bCooked, pow) + " Mushroom</h1>\
  335. <p>" + WomanEatDescription(bCooked, pow) + " the mushroom and " + rival.hisher + " belly full</p>");
  336. }
  337. // Tri Creature
  338. function eatTriCreatureYou(bCooked, pow)
  339. {
  340. if (bCooked) {
  341. player.goods--;
  342. if (player.physique.gentialscnt == 2 || player.physique.gentialscnt == 3) {
  343. // Can benefit
  344. if (player.physique.gentialscnt == 3) player.physique.gentialscnt = 2;
  345. else player.physique.gentialscnt = 1;
  346. redraw();
  347. if (player.physique.gentialscnt == 2) {
  348. Message(NextWindow,
  349. "<h1>" + YouEatTitle(bCooked, pow) + " Split Mushroom</h1>\
  350. <p>" + YouEatDescription(bCooked, pow) + " mushroom and you feel your cocks stiffen and they merge into a pair of cocks!</p>");
  351. } else {
  352. Message(NextWindow,
  353. "<h1>" + YouEatTitle(bCooked, pow) + " Split Mushroom</h1>\
  354. <p>" + YouEatDescription(bCooked, pow) + " mushroom and you feel your cocks stiffen and they merge into a single cock!</p>");
  355. }
  356. return;
  357. }
  358. } else {
  359. if (player.physique.gentialscnt != 3) {
  360. // Can benefit
  361. player.Mods.cock += 1;
  362. player.physique.gentialscnt = 3;
  363. redraw();
  364. Message(NextWindow,
  365. "<h1>" + YouEatTitle(bCooked, pow) + " Tri-Seathing</h1>\
  366. <p>" + YouEatDescription(bCooked, pow) + " sea creature and you feel your cock stiffen and swells with the power of your ancestors, but then it splits into three cocks!</p>");
  367. return;
  368. }
  369. }
  370. // No effect
  371. Message(NextWindow,
  372. "<h1>" + YouEatTitle(bCooked, pow) + " Thing</h1>\
  373. <p>" + YouEatDescription(bCooked, pow) + " thing and your belly full</p>");
  374. }
  375. function eatTriCreatureWoman(bCooked, pow)
  376. {
  377. redraw();
  378. if (bCooked) {
  379. player.goods--;
  380. if (rival.physique.gentialscnt == 2 || rival.physique.gentialscnt == 3) {
  381. // Can benefit
  382. Message("",
  383. "<h1>" + rival.name + " " + WomanEatTitle(bCooked, pow) + " Tri-Seacreature</h1>\
  384. <p>" + WomanEatDescription(bCooked, pow) + " the seathing....</p>", true);
  385. setTimeout(function() {
  386. if (rival.physique.gentialscnt == 3) $("#message").append("and " + rival.hisher + " cocks shrink and merge into a two cocks!</p>");
  387. else if (rival.physique.gentialscnt == 2) $("#message").append("and " + rival.hisher + " cocks swells and join until you have a single cock only!</p>");
  388. else $("#message").append("and " + rival.hisher + " cock shrinks.</p>");
  389. if (rival.physique.gentialscnt == 3) rival.physique.gentialscnt = 2;
  390. else rival.physique.gentialscnt = 1;
  391. $("#message").append("<p align='center'><font size='-4'>click to continue</font></p>");
  392. $("#message").click(function() { $(".stats").show(); Camp(); });
  393. redraw();
  394. return;
  395. }, 1000);
  396. return;
  397. }
  398. } else {
  399. if (rival.physique.gentialscnt != 3) {
  400. // Can benefit
  401. if (rival.Mods.cock < 20) rival.Mods.cock += 1;
  402. Message("",
  403. "<h1>" + rival.name + " " + WomanEatTitle(bCooked, pow) + " Tri-Seacreature</h1>\
  404. <p>" + WomanEatDescription(bCooked, pow) + " the seathing....</p>", true);
  405. setTimeout(function() {
  406. if (rival.Mods.cock == 1) $("#message").append("and the power of your ancestors fill " + rival.hisher + " and " + rival.heshe() + " grows three cocks.</p>");
  407. else {
  408. if (rival.physique.gentialscnt == 1) $("#message").append("and " + rival.hisher + " cock swells and splits into three!</p>");
  409. else if (rival.physique.gentialscnt == 2) $("#message").append("and " + rival.hisher + " cocks swells and split into three!</p>");
  410. else $("#message").append("and " + rival.hisher + " cock swells.</p>");
  411. }
  412. rival.physique.gentialscnt = 3;
  413. $("#message").append("<p align='center'><font size='-4'>click to continue</font></p>");
  414. $("#message").click(function() { $(".stats").show(); Camp(); });
  415. redraw();
  416. return;
  417. }, 1000);
  418. return;
  419. }
  420. }
  421. // No effect
  422. Message(NextWindow,
  423. "<h1>" + rival.name + " " + WomanEatTitle(bCooked, pow) + " Thing</h1>\
  424. <p>" + WomanEatDescription(bCooked, pow) + " the sae creature and " + rival.hisher + " belly full</p>");
  425. }
  426. // Balls Grapes
  427. function eatGrapesYou(bCooked, pow)
  428. {
  429. if (bCooked) {
  430. player.goods--;
  431. if (player.Mods.balls > 0) {
  432. // Can benefit
  433. player.Mods.balls -= 1;
  434. redraw();
  435. Message(NextWindow,
  436. "<h1>" + YouEatTitle(bCooked, pow) + " Grapes</h1>\
  437. <p>" + YouEatDescription(bCooked, pow) + " grapes and you feel your balls shrink with the power of your ancestors!</p>");
  438. return;
  439. }
  440. } else {
  441. if (player.Mods.balls < 20) {
  442. // Can benefit
  443. player.Mods.balls += 1;
  444. redraw();
  445. Message(NextWindow,
  446. "<h1>" + YouEatTitle(bCooked, pow) + " Grapes</h1>\
  447. <p>" + YouEatDescription(bCooked, pow) + " grapes and you feel your balls swell with the power of your ancestors!</p>");
  448. return;
  449. }
  450. }
  451. // No effect
  452. Message(NextWindow,
  453. "<h1>" + YouEatTitle(bCooked, pow) + " Grapes</h1>\
  454. <p>" + YouEatDescription(bCooked, pow) + " grapes and your belly full</p>");
  455. }
  456. function eatGrapesWoman(bCooked, pow)
  457. {
  458. redraw();
  459. if (bCooked) {
  460. player.goods--;
  461. if (rival.Mods.balls > 0) {
  462. // Can benefit
  463. rival.Mods.balls -= 1;
  464. Message("",
  465. "<h1>" + rival.name + " " + WomanEatTitle(bCooked, pow) + " Grapes</h1>\
  466. <p>" + WomanEatDescription(bCooked, pow) + " the grapes....</p>", true);
  467. setTimeout(function() {
  468. if (rival.Mods.balls === 0) $("#message").append("and the power of your ancestors fill " + rival.hisher + " and " + rival.hisher() + " balls vanish.</p>");
  469. else $("#message").append("and " + rival.hisher + " balls shrink.</p>");
  470. $("#message").append("<p align='center'><font size='-4'>click to continue</font></p>");
  471. $("#message").click(function() { $(".stats").show(); Camp(); });
  472. redraw();
  473. return;
  474. }, 1000);
  475. return;
  476. }
  477. } else {
  478. if (rival.Mods.balls < 20) {
  479. // Can benefit
  480. rival.Mods.balls += 1;
  481. Message("",
  482. "<h1>" + rival.name + " " + WomanEatTitle(bCooked, pow) + " Grapes</h1>\
  483. <p>" + WomanEatDescription(bCooked, pow) + " the grapes....</p>", true);
  484. setTimeout(function() {
  485. if (rival.Mods.balls == 1) $("#message").append("and the power of your ancestors fill " + rival.hisher + " and " + rival.heshe() + " grows a set of balls.</p>");
  486. else $("#message").append("and " + rival.hisher + " balls swell.</p>");
  487. $("#message").append("<p align='center'><font size='-4'>click to continue</font></p>");
  488. $("#message").click(function() { $(".stats").show(); Camp(); });
  489. redraw();
  490. return;
  491. }, 1000);
  492. return;
  493. }
  494. }
  495. // No effect
  496. Message(NextWindow,
  497. "<h1>" + rival.name + " " + WomanEatTitle(bCooked, pow) + " Grapes</h1>\
  498. <p>" + WomanEatDescription(bCooked, pow) + " the grapes and " + rival.hisher + " belly full</p>");
  499. }
  500. // Domination Nut
  501. function eatDominationNutYou(bCooked, pow)
  502. {
  503. if (bCooked) player.goods--;
  504. var val = bCooked ? -1 * ITEM_STATCHANGE : ITEM_STATCHANGE;
  505. player.changeNatural("submissiveness", val);
  506. player.submissiveness += val;
  507. player.capTraits();
  508. player.calcPhysique();
  509. redraw();
  510. var str = "<h1>" + YouEatTitle(bCooked, pow) + " Nut</h1>" +
  511. "<p>" + YouEatDescription(bCooked, pow) + " strong nut, but you feel your ancestors power " + (bCooked ? "strengthen" : "weaken") + " you!</p>";
  512. if (player.isFemale() != fBefore) str += "<p>You now changed, you now " + (player.isFemale() ? "woman" : "man") + "!</p>";
  513. Message(NextWindow, str);
  514. }
  515. function eatDominationNutWoman(bCooked, pow)
  516. {
  517. if (bCooked) player.goods--;
  518. var val = bCooked ? -1 * ITEM_STATCHANGE : ITEM_STATCHANGE;
  519. rival.changeNatural("submissiveness", val);
  520. rival.submissiveness += val;
  521. rival.capTraits();
  522. rival.calcPhysique();
  523. redraw();
  524. var str = "<h1>" + rival.name + " " + WomanEatTitle(bCooked, pow) + " Nut</h1>" +
  525. "<p>" + WomanEatDescription(bCooked, pow) + " the nut and the power of the nut makes " + rival.himher + " more " + (bCooked ? "dominant" : "obedient") + ".</p>";
  526. if (rival.isFemale() != fBefore) str += "<p>" + rival.name + " now changed, " + rival.heshe + " now " + (rival.isFemale() ? "woman" : "man") + "!</p>";
  527. Message(NextWindow, str);
  528. }
  529. // Domestic Nut
  530. function eatDomesticNutYou(bCooked, pow)
  531. {
  532. if (bCooked) player.goods--;
  533. var val = bCooked ? -1 * ITEM_STATCHANGE : ITEM_STATCHANGE;
  534. player.changeNatural("domesticity", val);
  535. player.domesticity += val;
  536. player.capTraits();
  537. player.calcPhysique();
  538. redraw();
  539. var str = "<h1>" + YouEatTitle(bCooked, pow) + " Nut</h1>" +
  540. "<p>" + YouEatDescription(bCooked, pow) + " nut, but you feel your ancestors power " + (bCooked ? "strengthen" : "weaken") + " you!</p>";
  541. if (player.isFemale() != fBefore) str += "<p>You now changed, you now " + (player.isFemale() ? "woman" : "man") + "!</p>";
  542. Message(NextWindow, str);
  543. }
  544. function eatDomesticNutWoman(bCooked, pow)
  545. {
  546. if (bCooked) player.goods--;
  547. var val = bCooked ? -1 * ITEM_STATCHANGE : ITEM_STATCHANGE;
  548. rival.changeNatural("domesticity", val);
  549. rival.domesticity += val;
  550. rival.capTraits();
  551. rival.calcPhysique();
  552. redraw();
  553. var str = "<h1>" + rival.name + " " + WomanEatTitle(bCooked, pow) + " Nut</h1>" +
  554. "<p>" + WomanEatDescription(bCooked, pow) + " the nut and the power of the nut teaches " + rival.himher + " to " + (bCooked ? "to explore and hunt" : "better clean your camp") + ".</p>";
  555. if (rival.isFemale() != fBefore) str += "<p>" + rival.name + " now changed, " + rival.heshe + " now " + (rival.isFemale() ? "woman" : "man") + "!</p>";
  556. Message(NextWindow, str);
  557. }
  558. // Maternal Nut
  559. function eatMaternalNutYou(bCooked, pow)
  560. {
  561. if (bCooked) player.goods--;
  562. var val = bCooked ? -1 * (ITEM_STATCHANGE2 + pow) : ITEM_STATCHANGE2 + pow;
  563. if (player.pregnancy > 0) player.pregnancy += pow * 5;
  564. player.changeNatural("maternalism", val);
  565. player.maternalism += val;
  566. if (pow == 2) {
  567. if (bCooked) player.physique.twins /= 2;
  568. else player.physique.twins *= 2;
  569. if (player.physique.twins > 100) player.physique.twins = 100;
  570. else if (player.physique.twins < 5) player.physique.twins = 5;
  571. }
  572. player.capTraits();
  573. player.calcPhysique();
  574. redraw();
  575. var str = "<h1>" + YouEatTitle(bCooked, pow) + " Nut</h1>" +
  576. "<p>" + YouEatDescription(bCooked, pow) + " nut, but you feel your ancestors power " + (bCooked ? "strengthen" : "weaken") + " you!</p>";
  577. if (!player.isMale() && pow == 2) str += "<p>You feel a change in you, you make more children for your clan!</p>";
  578. if (player.pregnancy > 0) str += "<p>You feel a change as your belly swells, your child arrive sooner!</p>";
  579. if (player.isFemale() != fBefore) str += "<p>You now changed, you now " + (player.isFemale() ? "woman" : "man") + "!</p>";
  580. Message(NextWindow, str);
  581. }
  582. function eatMaternalNutWoman(bCooked, pow)
  583. {
  584. if (bCooked) player.goods--;
  585. var val = bCooked ? -1 * (ITEM_STATCHANGE2 + pow) : ITEM_STATCHANGE2 + pow;
  586. if (rival.pregnancy > 0) rival.pregnancy += pow * 5;
  587. rival.changeNatural("maternalism", val);
  588. rival.maternalism += val;
  589. if (pow == 2) {
  590. if (bCooked) rival.physique.twins /= 2;
  591. else rival.physique.twins *= 2;
  592. if (rival.physique.twins > 100) rival.physique.twins = 100;
  593. else if (rival.physique.twins < 5) rival.physique.twins = 5;
  594. }
  595. rival.capTraits();
  596. rival.calcPhysique();
  597. var str = "<h1>" + rival.name + " " + WomanEatTitle(bCooked, pow) + " Nut</h1>" +
  598. "<p>" + WomanEatDescription(bCooked, pow) + " the nut and the power of the nut makes " + rival.himher + " " + (bCooked ? "better to father children" : "better to bear your children") + ".</p>";
  599. if (!rival.isMale() && pow == 2) str += "<p>" + rival.name + " feel a change in her, she make more children for you!</p>";
  600. if (rival.pregnancy > 0) str += "<p>" + rival.name + " feel a change as " + rival.hisher + " belly swells, your child arrive sooner!</p>";
  601. if (rival.isFemale() != fBefore) str += "<p>" + rival.name + " now changed, " + rival.heshe + " now " + (rival.isFemale() ? "woman" : "man") + "!</p>";
  602. Message(NextWindow, str);
  603. redraw();
  604. }
  605. // Allure Nut
  606. function eatAllureNutYou(bCooked, pow)
  607. {
  608. if (bCooked) player.goods--;
  609. var val = bCooked ? -1 * ITEM_STATCHANGE : ITEM_STATCHANGE;
  610. player.changeNatural("allure", val);
  611. player.allure += val;
  612. player.capTraits();
  613. player.calcPhysique();
  614. redraw();
  615. var str = "<h1>" + YouEatTitle(bCooked, pow) + " Nut</h1>" +
  616. "<p>" + YouEatDescription(bCooked, pow) + " nut, but you feel your ancestors power " + (bCooked ? "strengthen" : "weaken") + " you!</p>";
  617. if (player.isFemale() != fBefore) str += "<p>You now changed, you now " + (player.isFemale() ? "woman" : "man") + "!</p>";
  618. Message(NextWindow, str);
  619. }
  620. function eatAllureNutWoman(bCooked, pow)
  621. {
  622. if (bCooked) player.goods--;
  623. var val = bCooked ? -1 * ITEM_STATCHANGE : ITEM_STATCHANGE;
  624. rival.changeNatural("allure", val);
  625. rival.allure += val;
  626. rival.capTraits();
  627. rival.calcPhysique();
  628. redraw();
  629. var str = "<h1>" + rival.name + " " + WomanEatTitle(bCooked, pow) + " Nut</h1>" +
  630. "<p>" + WomanEatDescription(bCooked, pow) + " the pretty nut and the power of the nut make " + rival.himher + " " + (bCooked ? "handsome" : "prettier") + ".</p>";
  631. if (rival.isFemale() != fBefore) str += "<p>" + rival.name + " now changed, " + rival.heshe + " now " + (rival.isFemale() ? "woman" : "man") + "!</p>";
  632. Message(NextWindow, str);
  633. }
  634. // Orientation Nut
  635. function eatOrientationNutYou(bCooked, pow)
  636. {
  637. if (bCooked) player.goods--;
  638. var val = bCooked ? -1 * ITEM_STATCHANGE : ITEM_STATCHANGE;
  639. player.changeNatural("orientation", val);
  640. player.orientation += val;
  641. player.capTraits();
  642. player.calcPhysique();
  643. redraw();
  644. var str = "<h1>" + YouEatTitle(bCooked, pow) + " Nut</h1>" +
  645. "<p>" + YouEatDescription(bCooked, pow) + " nut, but you feel your ancestors power " + (bCooked ? "strengthen" : "weaken") + " you!</p>";
  646. str+="<p>"
  647. if((player.orientation>=0)&& !bCooked){
  648. str += "Women folk less interesting now.";
  649. }
  650. else if(player.orientation>=0){
  651. str+="You think of soft, pretty women and want more.";
  652. }
  653. else if((player.orienation<0)&&!bCooked){
  654. str+="You think of big, strong men and want make love all night.";
  655. }
  656. else if(player.orientation<0){
  657. str+="Men not so interesting now. Maybe you try woman instead?";
  658. }
  659. str+="</p>";
  660. if (player.isFemale() != fBefore) str += "<p>You now changed, you now " + (player.isFemale() ? "woman" : "man") + "!</p>";
  661. Message(NextWindow, str);
  662. }
  663. function eatOrientationNutWoman(bCooked, pow)
  664. {
  665. if (bCooked) player.goods--;
  666. var val = bCooked ? -1 * ITEM_STATCHANGE : ITEM_STATCHANGE;
  667. rival.changeNatural("orientation", val);
  668. rival.orientation += val;
  669. rival.capTraits();
  670. rival.calcPhysique();
  671. redraw();
  672. var str = "<h1>" + rival.name + " " + WomanEatTitle(bCooked, pow) + " Nut</h1>" +
  673. "<p>" + WomanEatDescription(bCooked, pow) + " the long nut and the power of the nut make " + rival.himher + " " + (bCooked ? "no desire" : "desire") + " "+ (player.isFemale()?"men":"you.")+"</p>";
  674. if (rival.isFemale() != fBefore) str += "<p>" + rival.name + " now changed, " + rival.heshe + " now " + (rival.isFemale() ? "woman" : "man") + "!</p>";
  675. Message(NextWindow, str);
  676. }
  677. // MilkNut
  678. function eatMilkNutYou(bCooked, pow)
  679. {
  680. if (bCooked) player.goods--;
  681. if (player.Mods.breasts < 200) {
  682. // Can benefit
  683. player.Mods.breasts += bCooked ? 7 : 5;
  684. if (player.Mods.breasts > 200) player.Mods.breasts = 200;
  685. if (player.physique.horns < 20) {
  686. player.physique.horns += 1;
  687. player.physique.hornstype = 1;
  688. }
  689. if (player.physique.tail < 20) {
  690. player.physique.tail += 1;
  691. player.physique.tailtype = 1;
  692. }
  693. var ch = bCooked ? 80 : 20;
  694. if (player.physique.breasts > 25 && getRandomInt(1, 100) < ch) player.physique.breastrows += 1;
  695. Message(NextWindow,
  696. "<h1>" + YouEatTitle(bCooked, pow) + " White Nut</h1>\
  697. <p>" + YouEatDescription(bCooked, pow) + " nut and feel your ancestors spirit, teaching you how to make your women feed your children better.</p>");
  698. } else {
  699. // No effect
  700. Message(NextWindow,
  701. "<h1>" + YouEatTitle(bCooked, pow) + " White Nut</h1>\
  702. <p>" + YouEatDescription(bCooked, pow) + " nut and your belly full</p>");
  703. }
  704. redraw();
  705. }
  706. function eatMilkNutWoman(bCooked, pow)
  707. {
  708. if (bCooked) player.goods--;
  709. redraw();
  710. if (rival.Mods.breasts < 200) {
  711. // Can benefit
  712. rival.Mods.breasts += bCooked ? 3 : 2;
  713. if (rival.Mods.breasts > 200) rival.Mods.breasts = 200;
  714. if (rival.physique.horns < 20) {
  715. rival.physique.horns += 1;
  716. rival.physique.hornstype = 1;
  717. }
  718. if (rival.physique.tail < 20) {
  719. rival.physique.tail += 1;
  720. rival.physique.tailtype = 1;
  721. }
  722. var ch = bCooked ? 80 : 20;
  723. if (rival.physique.breasts > 25 && getRandomInt(1, 100) < ch) {
  724. rival.physique.breastrows += 1;
  725. Message("",
  726. "<h1>" + rival.name + " " + WomanEatTitle(bCooked, pow) + " White Nut</h1>\
  727. <p>" + WomanEatDescription(bCooked, pow) + " the nut....</p>", true);
  728. setTimeout(function() {
  729. $("#message").append("and her breasts swell a little and grow a new set of breasts");
  730. if (rival.physique.horns == 1) $("#message").append(" and grows a set of cow horns.");
  731. $("#message").append(".</p><p align='center'><font size='-4'>click to continue</font></p>");
  732. $("#message").click(function() { $(".stats").show(); Camp(); });
  733. redraw();
  734. }, 1000);
  735. } else {
  736. Message("",
  737. "<h1>" + rival.name + " " + WomanEatTitle(bCooked, pow) + " White Nut</h1>\
  738. <p>" + WomanEatDescription(bCooked, pow) + " the nut....</p>", true);
  739. setTimeout(function() {
  740. $("#message").append("and her breasts swell a little");
  741. if (rival.physique.horns == 1) $("#message").append(" and grows a set of cow horns.");
  742. $("#message").append(".</p><p align='center'><font size='-4'>click to continue</font></p>");
  743. $("#message").click(function() { $(".stats").show(); Camp(); });
  744. redraw();
  745. }, 1000);
  746. }
  747. } else {
  748. // No effect
  749. Message(NextWindow,
  750. "<h1>" + rival.name + " " + WomanEatTitle(bCooked, pow) + " White Nut</h1>\
  751. <p>" + WomanEatDescription(bCooked, pow) + " the nut and " + rival.hisher + " belly full</p>");
  752. }
  753. }
  754. // Red Nut
  755. function eatDemonNutYou(bCooked, pow)
  756. {
  757. if (bCooked) player.goods--;
  758. if (player.physique.skin < 100 || player.physique.wings < 20 || player.physique.hornstype != 2 || player.physique.tailtype != 2) {
  759. // Can benefit
  760. if (player.physique.skin < 100) player.physique.skin = Math.floor(Math.random() * 2) + 100;
  761. if (player.physique.wings < 10) player.physique.wings++;
  762. if (player.physique.hornstype != 2) player.physique.hornstype = 2;
  763. player.physique.horns += 2;
  764. if (player.physique.tailtype != 2) player.physique.tailtype = 2;
  765. player.physique.tail += 2;
  766. Message(NextWindow,
  767. "<h1>" + YouEatTitle(bCooked, pow) + " Red Nut</h1>\
  768. <p>" + YouEatDescription(bCooked, pow) + " nut and feel a surge of heat from the fires of the mountain.</p>");
  769. } else {
  770. // No effect
  771. Message(NextWindow,
  772. "<h1>" + YouEatTitle(bCooked, pow) + " Red Nut</h1>\
  773. <p>" + YouEatDescription(bCooked, pow) + " nut and your belly full</p>");
  774. }
  775. redraw();
  776. }
  777. function eatDemonNutWoman(bCooked, pow)
  778. {
  779. if (bCooked) player.goods--;
  780. redraw();
  781. if (rival.physique.skin < 100 || rival.physique.wings < 20 || rival.physique.hornstype != 2 || rival.physique.tailtype != 2) {
  782. // Can benefit
  783. if (rival.physique.skin < 100) {
  784. if (player.physique.skin > 99) rival.physique.skin = player.physique.skin;
  785. else rival.physique.skin = Math.floor(Math.random() * 2) + 100;
  786. }
  787. if (rival.physique.wings < 10) rival.physique.wings++;
  788. if (rival.physique.hornstype != 2) rival.physique.hornstype = 2;
  789. rival.physique.horns += 2;
  790. if (rival.physique.tailtype != 2) rival.physique.tailtype = 2;
  791. rival.physique.tail = 2;
  792. Message("",
  793. "<h1>" + rival.name + " " + WomanEatTitle(bCooked, pow) + " Red Nut</h1>\
  794. <p>" + WomanEatDescription(bCooked, pow) + " the nut....</p>", true);
  795. setTimeout(function() {
  796. $("#message").append("and the fire of the mountain changes " + rival.hisher + " body");
  797. $("#message").append(".</p><p align='center'><font size='-4'>click to continue</font></p>");
  798. $("#message").click(function() { $(".stats").show(); Camp(); });
  799. redraw();
  800. }, 1000);
  801. } else {
  802. // No effect
  803. Message(NextWindow,
  804. "<h1>" + rival.name + " " + WomanEatTitle(bCooked, pow) + " Red Nut</h1>\
  805. <p>" + WomanEatDescription(bCooked, pow) + " the nut and " + rival.hisher + " belly full</p>");
  806. }
  807. }
  808. // Green Berry
  809. function eatGreenBerryYou(bCooked, pow)
  810. {
  811. if (bCooked) player.goods--;
  812. if (player.physique.skin != 102) {
  813. // Can benefit
  814. player.physique.skin = 102;
  815. Message(NextWindow,
  816. "<h1>" + YouEatTitle(bCooked, pow) + " Berry</h1>\
  817. <p>" + YouEatDescription(bCooked, pow) + " berry and feel a flush of cold.</p>");
  818. } else {
  819. // No effect
  820. Message(NextWindow,
  821. "<h1>" + YouEatTitle(bCooked, pow) + " Green Berry</h1>\
  822. <p>" + YouEatDescription(bCooked, pow) + " berry and your belly full</p>");
  823. }
  824. redraw();
  825. }
  826. function eatGreenBerryWoman(bCooked, pow)
  827. {
  828. if (bCooked) player.goods--;
  829. redraw();
  830. if (rival.physique.skin != 102) {
  831. // Can benefit
  832. rival.physique.skin = 102;
  833. Message("",
  834. "<h1>" + rival.name + " " + WomanEatTitle(bCooked, pow) + " Green Berry</h1>\
  835. <p>" + WomanEatDescription(bCooked, pow) + " the berry....</p>", true);
  836. setTimeout(function() {
  837. $("#message").append("and a wave of green spreads over " + rival.hisher + " skin.");
  838. $("#message").append("</p><p align='center'><font size='-4'>click to continue</font></p>");
  839. $("#message").click(function() { $(".stats").show(); Camp(); });
  840. redraw();
  841. }, 1000);
  842. } else {
  843. // No effect
  844. Message(NextWindow,
  845. "<h1>" + rival.name + " " + WomanEatTitle(bCooked, pow) + " Green Berry</h1>\
  846. <p>" + WomanEatDescription(bCooked, pow) + " the berry and " + rival.hisher + " belly full</p>");
  847. }
  848. }
  849. // Pale Berry
  850. function eatPaleBerryYou(bCooked, pow)
  851. {
  852. if (bCooked) player.goods--;
  853. player.physique.skin = bCooked ? 1 : getRandomInt(1, 10);
  854. Message(NextWindow,
  855. "<h1>" + YouEatTitle(bCooked, pow) + " Pale Berry</h1>\
  856. <p>" + YouEatDescription(bCooked, pow) + " berry and feel a flush of warmth.</p>");
  857. redraw();
  858. }
  859. function eatPaleBerryWoman(bCooked, pow)
  860. {
  861. if (bCooked) player.goods--;
  862. redraw();
  863. rival.physique.skin = bCooked ? 1 : getRandomInt(1, 10);
  864. Message("",
  865. "<h1>" + rival.name + " " + WomanEatTitle(bCooked, pow) + " Pale Berry</h1>\
  866. <p>" + WomanEatDescription(bCooked, pow) + " the berry....</p>", true);
  867. setTimeout(function() {
  868. $("#message").append("and a wave of colour spreads over " + rival.hisher + " skin.");
  869. $("#message").append(".</p><p align='center'><font size='-4'>click to continue</font></p>");
  870. $("#message").click(function() { $(".stats").show(); Camp(); });
  871. redraw();
  872. }, 1000);
  873. }
  874. // Dark Berry
  875. function eatDarkBerryYou(bCooked, pow)
  876. {
  877. if (bCooked) player.goods--;
  878. player.physique.skin = bCooked ? 25 : getRandomInt(10, 20);
  879. Message(NextWindow,
  880. "<h1>" + YouEatTitle(bCooked, pow) + " Dark Berry</h1>\
  881. <p>" + YouEatDescription(bCooked, pow) + " berry and feel a flush of warmth.</p>");
  882. redraw();
  883. }
  884. function eatDarkBerryWoman(bCooked, pow)
  885. {
  886. if (bCooked) player.goods--;
  887. redraw();
  888. rival.physique.skin = bCooked ? 35 : getRandomInt(10, 20);
  889. Message("",
  890. "<h1>" + rival.name + " " + WomanEatTitle(bCooked, pow) + " Dark Berry</h1>\
  891. <p>" + WomanEatDescription(bCooked, pow) + " the berry....</p>", true);
  892. setTimeout(function() {
  893. $("#message").append("and a wave of colour spreads over " + rival.hisher + " skin.");
  894. $("#message").append(".</p><p align='center'><font size='-4'>click to continue</font></p>");
  895. $("#message").click(function() { $(".stats").show(); Camp(); });
  896. redraw();
  897. }, 1000);
  898. }
  899. // Hairy Nut
  900. function eatHairyNutYou(bCooked, pow)
  901. {
  902. if (bCooked) player.goods--;
  903. var style = player.physique.hairstyle;
  904. var conclusion;
  905. if (style === 0) {
  906. player.physique.hairstyle = getRandomInt(1, 9);
  907. conclusion = "you feel like your skull is on fire";
  908. }
  909. else if (style >= 1) {
  910. player.physique.hairstyle = 0;
  911. conclusion = "you feel your hair fall out";
  912. }
  913. Message(NextWindow,
  914. "<h1>" + YouEatTitle(bCooked, pow) + " Hairy Nut</h1>\
  915. <p>" + YouEatDescription(bCooked, pow) + " nut and " + conclusion + "</p>");
  916. redraw();
  917. }
  918. function eatHairyNutWoman(bCooked, pow)
  919. {
  920. if (bCooked) player.goods--;
  921. var style = rival.physique.hairstyle;
  922. var conclusion;
  923. redraw();
  924. if (style === 0) {
  925. rival.physique.hairstyle = getRandomInt(1, 9);
  926. conclusion = "hair grows from " + rival.hisher + " head.";
  927. }
  928. else if (style >= 1) {
  929. rival.physique.hairstyle = 0;
  930. conclusion = rival.hisher + " hair falls out.";
  931. }
  932. Message("",
  933. "<h1>" + rival.name + " " + WomanEatTitle(bCooked, pow) + " Hairy Nut</h1>\
  934. <p>" + WomanEatDescription(bCooked, pow) + " the nut....</p>", true);
  935. setTimeout(function() {
  936. $("#message").append("and you watch as " +conclusion);
  937. $("#message").append(".</p><p align='center'><font size='-4'>click to continue</font></p>");
  938. $("#message").click(function() { $(".stats").show(); Camp(); });
  939. redraw();
  940. }, 1000);
  941. }
  942. function eatRainbowflowerYou(bCooked, pow)
  943. {
  944. if (bCooked) player.goods--;
  945. player.physique.hairc = getRandomInt(1, 16);
  946. Message(NextWindow,
  947. "<h1>" + YouEatTitle(bCooked, pow) + " Rainbow Flower</h1>\
  948. <p>" + YouEatDescription(bCooked, pow) + " flower and feel warmth on your scalp.</p>");
  949. redraw();
  950. }
  951. function eatRainbowflowerWoman(bCooked, pow)
  952. {
  953. if (bCooked) player.goods--;
  954. redraw();
  955. rival.physique.hairc = getRandomInt(1, 16);
  956. Message("",
  957. "<h1>" + rival.name + " " + WomanEatTitle(bCooked, pow) + " Rainbow Flower</h1>\
  958. <p>" + WomanEatDescription(bCooked, pow) + " the berry....</p>", true);
  959. setTimeout(function() {
  960. $("#message").append("and a wave of colour spreads over " + rival.hisher + " hair.");
  961. $("#message").append(".</p><p align='center'><font size='-4'>click to continue</font></p>");
  962. $("#message").click(function() { $(".stats").show(); Camp(); });
  963. redraw();
  964. }, 1000);
  965. }