ITEMS/mcl_chests: Reskin chests as presents on December 24th to 26th #212
No reviewers
Labels
No Label
blocker
bug
code quality
confirmed
critical
discussion
high priority
incompatibility
incomplete feature
invalid
low priority
missing feauture
needs testing
packet spam
performance
project
regression
translations
unconfirmed
in review
ready for review
No Milestone
No project
No Assignees
2 Participants
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: Mineclonia/Mineclonia#212
Loading…
Reference in New Issue
No description provided.
Delete Branch "add-christmas-chests"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
TRACKING ISSUE: #209
Between 24 and 26 of December inclusive, chests should look like christmas presents.
Solution
This patch reskins chests as presents.
Details
I drew up some textures and refactored the code to assign textures to various chests. Previously, textures were hardcoded by name in several different places in the code. The refactoring should make the code a bit easier to understand and maintain, even when it is not christmas time.
Testing Steps
The testing of this patch is a bit much, since it requires refactoring how textures are assigned to 5 different kinds of chests, with two different variations. Additionally, animated chests are nodes that spawn an entity on placement and loading; in case an entity gets deleted, animated chest entities are respawned whenever a player interacts with the corresponding chest node.
Instead of setting the computer time, on GNU/Linux you can use the
faketime
program to pretend it is a specific date only for a particular program – like this:faketime 2021-12-24 ./bin/minetest
Preparation (common to the next 4 steps)
df7bd78af5
.Animated normal chests
animated_chests
is turned on./grantme all
./clearobjects
.Animated christmas chests
animated_chests
is turned on./grantme all
./clearobjects
.Non-animated normal chests
animated_chests
is turned off./grantme all
./clearobjects
.Non-animated christmas chests
animated_chests
is turned off./grantme all
./clearobjects
.4df9a75352
to9476749bd7
9476749bd7
to7160b32020
7160b32020
tofe3e837e1b
2599fdad9c
to463bf61e49
463bf61e49
toaa9c60b77c
aa9c60b77c
to8fb6964e34
8fb6964e34
to6b1ac1a6d0
6b1ac1a6d0
todf7bd78af5
WIP: ITEMS/mcl_chests: Reskin chests as presents on December 24th to 26thto ITEMS/mcl_chests: Reskin chests as presents on December 24th to 26thAre you sure this works? Cause AFAIK double chests are still entities!?
Animated normal chests
animated_chests
is turned on./grantme all
./clearobjects
.Animated christmas chests
animated_chests
is turned on./grantme all
./clearobjects
.Non-animated normal chests
animated_chests
is turned off./grantme all
./clearobjects
.As Mentioned above, double chests are still entities and hence disappeared. As a sidenote normal double chest entities do not reappear on opening ( it's in master too: #219 ).
Non-animated christmas chests
animated_chests
is turned off./grantme all
./clearobjects
.