Skip to content

Commit 7aad563

Browse files
author
dashodanger
authored
Merge pull request #678 from GTD-Carthage/content-unstable
Upstream sync
2 parents 136d1b2 + c676735 commit 7aad563

File tree

3 files changed

+77
-1
lines changed

3 files changed

+77
-1
lines changed

scripts/grower.lua

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3628,6 +3628,12 @@ end
36283628
R.shapes_applied = 1
36293629
end
36303630

3631+
if not R.shapes or table.empty(R.shapes) then
3632+
R.shapes = {}
3633+
else
3634+
R.shapes[cur_rule.name] = R.shapes[cur_rule.name] + 1
3635+
end
3636+
36313637
if cur_rule.is_absurd then
36323638
if R.absurd_shapes then
36333639
table.add_unique(R.absurd_shapes, cur_rule.name)

scripts/item.lua

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1002,13 +1002,31 @@ function Item_pickups_for_class(LEVEL, CL)
10021002
if not stats.health then
10031003
stats.health = 1
10041004
end
1005+
1006+
local pick1
1007+
local pick2
1008+
if R.zone.weap_palette
1009+
and not table.empty(R.zone.weap_palette)
1010+
and OB_CONFIG.secrets_bonus ~= nil then
1011+
pick1 = rand.key_by_probs(R.zone.weap_palette)
1012+
if rand.odds(33 + LEVEL.id) then
1013+
pick2 = rand.key_by_probs(R.zone.weap_palette)
1014+
end
1015+
end
1016+
1017+
if pick1 and not stats[GAME.WEAPONS[pick1].ammo] then
1018+
stats[GAME.WEAPONS[pick1].ammo] = 1
1019+
end
1020+
if pick2 and not stats[GAME.WEAPONS[pick2].ammo] then
1021+
stats[GAME.WEAPONS[pick2].ammo] = 1
1022+
end
10051023
end
10061024

10071025
for stat,qty in pairs(stats) do
10081026

10091027
-- this secret room is a treasure trove, baby!
10101028
if R.is_secret and OB_CONFIG.secrets_bonus ~= nil then
1011-
qty = R.svolume * SECRET_BONUS_FACTORS[OB_CONFIG.secrets_bonus]
1029+
qty = qty + (R.svolume/2) * SECRET_BONUS_FACTORS[OB_CONFIG.secrets_bonus]
10121030
end
10131031

10141032
select_pickups(R, item_list, stat, qty)

scripts/shapes.lua

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14547,6 +14547,58 @@ GROW_SKULL_P1_STEEPNESS_HALF =
1454714547
}
1454814548
},
1454914549

14550+
GROW_X_SHIFTED =
14551+
{
14552+
prob = 7,
14553+
skip_prob = 80,
14554+
14555+
structure =
14556+
{
14557+
"xxxx11xx..","xxxx11xx11",
14558+
"xxxx..xx..","xxxx11xx11",
14559+
"xxxx..x...","xxxx11x/11",
14560+
"x.........","x/1111111/",
14561+
".........x","/1111111/x",
14562+
"...x..xxxx","11/x11xxxx",
14563+
"..xx..xxxx","11xx11xxxx",
14564+
"..xx..xxxx","11xx11xxxx",
14565+
},
14566+
14567+
diagonals =
14568+
{
14569+
".1",
14570+
".1","1.",
14571+
".1","1.",
14572+
"1."
14573+
}
14574+
},
14575+
14576+
GROW_X_SHIFTED_NEW_AREA =
14577+
{
14578+
prob = 10,
14579+
skip_prob = 75,
14580+
14581+
structure =
14582+
{
14583+
"xxxx11xx..","xxxx11xxAA",
14584+
"xxxx..xx..","xxxx11xxAA",
14585+
"xxxx..x...","xxxx11x/AA",
14586+
"x.........","x/AAAAAAA/",
14587+
".........x","/AAAAAAA/x",
14588+
"...x..xxxx","AA/x11xxxx",
14589+
"..xx..xxxx","AAxx11xxxx",
14590+
"..xx..xxxx","AAxx11xxxx",
14591+
},
14592+
14593+
diagonals =
14594+
{
14595+
".A",
14596+
".A","A.",
14597+
".A","A.",
14598+
"A."
14599+
}
14600+
},
14601+
1455014602
-- other shapes
1455114603

1455214604
GROW_DIAGONAL_STALK =

0 commit comments

Comments
 (0)