Skip to content

Commit d5d034c

Browse files
committed
Merge branch 'master' into color-revert
2 parents 17fa099 + 3f5d9e8 commit d5d034c

File tree

7 files changed

+54
-63
lines changed

7 files changed

+54
-63
lines changed

README.md

+4-2
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,10 @@
66
Bug fixes and quality of life improvements are welcome!
77
This includes stuff like custom enemy properties and new animations.
88

9-
Avoid major additions that will potentially cause bugs or complicate the game/code (Stuff like powerups).
10-
I appreciate the help, but the goal is to continue the mod while I am busy. Major changes will only increase my workload and make the mod even buggier.
9+
Please avoid major additions or refactors that will potentially cause bugs or complicate the game/code (Stuff like powerups).
10+
While I appreciate the help, the game is no longer under active development so patches won't be released as glitches are found as a result of a new feature, so please keep this in mind.
11+
12+
Suggest downloadable game content here: https://github.com/qixils/mari0pository
1113

1214
## 📥 Downloads
1315

alesans_entities/mappacks/alesans_entities_mappack/text.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,5 @@ hudsimple=false
1111
toadtext=thank you mario!,but our princess is in,another castle!
1212
peachtext=thank you mario!,your quest is over.,we present you a new quest.,push button b,to play as steve
1313
steve=true
14-
levelscreen=1|1|
14+
levelscreen=1|1|mappack by alesan99
1515
hudhidecollectables=f,f,f,f,f,f,f,f,f,f

editor.lua

+4-2
Original file line numberDiff line numberDiff line change
@@ -4362,8 +4362,10 @@ function placetile(x, y, tilei)
43624362
elseif editentities == false then
43634363
if tilequads[currenttile].collision == true and (tilequads[map[cox][coy][1]].collision == false or (objects["tile"][tilemap(cox, coy)] and objects["tile"][tilemap(cox, coy)].slant)) then
43644364
local oldtile
4365-
if tilequads[currenttile].leftslant or tilequads[currenttile].halfleftslant1 or tilequads[currenttile].halfleftslant2 or
4366-
tilequads[currenttile].rightslant or tilequads[currenttile].halfrightslant1 or tilequads[currenttile].halfrightslant2 then
4365+
local tilequad = tilequads[currenttile]
4366+
if tilequad.platform or tilequad.leftslant or tilequad.halfleftslant1 or tilequad.halfleftslant2 or
4367+
tilequad.rightslant or tilequad.halfrightslant1 or tilequads.halfrightslant2 then
4368+
--fix platforms and slants acting like solid blocks when first placed in editor
43674369
--so many people complained about this minor oddity
43684370
--guess i have to do a wack workaround
43694371
oldtile = map[cox][coy][1]

enemy.lua

+44-53
Original file line numberDiff line numberDiff line change
@@ -2584,67 +2584,58 @@ function enemy:customtimeraction(action, arg, arg2)
25842584
end
25852585

25862586
function enemy:ifstatement(t, action, arg)
2587-
--EXAMPLE: ["if","speedx","==","speedy"],["set","speedy"],10
2588-
--EXAMPLE: ["if","speedx","==","speedy","and","jumping","~=",false],["set","speedy"],10
2587+
--EXAMPLE: ["if","speedx","==","speedy"],["set","speedy"],10],
2588+
--EXAMPLE: ["if","speedx","==","speedy","and","jumping","~=",false],["set","speedy"],10],
25892589
local statementPass = false
25902590
for step = 1, math.floor(#t/4) do
25912591
local i = 1+(step-1)*4
2592-
local check = t[i]
2592+
local check = t[i]:lower()
25932593

2594-
--get properties needed for comparison
2595-
local prop1,prop2 = t[i+1], t[i+3]
2596-
if (type(prop1) == "table" and prop1[1] and prop1[2] and prop1[1] == "property") then
2597-
prop1 = self[prop1[2]]
2598-
else
2599-
prop1 = self[prop1]
2600-
end
2601-
if (type(prop2) == "string" and self[prop2] ~= nil) then
2602-
prop2 = self[prop2]
2603-
elseif (type(prop2) == "table" and prop2[1] and prop2[2] and prop2[1] == "property") then
2604-
prop2 = self[prop2[2]]
2605-
end
2606-
2607-
--comparison
2608-
local comparison = t[i+2]
2609-
if (not comparison) or (type(comparison) ~= "string") then
2610-
return false
2594+
--logic
2595+
if check == "or" and statementPass then
2596+
break
26112597
end
2612-
comparison = comparison:lower()
2613-
2614-
local pass
2615-
if (comparison == "equal" or comparison == "==") and (prop1 == prop2) then
2616-
pass = true
2617-
elseif (comparison == "notequal" or comparison == "~=" or comparison == "!=") and (prop1 ~= prop2) then
2618-
pass = true
2619-
2620-
elseif (comparison == "greater" or comparison == ">") and (prop1 > prop2) then
2621-
pass = true
2622-
elseif (comparison == "less" or comparison == "<") and (prop1 < prop2) then
2623-
pass = true
2624-
elseif (comparison == "greaterequal" or comparison == ">=") and (prop1 >= prop2) then
2625-
pass = true
2626-
elseif (comparison == "lessequal" or comparison == "<=") and (prop1 <= prop2) then
2627-
pass = true
2628-
2629-
elseif (comparison == "exists") and prop1 ~= nil then
2630-
pass = true
2631-
elseif (comparison == "notexists") and prop1 == nil then
2632-
pass = true
2633-
end
2634-
2635-
--logical operators
2636-
if check == "if" or check == "and" then
2637-
if pass then
2638-
statementPass = true
2598+
if statementPass == true or check == "or" or step == 1 then
2599+
--get properties needed for comparison
2600+
local prop1,prop2 = t[i+1], t[i+3]
2601+
if (type(prop1) == "table" and prop1[1] and prop1[2] and prop1[1] == "property") then
2602+
prop1 = self[prop1[2]]
26392603
else
2640-
statementPass = false
2641-
break
2604+
prop1 = self[prop1]
2605+
end
2606+
if (type(prop2) == "string" and self[prop2] ~= nil) then
2607+
prop2 = self[prop2]
2608+
elseif (type(prop2) == "table" and prop2[1] and prop2[2] and prop2[1] == "property") then
2609+
prop2 = self[prop2[2]]
26422610
end
2643-
elseif check == "or" then
2644-
if pass then
2645-
statementPass = true
2646-
break
2611+
2612+
--comparison
2613+
local comparison = t[i+2]
2614+
if (not comparison) or (type(comparison) ~= "string") then
2615+
return false
26472616
end
2617+
comparison = comparison:lower()
2618+
2619+
local pass = false
2620+
if (comparison == "equal" or comparison == "==") and (prop1 == prop2) then
2621+
pass = true
2622+
elseif (comparison == "notequal" or comparison == "~=" or comparison == "!=") and (prop1 ~= prop2) then
2623+
pass = true
2624+
elseif (comparison == "greater" or comparison == ">") and (prop1 > prop2) then
2625+
pass = true
2626+
elseif (comparison == "less" or comparison == "<") and (prop1 < prop2) then
2627+
pass = true
2628+
elseif (comparison == "greaterequal" or comparison == ">=") and (prop1 >= prop2) then
2629+
pass = true
2630+
elseif (comparison == "lessequal" or comparison == "<=") and (prop1 <= prop2) then
2631+
pass = true
2632+
elseif (comparison == "exists") and prop1 ~= nil then
2633+
pass = true
2634+
elseif (comparison == "notexists") and prop1 == nil then
2635+
pass = true
2636+
end
2637+
2638+
statementPass = pass
26482639
end
26492640
end
26502641

levelscreen.lua

-3
Original file line numberDiff line numberDiff line change
@@ -335,9 +335,6 @@ function levelscreen_draw()
335335
end
336336
end
337337
properprintfunc(s, (width/2*16)*scale-string.len(s)*4*scale, 200*scale)
338-
elseif mappack == "only_for_alesans_entities" and marioworld == 1 and mariolevel == 1 then
339-
local s = "mappack by alesan99"
340-
properprintfunc(s, (width/2*16)*scale-string.len(s)*4*scale, 200*scale)
341338
elseif levelscreentext[marioworld .. "-" .. mariolevel] then
342339
local s = levelscreentext[marioworld .. "-" .. mariolevel]
343340
properprintbasicfunc(s, (width/2*16)*scale-string.len(s)*4*scale, 200*scale)

mappacks/alesans_entities_mappack/text.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,5 @@ hudsimple=false
1111
toadtext=thank you mario!,but our princess is in,another castle!
1212
peachtext=thank you mario!,your quest is over.,we present you a new quest.,push button b,to play as steve
1313
steve=true
14-
levelscreen=1|1|
14+
levelscreen=1|1|mappack by alesan99
1515
hudhidecollectables=f,f,f,f,f,f,f,f,f,f

menu.lua

-1
Original file line numberDiff line numberDiff line change
@@ -3082,7 +3082,6 @@ end
30823082
function reset_mappacks()
30833083
delete_mappack("smb")
30843084
delete_mappack("portal")
3085-
delete_mappack("only_for_alesans_entities")
30863085
delete_mappack("alesans_entities_mappack")
30873086

30883087
--[[local dlclist = love.filesystem.getDirectoryItems("alesans_entities/onlinemappacks/")

0 commit comments

Comments
 (0)