mirror of
				https://github.com/KartKrewDev/RingRacers.git
				synced 2025-10-30 08:01:28 +00:00 
			
		
		
		
	Merge branch 'retune-amps' into 'master'
Retune stat-based amp gains See merge request kart-krew-dev/ring-racers-internal!2961
This commit is contained in:
		
						commit
						3e058ed7cf
					
				
					 1 changed files with 7 additions and 1 deletions
				
			
		|  | @ -4594,7 +4594,13 @@ void K_SpawnAmps(player_t *player, UINT8 amps, mobj_t *impact) | |||
| 
 | ||||
| 	UINT32 itemdistance = min(FRACUNIT-1, K_GetItemRouletteDistance(player, D_NumPlayersInRace())); // cap this to FRACUNIT-1, so it doesn't wrap when turning it into fixed_t
 | ||||
| 	fixed_t itemdistmult = FRACUNIT + min(FRACUNIT, (itemdistance<<FRACBITS) / MAXAMPSCALINGDIST); | ||||
| 	UINT16 scaledamps = min(amps, amps * (10 + (9-player->kartspeed) - (9-player->kartweight)) / 10); | ||||
| 
 | ||||
| 	INT32 weighting = player->kartweight - player->kartspeed; | ||||
| 	INT32 minweight = 1 - 9; | ||||
| 	INT32 maxweight = 9 - 1; | ||||
| 
 | ||||
| 	UINT16 scaledamps = FixedRescale(weighting, minweight, maxweight, Easing_Linear, amps/2, 5*amps/4); | ||||
| 
 | ||||
| 	// Debug print for scaledamps calculation
 | ||||
| 	// CONS_Printf("K_SpawnAmps: player=%s, amps=%d, kartspeed=%d, kartweight=%d, itemdistance=%d, itemdistmult=%0.2f, statscaledamps=%d, distscaledamps=%d\n",
 | ||||
| 	// 	player_names[player-players], amps, player->kartspeed, player->kartweight,
 | ||||
|  |  | |||
		Loading…
	
	Add table
		
		Reference in a new issue
	
	 Eidolon
						Eidolon