-
Notifications
You must be signed in to change notification settings - Fork 0
/
aovo.lua
77 lines (71 loc) · 2.13 KB
/
aovo.lua
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
register_blueprint "chall_event_volatile_storage"
{
callbacks = {
on_create = [[
function ( self )
end
]],
on_enter_level = [[
function ( self, level, entity, reenter )
if reenter then return end
generator.generate_litter( level, level:get_area(), {
litter = { "barrel_fuel", "barrel_toxin", "barrel_acid", "barrel_cryo", "barrel_napalm" },
chance = 66,
max_count = 80,
})
end
]],
on_cleared = [[
function ( self, level )
local ui_event = gtk.get_event_ui( self )
if ui_event and ui_event.active then
ui_event.active = false
end
end
]],
}
}
register_blueprint "runtime_volatility"
{
flags = { EF_NOPICKUP },
callbacks = {
on_enter_level = [=[
function ( self, entity )
for e in world:get_level():entities() do
if e.data and e.data.ai then
e:attach( "exalted_kw_unstable" )
end
end
end
]=],
},
}
register_blueprint "challenge_volatility"
{
text = {
name = "Angel of Kaboom",
desc = "{!MEGA CHALLENGE PACK MOD}\nReady for an explosive experience? Each level is a volatile storage and each enemy is unstable!\n\nRating : {GEASY}",
rating = "EASY",
abbr = "AoK",
letter = "K",
},
challenge = {
type = "challenge",
},
callbacks = {
on_create_player = [[
function( self, player )
player:attach( "runtime_volatility" )
player:attach( "shotgun" )
player:attach( "ammo_shells", { stack = { amount = 10 } } )
end
]],
on_create = [[
function( self, player )
for i,linfo in ipairs( world.data.level ) do
linfo.event = "chall_event_volatile_storage"
end
end
]],
},
}