anchor.diff:  	var/linelength = get_lines()
   
   	if(reels[1][2] + reels[2][2] + reels[3][2] + reels[4][2] + reels[5][2] == "[SEVEN][SEVEN][SEVEN][SEVEN][SEVEN]")
  -		visible_message("<b>[src]</b> says, 'JACKPOT! You win [money] credits worth of coins!'")
  +		visible_message("<b>[src]</b> says, 'JACKPOT! You win [money] credits!'")
   		priority_announce("Congratulations to [user ? user.real_name : usrname] for winning the jackpot at the slot machine in [get_area(src)]!")
   		jackpots += 1
  -		balance += money - give_coins(JACKPOT)
  +		balance += money - give_payout(JACKPOT)
   		money = 0
  -
  -		for(var/i = 0, i < 5, i++)
  -			var/cointype = pick(subtypesof(/obj/item/coin))
  -			var/obj/item/coin/C = new cointype(loc)
  -			random_step(C, 2, 50)
  +		if(paymode == HOLOCHIP)
  +			new /obj/item/holochip(loc,JACKPOT)
  +		else
  +			for(var/i = 0, i < 5, i++)
  +				cointype = pick(subtypesof(/obj/item/coin))
  +				var/obj/item/coin/C = new cointype(loc)
  +				random_step(C, 2, 50)
   
   	else if(linelength == 5)
  -		visible_message("<b>[src]</b> says, 'Big Winner! You win a thousand credits worth of coins!'")
  +		visible_message("<b>[src]</b> says, 'Big Winner! You win a thousand credits!'")
   		give_money(BIG_PRIZE)
   
   	else if(linelength == 4)
  -		visible_message("<b>[src]</b> says, 'Winner! You win four hundred credits worth of coins!'")
  +		visible_message("<b>[src]</b> says, 'Winner! You win four hundred credits!'")
   		give_money(SMALL_PRIZE)
   
   	else if(linelength == 3)
  
positive.code: 
  /obj/machinery/computer/slot_machine/proc/give_money(amount)
  	var/amount_to_give = money >= amount ? amount : money
  	var/surplus = amount_to_give - give_coins(amount_to_give)
  	money = max(0, money - amount)
  	balance += surplus
  
  /obj/machinery/computer/slot_machine/proc/give_coins(amount)
  	var/cointype = obj_flags & EMAGGED ? /obj/item/coin/iron : /obj/item/coin/silver
  
  	if(!(obj_flags & EMAGGED))
  		amount = dispense(amount, cointype, null, 0)
  
negative.code: 	return amount
  
  /obj/machinery/computer/slot_machine/proc/dispense(amount = 0, cointype = /obj/item/coin/silver, mob/living/target, throwit = 0)
  	if(paymode == HOLOCHIP)
  		var/obj/item/holochip/H = new /obj/item/holochip(loc,amount)
  		
  		if(throwit && target)
  			H.throw_at(target, 3, 10)
  	else
  		var/value = coinvalues["[cointype]"]
  
  		while(amount >= value)
  			var/obj/item/coin/C = new cointype(loc) //DOUBLE THE PAIN
  			amount -= value
  			if(throwit && target)
  				C.throw_at(target, 3, 10)
  			else
  				random_step(C, 2, 40)
  
  	return amount
  
  