Skip to content

Commit aa19e54

Browse files
committed
1.3.32
Minor wiki and text changes.
1 parent 93d4671 commit aa19e54

File tree

7 files changed

+621
-549
lines changed

7 files changed

+621
-549
lines changed

Dam Defense/Items/Medicines.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1300,7 +1300,7 @@
13001300
</Override>
13011301

13021302
<!-- mutagenic serums -->
1303-
<Item name="Mutagenic Serum" nameidentifier="serum" identifier="serummollusc" category="Medical,Misc" Tags="smallitem,chem,medical" cargocontaineridentifier="chemicalcrate" useinhealthinterface="true" scale="0.5" impactsoundtag="impact_metal_light" RequireAimToUse="True">
1303+
<Item name="Mutagenic Serum" nameidentifier="serum" identifier="serummollusc" category="Medical,Misc" Tags="smallitem,chem,medical,serum" cargocontaineridentifier="chemicalcrate" useinhealthinterface="true" scale="0.5" impactsoundtag="impact_metal_light" RequireAimToUse="True">
13041304
<Deconstruct time="10">
13051305
<Item identifier="iron" />
13061306
</Deconstruct>

Dam Defense/Localizations/english.lua

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,7 @@ return {
276276
wikiName_gangEvent = 'Gang Event',
277277
wikiText_gangEvent = 'This a side event where a player is spawned in as a mafioso gang leader. His objective is to grow his gang and obtain power and influence in whatever way he deems fit. He is not necessarily an antagonist and this is not a round ending event.\nThe gang leader and the gang leader only can craft items specific to the event for cheap, such as the UZI, ballistic cap, crystal meth and spraycans. The crystal meth is very important, because when smoked in a pipe by a player without an antag-safe job, they will be recruited to the gang of the respective color.',
278278
wikiName_wizardEvent = 'Wizard Event',
279-
wikiText_wizardEvent = 'This is a side event where a player is spawned in as a wizard. His objective is to cause chaos and mayhem, although this does not mean the wizard is an antagonist, for he can act good or evil.\nThe wizard spawns with, amongst other items, a staff and some spellbooks. When the staff and a spellbook are both held at once, spells can be cast.',
279+
wikiText_wizardEvent = 'This is a side event where a player is spawned in as a wizard. His objective is to cause chaos and mayhem, although this does not mean the wizard is an antagonist, for he can act good or evil.\nThe wizard spawns with, amongst other items, a staff and some spellbooks. When the staff and a spellbook are both held at once, spells can be cast.\nThere is 10% chance from February to November and a 100% chance from December to January that instead of the regular Merasmus wizard spawning, Old Nick (Santa Claus) will spawn instead!',
280280
wikiName_mercsEvent = 'MERCS Event',
281281
wikiText_mercsEvent = 'This is a side event where a player will be spawned as a member of the Mobile Emergency Rescue and Combat Squad (abbreviated: MERCS). Their goal is to assist security and they are essentially a super cop, even counting as a member of security. They look very similar to the Death Squadders, but have an entirely different objective.',
282282
wikiName_chimeraEvent = 'Chimera Event',
@@ -358,6 +358,8 @@ return {
358358
wikiText_bloodsamplerItem = 'Can be used by medical to test people for diseases and for crystal meth (positive on crystal meth indicates player is a gang member, relevant to Gang Event). Medical and non medical jobs can also use the blood sampler take live samples of diseases from infected individuals. Live samples can usually be used to make antidotes... or for bioterrorism.',
359359
wikiName_methItem = 'Crystal Meth',
360360
wikiText_methItem = 'An item craftable by the gang leader. When smoked using a pipe, the player will join the gang of the associated color. Give this out as the gang leader to people you want to recruit to be your goons.\nHeals damage, bloodloss and gives haste when smoked using a pipe, but causes significant pulmonary emphysema, unless smoked by someone with strong lungs, like the mayor or gang leader.',
361+
wikiName_serumItem = 'Mutagenic Serum',
362+
wikiText_serumItem = 'Extract genetic material from fresh cadavers using a bonesaw. Refine impure genetic material into pure genetic material using a deconstructor. Finally craft the serum in a medical fabricator or chem kit.',
361363
-- wiki items (autogen)
362364
wikiText_goblincrateItem = 'Can fit an entire goblin or troll inside. Greenskins will heal when inside a crate. Do not try to hide inside it as a human.',
363365
wikiText_skyholderartifactItem = 'Highly radioactive alien artifact. Best handled using a hazmat suit or PUCS.',
@@ -377,6 +379,8 @@ return {
377379
wikiText_nexshop1Item = 'This page links to all items which can be bought in a Nexshop (TM).',
378380
wikiText_nukieshop1Item = 'This page links to all items which can be bought in a Nukieshop.',
379381
wikiText_secnexshopItem = 'This page links to all items which can be bought in a Security Nexshop (TM).',
382+
wikiName_geneticmaterialItem = 'Pure Genetic Material',
383+
wikiText_geneticmaterialItem = 'Sufficiently pure for concocting mutagenic serums. Obtained either from a fresh specimen or from deconstructing impure genetic material.\nCan be converted back into impure genetic material with sulphuric acid in a medical fabricator or chem kit.',
380384
-- wiki creatures
381385
wikiName_spitroachCreature = 'Spitroach',
382386
wikiText_spitroachCreature = 'An annoying cowardly pest that breeds and grows fast. They run up close, spit their acid, run away and repeat, usually in a synchronized group motion. When no targets are in sight, they spit on their walls, causing leaks and trouble. Immune to acid burns.',

Dam Defense/Localizations/english.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@
7373
<jobdescription.foreman>The mayor will often be too busy to watch over the dam, and that is where you come in. You will work together with the engineers and janitors to make sure the dam and its reactors are working neatly at all times. If the situation damands it, you can also temporarily serve as an additional security officer.</jobdescription.foreman>
7474
<!-- Researcher Job -->
7575
<jobname.researcher>Researcher</jobname.researcher>
76-
<jobdescription.researcher>Aside from working as a Medical Doctor if the times come, you will also be mainly conducting often unethical research with the aim of producing antidotes to infections by using your blood sampler on infected and later refining your live samples into antidotes in a medical fabricator.</jobdescription.researcher>
76+
<jobdescription.researcher>Aside from working as a Medical Doctor if the times comes, you will mainly be conducting unethical research with the aim of producing antidotes and mutagenic serums. The materials for which you'll respectively extract using blood samplers and the bonesaw.</jobdescription.researcher>
7777
<!-- Diver Job -->
7878
<jobname.diver>Diver</jobname.diver>
7979
<jobdescription.diver>Expert in diving and hunting. Your main task is keeping the local fauna in check with your guns and to mine with your plasma cutter. If the situation calls for it, you can also temporarily work as an additional security officer.</jobdescription.diver>

Dam Defense/Lua/DD/gui/wikiData.lua

Lines changed: 28 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ DD.wikiData = {
8888
identifier = 'eventVIP',
8989
},
9090
wizardEvent = {
91-
related = {'main', 'events', 'wizardJob', 'merasmushatItem', 'merasmusrobesItem', 'merasmusstaffItem', 'merasmusfireballbookItem', 'merasmusteleportbookItem', 'merasmusblastjumpbookItem'},
91+
related = {'main', 'events', 'wizardJob', 'merasmushatItem', 'merasmusrobesItem', 'merasmusstaffItem', 'merasmusfireballbookItem', 'merasmusteleportbookItem', 'merasmusblastjumpbookItem', 'merasmusgiftbookItem', 'merasmusgiftbombbookItem'},
9292
},
9393
gangEvent = {
9494
related = {'main', 'events', 'gangsterJob', 'methItem', 'uziItem', 'backwardscapItem', 'spraycanItem'},
@@ -122,7 +122,7 @@ DD.wikiData = {
122122
related = {'main', 'jobs', 'hardhatheadItem'},
123123
},
124124
researcherJob = {
125-
related = {'main', 'jobs', 'bloodsamplerItem'},
125+
related = {'main', 'jobs', 'bonesawItem', 'serumItem', 'bloodsamplerItem', 'fluantidoteItem', 'tbantidoteItem', 'anthraxantidoteItem'},
126126
},
127127
medicaldoctorJob = {
128128
related = {'main', 'jobs', 'healgunItem', 'healgundrumItem'},
@@ -150,7 +150,7 @@ DD.wikiData = {
150150
related = {'main', 'jobs', 'vipEvent', 'midazolamItem'},
151151
},
152152
wizardJob = {
153-
related = {'main', 'jobs', 'wizardEvent', 'merasmushatItem', 'merasmusrobesItem', 'merasmusstaffItem', 'merasmusfireballbookItem', 'merasmusteleportbookItem', 'merasmusblastjumpbookItem'},
153+
related = {'main', 'jobs', 'wizardEvent', 'merasmushatItem', 'merasmusrobesItem', 'merasmusstaffItem', 'merasmusfireballbookItem', 'merasmusteleportbookItem', 'merasmusblastjumpbookItem', 'merasmusgiftbookItem', 'merasmusgiftbombbookItem'},
154154
},
155155
gangsterJob = {
156156
related = {'main', 'jobs', 'gangEvent', 'cyanbosshatItem', 'bossclothesItem', 'methItem', 'uziItem', 'backwardscapItem', 'spraycanItem', 'captainspipeItem', 'pipetobaccoItem'},
@@ -187,6 +187,10 @@ DD.wikiData = {
187187
related = {'main', 'items', 'gangsterJob', 'gangEvent'},
188188
identifier = 'cyanspraycan',
189189
},
190+
geneticmaterialItem = {
191+
related = {'main', 'items', 'serumItem', 'geneticmaterial_unresearchedItem'},
192+
identifier = 'geneticmaterialmollusc',
193+
},
190194
-- items (medical)
191195
bacterialsyringeItem = {
192196
related = {'main', 'items', 'medicalSystem', 'bacterialinfectionAffliction'},
@@ -222,6 +226,10 @@ DD.wikiData = {
222226
related = {'main', 'items', 'medicalSystem', 'captainspipeItem', 'bloodsamplerItem', 'gangsterJob', 'gangEvent'},
223227
identifier = 'cyanmeth',
224228
},
229+
serumItem = {
230+
related = {'main', 'items', 'medicalSystem', 'researcherJob', 'bonesawItem'},
231+
identifier = 'serummollusc',
232+
},
225233
-- creatures
226234
spitroachCreature = {
227235
related = {'main', 'creatures', 'fishEvent'},
@@ -289,6 +297,18 @@ local autogenBlacklist = {
289297
smguniqueItem = true,
290298
nexshop2Item = true,
291299
nukieshop2Item = true,
300+
serummolluscItem = true,
301+
serumskitterItem = true,
302+
serumhunterItem = true,
303+
serumhammerheadmatriarchItem = true,
304+
serumcrawlerItem = true,
305+
serummudraptorItem = true,
306+
serummolochItem = true,
307+
serumthresherItem = true,
308+
serummantisItem = true,
309+
serumspinelingItem = true,
310+
serumhammerheadItem = true,
311+
serumhuskItem = true,
292312
}
293313
local autogenRelated = {
294314
captainspipeItem = {'pipetobaccoItem'},
@@ -301,6 +321,7 @@ local autogenRelated = {
301321
nukieshop1Item = {'nukiesEvent', 'fakemoneyItem'},
302322
fakemoneyItem = {'moneyItem'},
303323
secnexshopItem = {'captainJob', 'diverJob', 'securityofficerJob', 'mercsJob'},
324+
bonesawItem = {'researcherJob', 'serumItem', 'geneticmaterial_unresearchedItem'},
304325
}
305326
local autogenRelations = {
306327
portablegeneratorItem = {'generatorfuel'},
@@ -311,6 +332,8 @@ local autogenRelations = {
311332
nexshop1Item = {'money'},
312333
secnexshopItem = {'realmoney'},
313334
moneycaseItem = {'money'},
335+
bonesawItem = {'geneticmaterial'},
336+
serumItem = {'geneticmaterial'},
314337
}
315338
for prefab in ItemPrefab.Prefabs do
316339
-- 3146664815 is the steamworkshopid of Dam Defense
@@ -367,7 +390,7 @@ if DD.isCSharpLoaded then
367390
DD.wikiData.serverMessage.related = {'openhtml', 'main'}
368391
end
369392

370-
-- automatically adds an object's XML description to its wiki text
393+
-- automatically adds an object's XML description to its wiki text + run custom optional function
371394
for localization in DD.localizations do
372395
for key, value in pairs(localization) do
373396
if string.sub(key, 1, #'wikiText_') == 'wikiText_' then
@@ -383,7 +406,7 @@ for localization in DD.localizations do
383406
identifier = DD.wikiData[wikiIdentifier].identifier or DD.stringSplit(wikiIdentifier, 'Item')[1]
384407
description = tostring(ItemPrefab.GetItemPrefab(identifier).Description)
385408
end
386-
if description ~= nil then
409+
if (description ~= nil) and (description ~= '') then
387410
localization[key] = DD.stringReplace(localization['wiki_description'], {description = description}) .. localization[key]
388411
end
389412
end

Dam Defense/filelist.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?xml version="1.0" encoding="utf-8"?>
2-
<contentpackage name="Dam Defense" modversion="1.3.31" corepackage="False" steamworkshopid="3146664815" gameversion="1.11.5.0">
2+
<contentpackage name="Dam Defense" modversion="1.3.32" corepackage="False" steamworkshopid="3146664815" gameversion="1.11.5.0">
33
<Other file="%ModDir%/CSharp/Client/DamDefense.cs" />
44
<Text file="%ModDir%/Localizations/english.xml" />
55
<Item file="%ModDir%/Items/Jerry.xml" />

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Dam Defense v1.3.31
1+
# Dam Defense v1.3.32
22

33
Read me? How about I read you instead?
44

main.html

Lines changed: 584 additions & 539 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)