Skip to content
Permalink
Browse files

creature bugfix

  • Loading branch information...
NB-Core committed Dec 19, 2015
1 parent 3eaa415 commit 3261899dd6e04d7561c8ef4949626464092d19d7
Showing with 8 additions and 1 deletion.
  1. +1 −0 CHANGELOG.txt
  2. +7 −1 creatures.php
@@ -1,6 +1,7 @@
Changes to 1.2.5 +nb

[CHANGES]
*creatures.php --> forest/graveyard active will now be displayed in editor
*lib/commentary.php --> added a new hook "gmcommentarea" with section and "allow_gm"=>false to handle module requests to allow /game comments
added a fix (GM titles didn't work due to wrong variable used)
*lib/forest.php --> new hook "forest" to add stuff before the description (i.e. for mobile buttons that need to be top)
@@ -172,6 +172,8 @@
$diemsg = translate_inline("Die");
$cat = translate_inline("Category");
$script = translate_inline("Script?");
$forest_text = translate_inline("Forest?");
$graveyard_text = translate_inline("Graveyard?");
$author = translate_inline("Author");
$edit = translate_inline("Edit");
$yes = translate_inline("Yes");
@@ -181,7 +183,7 @@
rawoutput("<table border=0 cellpadding=2 cellspacing=1 bgcolor='#999999'>");
rawoutput("<tr class='trhead'>");
rawoutput("<td>$opshead</td><td>$idhead</td><td>$name</td><td>$cat</td><td>$lev</td><td>$weapon</td><td>$script</td><td>$winmsg</td><td>$diemsg</td><td>$author</td></tr>");
rawoutput("<td>$opshead</td><td>$idhead</td><td>$name</td><td>$cat</td><td>$lev</td><td>$weapon</td><td>$script</td><td>$winmsg</td><td>$diemsg</td><td>$forest_text</td><td>$graveyard_text</td><td>$author</td></tr>");
addnav("","creatures.php");
$i=true;
while ($row = db_fetch_assoc($result)) {
@@ -211,6 +213,10 @@
rawoutput("</td><td>");
output_notl("%s", $row['creaturelose']);
rawoutput("</td><td>");
output_notl("%s", ($row['forest']?"Yes":"No"));
rawoutput("</td><td>");
output_notl("%s", ($row['graveyard']?"Yes":"No"));
rawoutput("</td><td>");
output_notl("%s", $row['createdby']);
rawoutput("</td></tr>");
}

0 comments on commit 3261899

Please sign in to comment.
You can’t perform that action at this time.