Replaced 'set' with direct assignment where applicable (common folder)

Signed-off-by: Haru <haru@dotalux.com>
Replaced 'set' with direct assignment where applicable (pre-re folder)

Signed-off-by: Haru <haru@dotalux.com>
Replaced 'set' with direct assignment where applicable (re/quests folder)

Signed-off-by: Haru <haru@dotalux.com>
Replaced 'set' with direct assignment where applicable (re folder)

Signed-off-by: Haru <haru@dotalux.com>
Replaced 'set' with direct assignment where applicable (quests subfolders)

Signed-off-by: Haru <haru@dotalux.com>
Replaced 'set' with direct assignment where applicable (quests folder)

Signed-off-by: Haru <haru@dotalux.com>
Replaced 'set' with direct assignment where applicable (item db)

This also includes various other tweaks to the item db scripts,
including the newly introduced min() and max() commands.

Signed-off-by: Haru <haru@dotalux.com>