Guest User

Less Garbage

a guest
Mar 15th, 2015
4,014
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.79 KB | None | 0 0
  1. using ICities;
  2. using UnityEngine;
  3.  
  4. namespace LessGarbageMod
  5. {
  6.     public class Main : IUserMod
  7.     {
  8.  
  9.         public string Name
  10.         {
  11.             get { return "LessGarbage"; }
  12.         }
  13.  
  14.         public string Description
  15.         {
  16.             get { return "Divide garbage expenses by 4 for a more balanced gameplay."; }
  17.         }
  18.  
  19.     }
  20.  
  21.     public class Economy : EconomyExtensionBase
  22.     {
  23.         public override int OnGetMaintenanceCost(int originalMaintenanceCost, Service service, SubService subService, Level level)
  24.         {
  25.             if (service == Service.Garbage)
  26.             {
  27.                 return originalMaintenanceCost / 4;
  28.             }
  29.             else
  30.             {
  31.                 return originalMaintenanceCost;
  32.             }
  33.         }
  34.  
  35.     }
  36. }
Advertisement
Add Comment
Please, Sign In to add comment