forked from GithubMirrors/cardconjurer
		
	Replace all tilde with cardname, not just the first one
This commit is contained in:
		 DorkmasterFlek
					DorkmasterFlek
				
			
				
					committed by
					
						 Josh birnholz
						Josh birnholz
					
				
			
			
				
	
			
			
			 Josh birnholz
						Josh birnholz
					
				
			
						parent
						
							322d78223a
						
					
				
				
					commit
					5ca4a33ab8
				
			| @@ -267,7 +267,7 @@ const mana = new Map();"" | |||||||
| loadManaSymbols(['0', '1', '2', '3', '4', '5', '6', '7', '8', '9', '10', '11', '12', '13', '14', '15', '16', '17', '18', '19', '20', | loadManaSymbols(['0', '1', '2', '3', '4', '5', '6', '7', '8', '9', '10', '11', '12', '13', '14', '15', '16', '17', '18', '19', '20', | ||||||
| 				 'w', 'u', 'b', 'r', 'g', 'c', 'x', 'y', 'z', 't', 'untap', 'e', 's', 'oldtap', 'originaltap', 'purple', "a", "inf", "alchemy"]); | 				 'w', 'u', 'b', 'r', 'g', 'c', 'x', 'y', 'z', 't', 'untap', 'e', 's', 'oldtap', 'originaltap', 'purple', "a", "inf", "alchemy"]); | ||||||
| loadManaSymbols(['wu', 'wb', 'ub', 'ur', 'br', 'bg', 'rg', 'rw', 'gw', 'gu', '2w', '2u', '2b', '2r', '2g', 'wp', 'up', 'bp', 'rp', 'gp', 'p', | loadManaSymbols(['wu', 'wb', 'ub', 'ur', 'br', 'bg', 'rg', 'rw', 'gw', 'gu', '2w', '2u', '2b', '2r', '2g', 'wp', 'up', 'bp', 'rp', 'gp', 'p', | ||||||
| 				 'wup', 'wbp', 'ubp', 'urp', 'brp', 'bgp', 'rgp', 'rwp', 'gwp', 'gup', 'purplew', 'purpleu', 'purpleb', 'purpler', 'purpleg',  | 				 'wup', 'wbp', 'ubp', 'urp', 'brp', 'bgp', 'rgp', 'rwp', 'gwp', 'gup', 'purplew', 'purpleu', 'purpleb', 'purpler', 'purpleg', | ||||||
| 				 '2purple', 'purplep'], [1.2, 1.2]); | 				 '2purple', 'purplep'], [1.2, 1.2]); | ||||||
| loadManaSymbols(['bar.png', 'whitebar.png']); | loadManaSymbols(['bar.png', 'whitebar.png']); | ||||||
| loadManaSymbols(['chaos'], [1.2, 1]); | loadManaSymbols(['chaos'], [1.2, 1]); | ||||||
| @@ -544,7 +544,7 @@ function cardFrameProperties(colors, manaCost, typeLine, power, style) { | |||||||
| 				rules = 'C'; | 				rules = 'C'; | ||||||
| 			} | 			} | ||||||
| 		} | 		} | ||||||
| 		 |  | ||||||
| 	} else { | 	} else { | ||||||
| 		if (typeLine.includes('Land')) { | 		if (typeLine.includes('Land')) { | ||||||
| 			if (colors.length == 0) { | 			if (colors.length == 0) { | ||||||
| @@ -630,7 +630,7 @@ function cardFrameProperties(colors, manaCost, typeLine, power, style) { | |||||||
| 			pt = typeTitle; | 			pt = typeTitle; | ||||||
| 		} | 		} | ||||||
| 	} | 	} | ||||||
| 	 |  | ||||||
| 	var frame; | 	var frame; | ||||||
| 	if (style == 'Seventh') { | 	if (style == 'Seventh') { | ||||||
| 		if (typeLine.includes('Land')) { | 		if (typeLine.includes('Land')) { | ||||||
| @@ -1166,7 +1166,7 @@ function makeM15FrameByLetter(letter, mask = false, maskToRightHalf = false, sty | |||||||
| 				'name': mask | 				'name': mask | ||||||
| 			} | 			} | ||||||
| 		] | 		] | ||||||
| 		 |  | ||||||
| 		if (maskToRightHalf) { | 		if (maskToRightHalf) { | ||||||
| 			frame.masks.push({ | 			frame.masks.push({ | ||||||
| 				'src': '/img/frames/maskRightHalf.png', | 				'src': '/img/frames/maskRightHalf.png', | ||||||
| @@ -1247,7 +1247,7 @@ function make8thEditionFrameByLetter(letter, mask = false, maskToRightHalf = fal | |||||||
| 		if (mask == 'Border') { | 		if (mask == 'Border') { | ||||||
| 			frame.masks[0].src = frame.masks[0].src.replace('.png', '.svg'); | 			frame.masks[0].src = frame.masks[0].src.replace('.png', '.svg'); | ||||||
| 		} | 		} | ||||||
| 		 |  | ||||||
| 		if (maskToRightHalf) { | 		if (maskToRightHalf) { | ||||||
| 			frame.masks.push({ | 			frame.masks.push({ | ||||||
| 				'src': '/img/frames/maskRightHalf.png', | 				'src': '/img/frames/maskRightHalf.png', | ||||||
| @@ -1550,7 +1550,7 @@ function makeUBFrameByLetter(letter, mask = false, maskToRightHalf = false) { | |||||||
| 				'name': mask | 				'name': mask | ||||||
| 			} | 			} | ||||||
| 		] | 		] | ||||||
| 		 |  | ||||||
| 		if (maskToRightHalf) { | 		if (maskToRightHalf) { | ||||||
| 			frame.masks.push({ | 			frame.masks.push({ | ||||||
| 				'src': '/img/frames/maskRightHalf.png', | 				'src': '/img/frames/maskRightHalf.png', | ||||||
| @@ -1650,7 +1650,7 @@ function makeEtchedFrameByLetter(letter, mask = false, maskToRightHalf = false) | |||||||
| 				'name': mask | 				'name': mask | ||||||
| 			} | 			} | ||||||
| 		] | 		] | ||||||
| 		 |  | ||||||
| 		if (maskToRightHalf) { | 		if (maskToRightHalf) { | ||||||
| 			frame.masks.push({ | 			frame.masks.push({ | ||||||
| 				'src': '/img/frames/maskRightHalf.png', | 				'src': '/img/frames/maskRightHalf.png', | ||||||
| @@ -1714,7 +1714,7 @@ function makeSeventhEditionFrameByLetter(letter, mask = false, maskToRightHalf = | |||||||
| 				} | 				} | ||||||
| 			] | 			] | ||||||
| 		} | 		} | ||||||
| 		 |  | ||||||
| 		if (maskToRightHalf) { | 		if (maskToRightHalf) { | ||||||
| 			frame.masks.push({ | 			frame.masks.push({ | ||||||
| 				'src': '/img/frames/maskRightHalf.png', | 				'src': '/img/frames/maskRightHalf.png', | ||||||
| @@ -2757,7 +2757,7 @@ function artDrag(e) { | |||||||
| 			startY = endY; | 			startY = endY; | ||||||
| 			artEdited(); | 			artEdited(); | ||||||
| 		} | 		} | ||||||
| 		 |  | ||||||
| 	} | 	} | ||||||
| } | } | ||||||
| function artStopDrag(e) { | function artStopDrag(e) { | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user