mirror of
				https://github.com/em-squared/5e-drs.git
				synced 2025-11-03 16:59:31 +00:00 
			
		
		
		
	
		
			
	
	
		
			16 lines
		
	
	
	
		
			349 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
		
		
			
		
	
	
			16 lines
		
	
	
	
		
			349 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
| 
								 | 
							
								export function displayItemMeta (item, short = false) {
							 | 
						||
| 
								 | 
							
								  let result = item.type
							 | 
						||
| 
								 | 
							
								  if (item.subtype) {
							 | 
						||
| 
								 | 
							
								    result += ' (' + item.subtype + ')'
							 | 
						||
| 
								 | 
							
								  }
							 | 
						||
| 
								 | 
							
								  result += ', ' + item.rarity
							 | 
						||
| 
								 | 
							
								  if (item.attunement) {
							 | 
						||
| 
								 | 
							
								    if (short) {
							 | 
						||
| 
								 | 
							
								      result += ' (harmonisation requise)'
							 | 
						||
| 
								 | 
							
								    } else {
							 | 
						||
| 
								 | 
							
								      result += ' (' + item.attunement + ')'
							 | 
						||
| 
								 | 
							
								    }
							 | 
						||
| 
								 | 
							
								  }
							 | 
						||
| 
								 | 
							
								  return result
							 | 
						||
| 
								 | 
							
								}
							 |