Advertisement
RedSnow

Ugly As Sin Meal Coding Work v1 (12-29-2020)

Dec 30th, 2020 (edited)
141
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 3.65 KB | None | 0 0
  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.  
  35. //Soda Addon
  36.  
  37. class UaS_LemonFizzSoda : UaS_Consumable {
  38.     mixin UaS_SodaMixin;
  39.     default {
  40.         UaS_Consumable.Description "A can of tart lemon-flavored carbonated water.";
  41.         tag "Lemon Fizz Soda";
  42.     }
  43. }
  44.  
  45.  
  46.  
  47.  
  48.  
  49. //My OWN COFFEE Work. I think it this is going to need a glance from Cali. The UaS Messaging tags turned me around here since I was stepping out of a comfort zone.
  50. class UaS_CoffeePack : UaS_Consumable {
  51.     default {
  52.         UaS_Consumable.Calories 150;
  53.         UaS_Consumable.Fluid 250;
  54.         UaS_Consumable.Bulk 5;
  55.         UaS_Consumable.Description "";
  56.         +UaS_Consumable.DRINKABLE;
  57.         +UaS_Consumable.PACKAGED;
  58.         Inventory.PickupMessage "Picked up a disposable, self-heating water pouch with a pack of coffee mix.";
  59.         Inventory.Icon "HSCVR0";
  60.         scale 0.45;
  61.     }
  62. }
  63.  
  64. class UaS_NeoEnglandMix : UaS_Consumable {
  65.     mixin UaS_CoffeePack;
  66.     default {
  67.         UaS_Consumable.Description "One of three Coffee Blends still legal in the Reformed United Kingdom.";
  68.         tag "EnglandCoffee";
  69.     }
  70. }
  71.  
  72. class UaS_KnoxCoffee : UaS_Consumable {
  73.     mixin UaS_CoffeePack;
  74.     default {
  75.         UaS_Consumable.Calories 200;
  76.         UaS_Consumable.Fluid 200;
  77.         UaS_Consumable.Description "A bootlegged coffee pouch. Best Served Very Hot.";
  78.         tag "KnoxCoffee";
  79.     }
  80.     override void Messages() {
  81.         AddOpenText("It'll heat up more than your mouth!");
  82.         AddOpenText("An illegal but tasty cup of hazelnut coffee.");
  83.     }
  84. }
  85.  
  86. class UaS_SpaceCoffee : UaS_Consumable {
  87.     mixin UaS_CoffeePack;
  88.     default {
  89.         UaS_Consumable.Description "A pouch of coffee served on space stations in Earth's orbit.";
  90.         tag "SpaceCoffee";
  91.     }
  92.     override void Messages() {
  93.         AddOpenText("Contractually described as hearty and energizing!");
  94.         AddOpenText("Who would want this deep space swill?");
  95.     }
  96. }
  97.  
  98. //Main Meals and Tasty Shit
  99.  
  100. class UaS_ChickenDumpMRE : UaS_Consumable {
  101.     mixin UaS_BigMREPouch;
  102.     default {
  103.         tag "Chicken and Dumplings";
  104.         UaS_Consumable.Description "Chicken Dumplings with Vegetables.";
  105.     }
  106.     override void Messages() {
  107.         AddOpenText("The sauce is pretty thick.");
  108.         AddOpenText("The vegetables are super tender!");
  109.         AddOpenText("How do they keep the chicken moist?");
  110.     }
  111. }
  112.  
  113. class UaS_EnchCassMRE : UaS_Consumable {
  114.     mixin UaS_BigMREPouch;
  115.     default {
  116.         tag "Enchilada Casserole";
  117.         UaS_Consumable.Description "Enchilada Casserole with Red Sauce.";
  118.     }
  119.     override void Messages() {
  120.         AddOpenText("Man, the sauce has some kick!");
  121.         AddOpenText("They never include enough refried beans.");
  122.         AddOpenText("Wish I had a honey packet for this.");
  123.         AddOpenText("Spicy and smooth!");
  124.     }
  125. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement