Skip to content
This repository has been archived by the owner on Jan 18, 2022. It is now read-only.

Commit

Permalink
Disable chat in demo world
Browse files Browse the repository at this point in the history
  • Loading branch information
Rughalt committed Mar 10, 2021
1 parent 53d8d3d commit f412c25
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 3 deletions.
7 changes: 7 additions & 0 deletions D35E.js
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,13 @@ Hooks.once("ready", async function() {
if (needMigration && game.user.isGM) {
await migrations.migrateWorld();
}
let isDemo = game.settings.get("D35E", "demoWorld")
if (isDemo) {

$('#chat-message').val('Chat is disabled in Demo Mode. This world resets every 2 hours!')
$('#chat-message').prop('disabled',true)
}


await cache.buildCache();
console.log("D35E | Cache is ", CACHE)
Expand Down
4 changes: 4 additions & 0 deletions changelogs/changelog.0.90.3.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
### All changes
- UI Fix
- Demo mode edits

2 changes: 1 addition & 1 deletion system.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "D35E",
"title": "3.5e SRD",
"description": "Implementation of 3.5 edition System Reference Document for Foundry VTT. Aiming to provide 100% SRD coverage.",
"version": "0.90.2",
"version": "0.90.3",
"author": "Rughalt",
"templateVersion": 2,
"scripts": [],
Expand Down
4 changes: 2 additions & 2 deletions templates/welcome-screen.html
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ <h1 style="text-align: center"><img src="systems/D35E/icons/ui/logo.png"
<p style="font-weight: bold; text-align: right;">Happy GMing,<br>Rughalt</p>
<h2>News</h2>
<div class="flexrow">
<div class="flexcol" style="background: url(systems/D35e/icons/ui/parchment-2.png) repeat;
<div class="flexcol" style="background: url(systems/D35E/icons/ui/parchment-2.png) repeat;
border-top-left-radius: 4px;
min-height: 400px;
height: 400px;
Expand All @@ -149,7 +149,7 @@ <h2>News</h2>
</p>

</div>
<div class="flexcol" style="background: url(systems/D35e/icons/ui/parchment-2.png) repeat;
<div class="flexcol" style="background: url(systems/D35E/icons/ui/parchment-2.png) repeat;
border-top-right-radius: 4px;
min-height: 400px;
height: 400px;
Expand Down

0 comments on commit f412c25

Please sign in to comment.