Skip to content

Commit

Permalink
Testing Fourth Party
Browse files Browse the repository at this point in the history
trying to get expanded role descriptions back
  • Loading branch information
Wyndter committed Oct 14, 2023
1 parent b21c4b1 commit 4dd9324
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 1 deletion.
4 changes: 4 additions & 0 deletions detail/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,10 @@ <h3>Mafia</h3>
<h3>Third Party</h3>
<ul class="list"></ul>
</div>
<div class="col-sm-6" id="fourth-party-role-list">
<h3>Fourth Party</h3>
<ul class="list"></ul>
</div>
</div>
</div>

Expand Down
8 changes: 8 additions & 0 deletions detail/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ $.getJSON(prefix + '/tiers/' + tierID + '.json', function(tier) {
var townRoles = [];
var mafiaRoles = [];
var thirdPartyRoles = [];
var fourthPartyRoles = [];
$.each(roles, function(ix, e) {
console.log(ix, e);
switch (e.team) {
Expand All @@ -23,6 +24,9 @@ $.getJSON(prefix + '/tiers/' + tierID + '.json', function(tier) {
case "Third Party":
thirdPartyRoles.push(e);
break;
case "Fourth Party":
fourthPartyRoles.push(e);
break;
default:
throw "Invalid team!";
}
Expand Down Expand Up @@ -59,6 +63,10 @@ $.getJSON(prefix + '/tiers/' + tierID + '.json', function(tier) {
item: 'single-col-item',
valueNames: ['name', 'description']
}, thirdPartyRoles);
var fourthPartyRoleList = new List('fourth-party-role-list', {
item: 'single-col-item',
valueNames: ['name', 'description']
}, fourthPartyRoles);

});
});
2 changes: 1 addition & 1 deletion roles.json
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@
"name": "Gaslighter",
"description": "You don't know how to read, never did.",
"team": "Fourth Party",
"author": "Will"
"author": "When Will You Learn"
},
{
"name": "Jester",
Expand Down

0 comments on commit 4dd9324

Please sign in to comment.