Skip to content

Commit ccf7d14

Browse files
committed
1.2.10
1 parent dc9bef9 commit ccf7d14

22 files changed

+49
-43
lines changed

Dam Defense/Items/Machines.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,7 @@
279279
</Reactor>
280280
<LightComponent range="300.0" lightcolor="255,186,152,119" powerconsumption="0" IsOn="false" castshadows="false" allowingameediting="false">
281281
<IsActive targetitemcomponent="Reactor" temperature="gt 2" />
282-
<sprite texture="Content/Map/Outposts/Art/GenericAssets2.png" depth="0.025" sourcerect="649,336,575,849" alphablend="false" origin="0.5,0.5" alpha="1.0" />
282+
<sprite texture="Content/Map/Outposts/Art/GenericAssets2.png" depth="0.025" sourcerect="649,761,575,425" alphablend="false" origin="0.5,0.0" alpha="1.0" />
283283
</LightComponent>
284284
<LightComponent range="400" lightcolor="255,0,0,250" powerconsumption="0" IsOn="false" castshadows="false" allowingameediting="false" blinkfrequency="1">
285285
<IsActive targetitemcomponent="Reactor" temperaturecritical="eq true" />

Dam Defense/Lua/DD/eventDirector.lua

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -368,7 +368,7 @@ DD.thinkFunctions.eventDirector = function ()
368368
end
369369

370370
if (DD.eventDirector.mainEvent ~= nil) and DD.eventDirector.mainEvent.finished then
371-
DD.eventDirector.cooldown = DD.eventDirector.mainEvent.cooldown / 2
371+
DD.eventDirector.cooldown = 60 * 2
372372
DD.eventDirector.mainEventCooldown = DD.eventDirector.mainEvent.cooldown
373373
DD.eventDirector.mainEvent = nil
374374
end
@@ -393,11 +393,11 @@ end
393393

394394
-- Called at round start
395395
DD.roundStartFunctions.eventDirector = function ()
396-
DD.eventDirector.goodness = 0
396+
DD.eventDirector.goodness = -3 -- negative goodness means lots of bad events happened, and thus event director will favour good events
397397
DD.eventDirector.mainEvent = nil
398398
DD.eventDirector.events = {}
399-
DD.eventDirector.cooldown = 60 * 1
400-
DD.eventDirector.mainEventCooldown = 60 * 4
399+
DD.eventDirector.cooldown = 60 * 4
400+
DD.eventDirector.mainEventCooldown = 60 * 8
401401
end
402402

403403
-- Lists to the message sender all of the publicly known events

Dam Defense/Lua/DD/events/affliction.lua

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,9 @@ DD.eventAffliction = DD.class(DD.eventBase, nil, {
3737
DD.eventAfflictionFlu = DD.class(DD.eventAffliction, nil, {
3838
name = 'afflictionFlu',
3939
isMainEvent = false,
40-
cooldown = 60 * 1.5,
41-
weight = 0.4,
42-
goodness = -0.5,
40+
cooldown = 60 * 2,
41+
weight = 0.3,
42+
goodness = -1,
4343

4444
identifier = 'fluinfection',
4545
minamount = 1,
@@ -51,9 +51,9 @@ DD.eventAfflictionFlu = DD.class(DD.eventAffliction, nil, {
5151
DD.eventAfflictionTB = DD.class(DD.eventAffliction, nil, {
5252
name = 'afflictionTB',
5353
isMainEvent = false,
54-
cooldown = 60 * 1.5,
55-
weight = 0.3,
56-
goodness = -1.5,
54+
cooldown = 60 * 2,
55+
weight = 0.2,
56+
goodness = -2,
5757

5858
identifier = 'tbinfection',
5959
minamount = 1,

Dam Defense/Lua/DD/events/airdrop.lua

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ DD.eventAirdrop = DD.class(DD.eventBase, function (self, spawnPosition, items, m
77
end, {
88
name = 'airdrop',
99
isMainEvent = false,
10-
cooldown = 60 * 2,
11-
weight = 2.5,
12-
goodness = 1,
10+
cooldown = 60 * 1,
11+
weight = 3,
12+
goodness = 1.5,
1313

1414
spawnPosition = 'dd_airdrop',
1515
crateIdentifier = 'metalcrate',

Dam Defense/Lua/DD/events/blackout.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
DD.eventBlackout = DD.class(DD.eventWithStartBase, nil, {
33
name = 'blackout',
44
isMainEvent = false,
5-
cooldown = 60 * 2,
5+
cooldown = 60 * 3,
66
weight = 0.5,
77
goodness = -0.5,
88

Dam Defense/Lua/DD/events/bloodCult.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ end, {
1111

1212
name = 'bloodCult',
1313
isMainEvent = true,
14-
cooldown = 60 * 6,
14+
cooldown = 60 * 8,
1515
weight = 1.5,
1616
goodness = -1.5,
1717
minimunAlivePercentage = 1.0,

Dam Defense/Lua/DD/events/deathSquad.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ end, {
1111

1212
name = 'deathSquad',
1313
isMainEvent = true,
14-
cooldown = 60 * 3,
14+
cooldown = 60 * 4,
1515
weight = 0.5,
1616
goodness = -2.0,
1717
minimunDeadPercentage = 0.4,

Dam Defense/Lua/DD/events/election.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
DD.eventElection = DD.class(DD.eventBase, nil, {
33
name = 'election',
44
isMainEvent = false,
5-
cooldown = 60 * 5,
5+
cooldown = 60 * 3,
66
weight = 1.5,
77
goodness = -1,
88

Dam Defense/Lua/DD/events/fish.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
DD.eventFish = DD.class(DD.eventBase, nil, {
33
name = 'fish',
44
isMainEvent = false,
5-
cooldown = 60 * 1.5,
5+
cooldown = 60 * 2,
66
weight = 2.5,
77
goodness = -1,
88

Dam Defense/Lua/DD/events/gang.lua

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -137,17 +137,16 @@ end, {
137137
return
138138
end
139139

140-
-- set goons table (initially empty)
141-
self.goons = {}
142-
self.goonsSet = {}
143-
self.gangsters = {self.boss}
144-
self.gangstersSet = {[self.boss] = true}
145-
146140
-- event requires 5 or more players
147141
if (self.boss == nil) or ((not ignorePlayerCount) and (DD.tableSize(Client.ClientList) <= 4)) then
148142
self.fail('conditions to start could not be met')
149143
return
150144
else
145+
-- set goons table (initially empty)
146+
self.goons = {}
147+
self.goonsSet = {}
148+
self.gangsters = {self.boss}
149+
self.gangstersSet = {[self.boss] = true}
151150
-- Remove color and name from available list
152151
for key, color in pairs(DD.roundData.gangEventAvailableColors) do
153152
if self.gangColor == color then

0 commit comments

Comments
 (0)