Random changes

This commit is contained in:
Bill 2022-02-02 16:09:50 -05:00
parent 662343fcc7
commit 7179c7e770
5 changed files with 8 additions and 6 deletions

View File

@ -39,7 +39,7 @@ export class NitroLogger implements INitroLogger
public static log(message: string, name: string = 'Nitro', modus: string = null): void
{
const logString = `[Nitro] ${ new Date().toDateString() } [${ name }] ${ message } ${ this.getTimestamp() }`;
const logString = `[Nitro] [${ name }] ${ message } ${ this.getTimestamp() }`;
switch(modus)
{

View File

@ -225,4 +225,4 @@ export class PetFigureData
return false;
}
}
}

View File

@ -506,7 +506,7 @@ export class FurnitureVisualization extends RoomObjectSpriteVisualization
protected getLayerYOffset(scale: number, direction: number, layerId: number): number
{
if(layerId === this._shadowLayerIndex) return Math.ceil((this._furnitureLift * (64 / 2)));
if(layerId === this._shadowLayerIndex) return Math.ceil((this._furnitureLift * (scale / 2)));
const existing = this._spriteYOffsets[layerId];

View File

@ -258,8 +258,6 @@ export class RoomPreviewer
if(this.isRoomEngineReady)
{
if((this._currentPreviewObjectCategory === RoomObjectCategory.FLOOR) && (this._currentPreviewObjectType === classId)) return RoomPreviewer.PREVIEW_OBJECT_ID;
this.reset(false);
this._currentPreviewObjectType = classId;
@ -512,7 +510,7 @@ export class RoomPreviewer
return this._addViewOffset;
}
private updatePreviewObjectBoundingRectangle(point: Point): void
public updatePreviewObjectBoundingRectangle(point: Point): void
{
const objectBounds = this._roomEngine.getRoomObjectBoundingRectangle(this._previewRoomId, RoomPreviewer.PREVIEW_OBJECT_ID, this._currentPreviewObjectCategory, RoomPreviewer.PREVIEW_CANVAS_ID);

View File

@ -11,6 +11,10 @@ export class SpriteUtilities
{
if(ink == 'ADD' || ink == 33) return BLEND_MODES.ADD;
if(ink == 'SUBTRACT') return BLEND_MODES.SUBTRACT;
if(ink == 'DARKEN') return BLEND_MODES.DARKEN;
return BLEND_MODES.NORMAL;
}
}