-
Notifications
You must be signed in to change notification settings - Fork 96
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
+Fixed a bug that didn't delete artifacts when a player deleted his account +Added "(artifact)" if a village has an artifact in the village overview +Added the artifact section in the multihunter panel (return to natars doesn't work yet) NOTE: To play this version of the game, you have to run this query first (where "s1_" is the prefix of your server): ALTER TABLE `s1_artefacts` ADD `del` TINYINT(1) NULL DEFAULT '0' AFTER `lastupdate`; ALTER TABLE `testtravian`.`s1_artefacts` ADD INDEX `active-owner-conquered-del` (`active`, `owner`, `conquered`, `del`);
- Loading branch information
Showing
13 changed files
with
583 additions
and
416 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
<?php | ||
include_once("../GameEngine/Artifacts.php"); | ||
|
||
$artifact = reset($database->getOwnArtefactInfo($_GET['did'])); | ||
$artifactOfTheFool = !empty($artifact) && $artifact['type'] == 8; | ||
$artifactInfo = Artifacts::getArtifactInfo($artifact); | ||
?> | ||
<table id="member"> | ||
<thead> | ||
<tr> | ||
<th colspan="8">Artifact</th> | ||
</tr> | ||
<tr> | ||
<td class="ra"></td> | ||
<td class="ra"></td> | ||
<td colspan="1">Name</td> | ||
<td colspan="1">Bonus</td> | ||
<td colspan="1">Area of effect</td> | ||
<td colspan="1">Time of conquer</td> | ||
<td colspan="1">Time of activation</td> | ||
<?php if($artifactOfTheFool){?> | ||
<td colspan="1">Next activation</td> | ||
<?php } ?> | ||
</tr> | ||
</thead> | ||
<tbody> | ||
<?php | ||
if(empty($artifact)){ | ||
?> | ||
<tr> | ||
<td colspan="8"><div style="text-align: center"><?php echo NO_ARTIFACTS; ?></div></td> | ||
</tr> | ||
<?php }else{ ?> | ||
<tr> | ||
<td><a href="?action=delArtifact&artid=<?php echo $artifact['id']; ?>" onClick="return del('arti', <?php echo $artifact['id']; ?>)"><img src="../img/admin/del.gif"></a></td> | ||
<td class="icon"><img class="artefact_icon_<?php echo $artifact['type']; ?>" src="../img/x.gif"></td> | ||
<td colspan="1"><div style="text-align: center"><?php echo $artifact['name']; ?></div></td> | ||
<td colspan="1"><div style="text-align: center"><?php echo $artifactInfo['bonus']; ?></div></td> | ||
<td colspan="1"><div style="text-align: center"><?php echo $artifactInfo['effectInfluence']; ?></div></td> | ||
<td colspan="1"><div style="text-align: center"><?php echo date("d.m.Y H:i:s", $artifact['conquered']); ?></div></td> | ||
<td colspan="1"><div style="text-align: center"><?php echo $artifactInfo['active']; ?></div></td> | ||
<?php if($artifactOfTheFool){?> | ||
<td colspan="1"><div style="text-align: center"><?php echo $artifactInfo['nextEffect']; ?></div></td> | ||
<?php } ?> | ||
</tr> | ||
<?php } ?> | ||
</tbody> | ||
</table> | ||
<?php | ||
|
||
if($village['owner'] != 3) echo '<a href="admin.php?p=returnArtifact&artid='.$artifact['id'].'">Return to Natars</a>'; | ||
?> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
c574a71
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great section , looks awesome