Advertisement
finaltidus

meatprofitability.ash

Jan 7th, 2018
36
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.61 KB | None | 0 0
  1. void main(){
  2.  
  3. //****************************************
  4. int averageTurnEst = 450; //amount of turns used. (used for all day buffs like vykea.)
  5. int baseMeatDrop = 250; //avg base meat drop from enemies
  6. float combatFreq = 0.96; //what about forced noncombats tho. barf has forced non-combat every ~25 advs.
  7. float familiarWeight = 70; //familiar weight
  8. float lepPercent = 2.00; //1.00 for lep or 1.25 for hobo or 2.00 for robo with drink
  9. int limitedTurnCount = averageTurnEst; //amount of turns you can spend at the location per day. Used if a buff is longer than the time you can spend there.
  10.  
  11. float stickerDropBonus = 15; //Scratch and Sniff Weapon bonus meat drop accounting for another 1h weapon.
  12. int vykeaLevel = 5; // vykea couch level (1-5). 5 is almost always best.
  13. //****************************************
  14.  
  15. //get current Familiar bonus at weight, then get weight + 5 and take difference to get final bonus +meat increase.
  16. float famMeatBonus = (220.0 * (familiarWeight * lepPercent))** 0.5 + (2.0 * (familiarWeight * lepPercent)) - 6.0; //fam +meat
  17. float famMeatBonusBuff = (220.0 * ((familiarWeight + 5) * lepPercent))** 0.5 + (2.0 * ((familiarWeight + 5) * lepPercent)) - 6.0; //5 lb over
  18. float bonusMeatDrop = (famMeatBonusBuff - famMeatBonus);
  19.  
  20.  
  21. //special case items.
  22. int greenspanTurns = limitedTurnCount; if(greenspanTurns > 100) {greenspanTurns = 100;}
  23. float polkaPower = my_level() * 5; if (polkaPower > 55.0) {polkaPower = 55.0;}
  24.  
  25.  
  26. //name / turns / buff size (float because familiar bonus math)
  27. string[item][int][float] theItemList;
  28.  
  29. //bonusMeatDrop equal to 5 lbs (so for 10 lbs * it by 2)
  30. //I know this isn't EXACT but its close enough
  31.  
  32. theItemList[$item[Knob Goblin nasal spray]][10][30.0] = 0;
  33. theItemList[$item[Meat-inflating powder]][20][50.0] = 0;
  34. theItemList[$item[frost flower ]][50][200.0] = 0;
  35. theItemList[$item[Mick's IcyVapoHotness Inhaler]][10][200.0] = 0;
  36. theItemList[$item[sorority brain]][20][150.0] = 0;
  37. theItemList[$item[resolution: be wealthier]][20][30.0] = 0;
  38. theItemList[$item[Baggie of powdered sugar]][10][10.0] = 0;
  39. theItemList[$item[disco horoscope (Leo)]][10][10.0] = 0;
  40. theItemList[$item[half-baked potion]][1][10.0] = 0;
  41. theItemList[$item[tin cup]][20][20.0] = 0;
  42. theItemList[$item[fudge-shaped hole in space-time]][10][20.0] = 0;
  43. theItemList[$item[shark cartilage]][15][20.0] = 0;
  44. theItemList[$item[bag of Cheat-Os]][10][20.0] = 0;
  45. theItemList[$item[Gene Tonic: Humanoid]][30][20.0] = 0;
  46. theItemList[$item[holly-flavored Hob-O]][1][20.0] = 0;
  47. theItemList[$item[pink candy heart]][10][20.0] = 0;
  48. theItemList[$item[blackberry polite]][5][20.0] = 0;
  49. theItemList[$item[pink-frosted astral cupcake]][20][30.0] = 0;
  50. theItemList[$item[begpwnia]][10][30.0] = 0;
  51. theItemList[$item[love song of sugary cuteness]][5][40.0] = 0; //assuming overcapping because fuck math.
  52. theItemList[$item[blue grass]][20][40.0] = 0;
  53. theItemList[$item[Recording of The Ballad of Richie Thingfinder]][20][50.0] = 0;
  54. theItemList[$item[red snowcone]][20][50.0] = 0;
  55. theItemList[$item[Gene Tonic: Constellation]][30][50.0] = 0;
  56. theItemList[$item[peppermint twist]][10][50.0] = 0;
  57. theItemList[$item[Polka Pop]][10][polkaPower] = 0;
  58. theItemList[$item[pulled yellow taffy]][10][100.0] = 0; //assuming overcapping because fuck math.
  59. theItemList[$item[Daily Affirmation: Work For Hours a Week]][100][bonusMeatDrop] = 0;
  60. theItemList[$item[Daily Affirmation: Always be Collecting]][100][100.0] = 0;
  61. theItemList[$item[shoulder-warming lotion]][20][bonusMeatDrop] = 0;
  62. theItemList[$item[sugar bunny]][20][bonusMeatDrop] = 0;
  63. theItemList[$item[powdered toad horn]][10][bonusMeatDrop] = 0;
  64. theItemList[$item[Stephen's secret formula]][20][bonusMeatDrop * 2] = 0;
  65. theItemList[$item[shrimp cocktail]][20][bonusMeatDrop] = 0;
  66. theItemList[$item[Friendliness Beverage]][20][bonusMeatDrop] = 0;
  67. theItemList[$item[disintegrating spiky collar]][10][bonusMeatDrop] = 0;
  68. theItemList[$item[cuppa Loyal tea]][30][bonusMeatDrop] = 0;
  69. theItemList[$item[resolution: be kinder]][20][bonusMeatDrop] = 0;
  70. theItemList[$item[Gene Tonic: Construct]][30][bonusMeatDrop] = 0;
  71. theItemList[$item[Knob Goblin pet-buffing spray]][10][bonusMeatDrop] = 0;
  72. theItemList[$item[green snowcone]][20][bonusMeatDrop] = 0;
  73. theItemList[$item[pulled blue taffy]][10][bonusMeatDrop] = 0;
  74. theItemList[$item[black snowcone]][20][50+bonusMeatDrop] = 0;
  75. theItemList[$item[gingerbread spice latte]][30][bonusMeatDrop * 2] = 0;
  76. theItemList[$item[dog ointment]][20][bonusMeatDrop * 2] = 0;
  77. theItemList[$item[Gene Tonic: Fish]][30][bonusMeatDrop * 2] = 0;
  78. theItemList[$item[irradiated pet snacks]][10][bonusMeatDrop * 2] = 0;
  79. theItemList[$item[love song of icy revenge]][5][bonusMeatDrop * 2] = 0; //assuming overcapping because fuck math.
  80. theItemList[$item[Recording of Chorale of Companionship]][20][bonusMeatDrop * 2] = 0;
  81. theItemList[$item[silver face paint]][1][bonusMeatDrop * 4] = 0;
  82. theItemList[$item[Prunets]][5][bonusMeatDrop * 5] = 0;
  83. theItemList[$item[salt wages]][30][25.0] = 0;
  84. theItemList[$item[cranberry cordial]][5][10.0] = 0;
  85. theItemList[$item[resolution: be luckier]][20][10.0] = 0;
  86. theItemList[$item[vial of porquoise juice]][5][6.0] = 0;
  87. theItemList[$item[flask of porquoise juice]][10][6.0] = 0;
  88. theItemList[$item[jug of porquoise juice]][50][6.0] = 0;
  89. theItemList[$item[Uncle Greenspan's Bathroom Finance Guide]][greenspanTurns][greenspanTurns+1.0] = 0;
  90.  
  91. //theItemList[$item[]][0][0] = 0;
  92.  
  93.  
  94. print("At " + baseMeatDrop + " base meat drop and " + lepPercent + " * " + familiarWeight + " lb Familiar:", "olive");
  95.  
  96. float itemCost;
  97. float profitable;
  98.  
  99. foreach itemName, turns, meatBonus in theItemList {
  100. itemCost = (mall_price(itemName));
  101.  
  102. if(limitedTurnCount < turns){
  103. turns = limitedTurnCount;
  104. }
  105.  
  106. profitable = (((turns * combatFreq) * (baseMeatDrop * meatBonus)) / 100) - itemCost;
  107.  
  108. if (profitable > 0){
  109. print(itemName + " (" + itemCost + "): " );
  110. print("PROFITABLE!: " + (profitable/turns).to_string("%.2f") + " MPA." , "green");
  111.  
  112. }else{
  113. //print(itemName + " (" + itemCost + "): " );
  114. //print("NOT PROFITABLE: " + (profitable/turns).to_string("%.2f") + " MPA." , "red");
  115. }
  116. }
  117.  
  118. print("");
  119. print("v------SPECIAL SECTION FOR MISC.------v" , "red");
  120.  
  121. //VYKEA Couch
  122. float vykeaLampLevel = 0;
  123. float vykeaLampDrop = 0;
  124. switch (vykeaLevel)
  125. {
  126. case vykeaLevel = 1:
  127. vykeaLampLevel = 0;
  128. vykeaLampDrop = 10;
  129. break;
  130. case vykeaLevel = 2:
  131. vykeaLampLevel = 1;
  132. vykeaLampDrop = 20;
  133. break;
  134. case vykeaLevel = 3:
  135. vykeaLampLevel = 11;
  136. vykeaLampDrop = 30;
  137. break;
  138. case vykeaLevel = 4:
  139. vykeaLampLevel = 23;
  140. vykeaLampDrop = 40;
  141. break;
  142. case vykeaLevel = 5:
  143. vykeaLampLevel = 37;
  144. vykeaLampDrop = 50;
  145. break;
  146. default:
  147. vykeaLevel = 5;
  148. vykeaLampLevel = 37;
  149. vykeaLampDrop = 50;
  150. }
  151.  
  152. float vykea1 = ((mall_price($item[VYKEA rail])) * 5);
  153. float vykea2 = ((mall_price($item[VYKEA dowel])) * vykeaLampLevel);
  154. float vykea3 = ((mall_price($item[VYKEA instructions])));
  155. float vykea4 = ((mall_price($item[VYKEA plank])) * 5);
  156. float vykeaTotal = vykea1 + vykea2 + vykea3 + vykea4;
  157. print("VYKEA Couch (Level " +(vykeaLampDrop/10).to_int() + "):");
  158. float vykeaNetGain = ((baseMeatDrop*vykeaLampDrop)/100 - (vykeaTotal/averageTurnEst));
  159. if (vykeaNetGain > 0){
  160. print("PROFITABLE!: " + (vykeaNetGain).to_string("%.2f") + " MPA." , "green");
  161.  
  162. }else{
  163. print("NOT PROFITABLE: " + (vykeaNetGain).to_string("%.2f") + " MPA." , "red");
  164. }
  165.  
  166.  
  167. //scratch and sniff weapon
  168. float stickerWeapon = ((mall_price($item[scratch 'n' sniff UPC sticker])) * 3);
  169. float stickerCostPerAdv = stickerWeapon/20;
  170. float stickerNetGain = ((baseMeatDrop * stickerDropBonus)/100) - stickerCostPerAdv;
  171. print("Scratch 'n' Sniff Weapon: (at a " + stickerDropBonus + " meat drop increase because of opportunity cost.)");
  172. if (stickerNetGain > 0){
  173. print("PROFITABLE!: " + (stickerNetGain).to_string("%.2f") + " MPA." , "green");
  174.  
  175. }else{
  176. print("NOT PROFITABLE: " + (stickerNetGain).to_string("%.2f") + " MPA." , "red");
  177. }
  178.  
  179.  
  180. //papier toothpicks
  181. float toothpicks = ((mall_price($item[rad lib])));
  182. toothpicks = (toothpicks * 4) + 280; //4 rad libs + 4 soda water
  183. float toothpicksPerAdv = toothpicks/40;
  184. float toothpickProfit = ((baseMeatDrop * 50 )/ 100) - toothpicksPerAdv;
  185. print("papier-mâché toothpicks: ");
  186. if (toothpickProfit > 0){
  187. print("PROFITABLE!: " + (toothpickProfit).to_string("%.2f") + " MPA." , "green");
  188.  
  189. }else{
  190. print("NOT PROFITABLE: " + (toothpickProfit).to_string("%.2f") + " MPA." , "red");
  191. }
  192.  
  193. //asdon driving observantly
  194. float drivingObs = (((mall_price($item[pie man was not meant to eat]))/150) * 37); //get fuel with pies
  195. print("Asdon: Driving Observantly (workshed):");
  196. float asdonProfit = (((baseMeatDrop * 50 )/ 100) - (drivingObs/30));
  197. if (asdonProfit > 0){
  198. print("PROFITABLE!: " + (asdonProfit).to_string("%.2f") + " MPA." , "green");
  199.  
  200. }else{
  201. print("NOT PROFITABLE: " + (asdonProfit).to_string("%.2f") + " MPA." , "red");
  202. }
  203.  
  204. //jumping horseradish
  205. float jumpRadish = mall_price($item[jumping horseradish]);
  206. float radishProfit = ((baseMeatDrop * 100) / 100) - jumpRadish/50;
  207. print("jumping horseradish (food): ");
  208. if (radishProfit > 0){
  209. print("PROFITABLE!: " + (radishProfit).to_string("%.2f") + " MPA." , "green");
  210.  
  211. }else{
  212. print("NOT PROFITABLE: " + (radishProfit).to_string("%.2f") + " MPA." , "red");
  213. }
  214.  
  215.  
  216. //barf mountain only.
  217. int scamMeat = (mall_price($item[How to Avoid Scams]));
  218. int scamProfit = (((20 * combatFreq) * (baseMeatDrop * 300)) / 100) - scamMeat;
  219. if (scamProfit > 0){
  220. print("How to Avoid Scams: (Barf Mt. Only.)");
  221. print("PROFITABLE!: " + (scamProfit/20) + " MPA." , "green");
  222. }
  223. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement