grist: make textures generated through a makefile

This commit is contained in:
2025-04-18 15:52:14 +02:00
parent 35bf83cd1d
commit 16c9f50723
14 changed files with 99 additions and 25 deletions

View File

@ -218,11 +218,11 @@ Grist.prototype.toJson = function() {
};
Grist.prototype.itemTexture = function() {
return `malloc:item/grist_${this.tier.name}`;
return `malloc:item/grist_${this.tier.name}_${this.element.name}`;
};
Grist.prototype.blockTexture = function() {
return 'malloc:block/grist';
return `malloc:block/grist_${this.tier.name}_${this.element.name}`;
};
global.Grist = Grist;