");
272 | sb.append("").append(baseId).append(" | ");
273 | //String portraitpath = String.format("src=\"../assets/card_images/%03d.png\"", baseId);
274 | String portraitimage = String.format("src=\"portraits/%03d.png\"", baseId);
275 | String cardimage = String.format("src=\"cards/%03d.png\"", baseId);
276 | //sb.append("").append("![]() ").append(" | "); // width="300" -- deprecated for now
277 | sb.append("").append("![]() ").append(" | "); // width="300" -- deprecated for now
278 |
279 | sb.append(""+name+ "![]() | ");
280 |
281 | sb.append("").append(type.getDescription()).append(" | ");
282 |
283 | sb.append("").append(cost).append(" | ");
284 | sb.append("").append(attack).append(" | ");
285 | sb.append("").append(defense).append(" | ");
286 |
287 | sb.append("");
288 | sb.append(this.keywords);
289 | sb.append(" | ");
290 |
291 | sb.append("").append(myHealthChange).append(" | ");
292 | sb.append("").append(oppHealthChange).append(" | ");
293 | sb.append("").append(cardDraw).append(" | ");
294 |
295 | Pattern tesllink = Pattern.compile("@(\\d+)=(['\\w-]+)");
296 | String htmlcomment = teslcomment==null ? "" : teslcomment;
297 | Matcher m = tesllink.matcher(htmlcomment);
298 | while (m.find())
299 | {
300 | String lowname = m.group(2).replace("-", "").toLowerCase();
301 | String fullname = m.group(2).replace("-", " ");
302 | String link = String.format("%s
",
303 | m.group(1), lowname, fullname, lowname);
304 | htmlcomment = htmlcomment.replace(m.group(0), link);
305 | }
306 |
307 | String tt = toTooltipInnerText();
308 | if (tt.length()> 0)
309 | sb.append("").append(tt.replace("\\n", " ")).append(" | ");
310 | else
311 | sb.append("").append(toTextDescription()).append(" | ");
312 |
313 | //sb.append("");
314 | if (htmlcomment.length() > 0)
315 | sb.append("").append(htmlcomment).append(" | ");
316 |
317 |
318 | // card = "