3.0 Prerelease 92 2025-03-09
Downloads:
Features
ZScript
- add
itemdata::FlashCSet
, improveitemdata::CSet
fa55a6f26
itemdata::CSet
contained both the normal and flash csets, and required bitwise operations to access. It also didn't allow for setting the flash cset. Now,itemdata::CSet
is only for the normal cset, and the flash cset uses the newitemdata::FlashCSet
. - support expression in default parameters
d2dd3eebf
The default for optional parameters no longer need to be constant. For example, this is now valid:
void debug(int num, int x = Player->X, int y = Player->Y - 10) { // draw num at x, y ... }
Bug Fixes
Player
- inline function optimization handles LOAD correctly
0c8cc8624
- prevent crash in walkable cheat from bad screen access (z3 regression)
c45e7775c
- prevent crash when closing title screen without loading quest (z3 regression)
8dc032496
- prevent crash when opening boss lock block (z3 regression)
8d939805f
- prevent crash when grabbing item during screen scroll (z3 regression)
f7466e901
ZScript Standard Library (std.zh)
- wrap angle in
AngleDir4
andAngleDir8
a6b3ca795
ZScript
- use correct upper limit when setting itemdata Tile
4346780f3
- use lexical scoping for namespace compiler options
215607727
Previously, namespaces would ignore options defined in the file scope. Also, options defined in one namespace block would be applied to every namespace block of the same name.
See https://discord.com/channels/876899628556091432/1243749050616905768.
- prevent crash when processing script node with no script object
7552852a9
Documentation
Build
- fix windows build re version macros in rc files
d1d4fc3a9
Refactors
- remove module system (zinfo has replaced it)
3f0f24976
- simplify metadata.h
7f540a3cc
- remove __isZQuest
5d26b77d9
- reduce ffc allocation when reading mapscreen
b022fa0d9
See c1273e1
Editor
- drop "Load Tileset" and consolidate loading tilesets via File>New
1e329b4b5
ZScript
- remove WarpReturnC
0f4e5290c
- remove npc::LightRadius/Shape (on sprite now)
052144f01
- deprecate
WrapAngle
(useWrapRadians
instead)786f3b248
Tests
- add test case to errors_optional.zs
6eb7bddbb