Buggy code:
public static final String FOOD_KEY = "Food" ; public static final String WATER_KEY = "Water" ; public static final String VALUABLES_KEY = "Valuables" ; public static final String AMMO_KEY = "Ammo" ; public static final String MEDICINE_KEY = "Medicine" ; public static final String MORALE_KEY = "Morale" ; public static final String STAMINA_KEY = "Stamina" ; public static final String PACK_ANIMALS_KEY = "Pack<seq2seq4repair_space>Animals" ; public static final double MOVE_TO_FREQUENCY = 0.5 ; public static final double INVESTIGATE_FREQUENCY = 0.75 ; public static final double REST_FREQUENCY = 0.25 ; public static final int GRAB_NEAREST_TILE_INDEX = - 1 ; public static final int WATER_TILE_INDEX = 0 ; public static final int JUNGLE_TILE_INDEX = 1 ; public static final int MOUNTAIN_TILE_INDEX = 2 ; public static final int DESERT_TILE_INDEX = 12 ; public static final int HIGHLAND_TILE_INDEX = 13 ; public static final int KING_SOLOMONS_MINES_TILE_INDEX = 14 ; public static final int OASIS_TILE_INDEX = 15 ; public static final int SAVANNAH_TILE_INDEX = 16 ; public static final int VILLAGE_TILE_INDEX = 17 ; public static final int MARKER_INDEX = 3 ; public static final int STATUS_BAR_INDEX = 4 ; public static final int UNKNOWN_INDEX = 5 ; public static final int RED_TINT_INDEX = 6 ; public static final int BLUE_TINT_INDEX = 7 ; public static final int DARK_TINT_INDEX = 8 ; public static final int BLANK_INDEX = 9 ; public static final int DARK_RED_TINT_INDEX = 10 ; public static final int DARK_BLUE_TINT_INDEX = 11 ; public static final int MIN_PARTY_SIZE = 2 ; private static Player player1 ; private static View view ; public static Map map ; public static InputManager input ; private static Integer currentMode = - 1 ; private static gameframe frame ; private static boolean finalEvent = false ; private static boolean kickedMemberThisTurn = false ; BufferedImage bkgImg ; Rectangle drawRect ; StatsBar statsBar ; int statBarWidth ; static int statBarHeight ; public static HashMap < String , TileType > tileTypes ; private boolean launchedFinalEvent = false ; private static LinkedHashMap < String , Integer > stats ; private static boolean statsChanged = false ; public static ArrayList < Event > moveToEvents = new ArrayList < Event > ( ) ; public static ArrayList < Event > restEvents = new ArrayList < Event > ( ) ; public static ArrayList < Event > investigateEvents = new ArrayList < Event > ( ) ; public static ArrayList < Event > miscEvents = new ArrayList < Event > ( ) ; public static ArrayList < PartyMember > party = new ArrayList < PartyMember > ( ) ; public static PartyMember keyMan ; public static BufferedImage [ ] tileImages = new BufferedImage [ 20 ] ; public static EventDrawer eventDrawer = null ; public static StartDayDrawer startDayDrawer = null ; public void resetAllVals ( ) { } public static void removeInputManager ( ) { } public MainGame ( gameframe frame , int width , int height , HashMap < String , Integer > gentStats , HashMap < String , PartyMember > theParty ) throws IOException { } private void preloadTileImages ( ) { } private void initTileTypes ( ) { } private void initStats ( ) { MainGame . stats = new LinkedHashMap < String , Integer > ( ) ; MainGame . setPartyStat ( MainGame . MORALE_KEY , 100 ) ; MainGame . setPartyStat ( MainGame . STAMINA_KEY , 100 ) ; MainGame . setPartyStat ( MainGame . FOOD_KEY , 60 ) ; MainGame . setPartyStat ( MainGame . WATER_KEY , 60 ) ; MainGame . setPartyStat ( MainGame . AMMO_KEY , 100 ) ; MainGame . setPartyStat ( MainGame . MEDICINE_KEY , 10 ) ; <START_BUG> MainGame . setPartyStat ( MainGame . VALUABLES_KEY , 0 ) ; <END_BUG> MainGame . setPartyStat ( MainGame . PACK_ANIMALS_KEY , 0 ) ; } private void initSelectangles ( ) { } public void update ( ) { } public void draw ( Graphics g ) { } private void updateTileOverlay ( ) { } private void updateStatsBar ( ) { } private void updateMenuDrawers ( ) { } private void checkMorale ( ) { } private void checkEndGameConditions ( ) { } private void checkTooFewParty ( ) { } private void checkFoodDeath ( ) { } private void checkWaterDeath ( ) { } private static String getStatsBarString ( ) { } public static void handleNewDayStatChanges ( ) { } public static void addPartyMemberToParty ( PartyMember pm ) { } public static void killPartyMember ( PartyMember pm ) { } public static void incPartyStat ( String statName , int val ) { } public void loadEvents ( ) { } public void createEventLists ( ArrayList < Event > events ) { } public static boolean containsIgnoreCase ( ArrayList < String > list , String str ) { } public Event getRandomMoveToEvent ( TileType loc ) { } public Event getRandomInvestigateEvent ( TileType loc ) { } public Event getRandomRestEvent ( TileType loc ) { } public Event getRandomEvent ( TileType type , Event defaultEvent , double nonDefaultFreq , ArrayList < Event > eventList ) { } public static Event getRandomEvent ( TileType type , Event defaultEvent , double nonDefaultFreq , ArrayList < Event > eventList , int recNum ) { } public static void launchEvent ( Event e , ArrayList < PartyMember > presMembers ) { } public static void launchFinalEvent ( Event e , ArrayList < PartyMember > presMembers ) { } public static void launchFinalEventWithSelectedMember ( Event e , ArrayList < PartyMember > presMembers , PartyMember toSelect ) { } public static void launchEvent ( Event e , ArrayList < PartyMember > presMembers , PartyMember toSelect , boolean isFinalEvent ) { } public static void responseEffect ( int result , ResponseOption selectedResponse ) { } public static void closeEvent ( ) { } public static void closeStartDay ( Integer newmode , int startDayChoice ) { } public static ArrayList < Long > getTotalCurrentPartyStats ( ) { } public static boolean isResponsePossible ( ResponseOption ro ) { }

Fix:
MainGame . setPartyStat ( MainGame . VALUABLES_KEY , 20 ) ;