Advertisement
RedSnow

Ugly As Sin Meal Coding Work v2 (1-6-21)

Jan 7th, 2021 (edited)
1,523
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // A base class for all consumable (food) items to inherit from
  2. class UaS_Consumable : HDWeapon abstract {
  3.     default {
  4.         UaS_Consumable.Calories 0; // Calories / kCals provided by this consumable
  5.         UaS_Consumable.Fluid 0; // Milliliteres of hydration provided by this consumable
  6.         UaS_Consumable.Bulk 0; // Bulk Units, also influences number of "swallows" when consumed
  7.         UaS_Consumable.Description ""; // Description shown to player
  8.         UaS_Consumable.OpenSound "UaS/FoodOpen"; // Sound played when opening packaged food item
  9.         //+UaS_Consumable.RESEALABLE;
  10.         //+UaS_Consumable.DRINKABLE;
  11.         //+UaS_Consumable.PACKAGED;
  12.  
  13.         Inventory.PickupMessage "";
  14.         Inventory.Icon "HSCVA0";
  15.         tag "";
  16.     }
  17.  
  18. //EXAMPLE FOOD
  19. class UaS_CurryRiceMRE : UaS_Consumable {
  20.     mixin UaS_BigMREPouch;
  21.     default {
  22.         tag "Curry and Rice";
  23.         UaS_Consumable.Description "Spicy red curry with rice and potatos.";
  24.     }
  25.     override void Messages() {
  26.         AddOpenText("Finally something exciting.");
  27.         AddOpenText("Maybe this batch won't upset your stomach.");
  28.         AddOpenText("Hope the rice isn't mushy.");
  29.     }
  30. }
  31.  
  32.  
  33.  
  34. //Main Meals and Tasty Shit
  35.  
  36. class UaS_EnchCassMRE : UaS_Consumable {
  37.     mixin UaS_BigMREPouch;
  38.     default {
  39.         tag "Enchilada Casserole";
  40.         UaS_Consumable.Description "Enchilada Casserole with Red Sauce.";
  41.     }
  42.     override void Messages() {
  43.         AddOpenText("Man, the sauce has some kick!");
  44.         AddOpenText("They never include enough refried beans.");
  45.         AddOpenText("Wish I had a honey packet for this.");
  46.         AddOpenText("Spicy and smooth!");
  47.     }
  48. }
  49.  
  50. class UaS_FireballMRE : UaS_Consumable {
  51.     mixin UaS_BigMREPouch;
  52.     default {
  53.         tag "Fireball Scramble";
  54.         UaS_Consumable.Description "Hearty Fireball Breakfast Scramble.";
  55.     }
  56.     override void Messages() {
  57.         AddOpenText("Three kinds of meat! Two kinds of Potato!");
  58.         AddOpenText("Mix the 1st and 3rd hot sauce. Always skip Sauce 2.");
  59.         AddOpenText("A hearty breakfast meal that works anytime.");
  60.     }
  61. }
  62.  
  63. class UaS_GrabbagMRE : UaS_Consumable {
  64.     mixin UaS_BigMREPouch;
  65.     default {
  66.         tag "Mystery Mix MRE"
  67.         UaS_Consumable.Description "An MRE that was assembled with whatever was available."
  68.     }
  69.     override void Messages () {
  70.     AddOpenText("It's just a mix of crackers and patte...")
  71.     AddOpenText("Two grain bread and processed cheese, huh?")
  72.     AddOpenText("Why would you pack three kinds of rice and ketchup?")
  73.     AddOpenText("Salad and barbecue sauce?")
  74.     AddOpenText("Beef strips, Grape candy, and pear cubes...")
  75.     AddOpenText("Four cans of energy drink and six energy bars?")  
  76.     }
  77. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement