fixed RoomTradingLevelEnum vars

This commit is contained in:
Dank074 2021-06-23 17:57:52 -05:00
parent b6b50baf00
commit 98b36b3b7e
6 changed files with 22 additions and 22 deletions

View File

@ -43,17 +43,17 @@ export class PetData
return this._figureData.color; return this._figureData.color;
} }
public get _Str_3343(): number public get breedId(): number
{ {
return this._figureData.breedId; return this._figureData.breedId;
} }
public get _Str_13619(): number public get customPartCount(): number
{ {
return this._figureData.custompartCount; return this._figureData.custompartCount;
} }
public get _Str_4217(): string public get figureString(): string
{ {
return this._figureData.figuredata; return this._figureData.figuredata;
} }

View File

@ -6,7 +6,7 @@ export class FurnitureVoteCounterVisualization extends FurnitureAnimatedVisualiz
private static ONES_SPRITE: string = 'ones_sprite'; private static ONES_SPRITE: string = 'ones_sprite';
private static TENS_SPRITE: string = 'tens_sprite'; private static TENS_SPRITE: string = 'tens_sprite';
private static HUNDREDS_SPRITE: string = 'hundreds_sprite'; private static HUNDREDS_SPRITE: string = 'hundreds_sprite';
private static _Str_17839: number = -1; private static HIDE_COUNTER_SCORE: number = -1;
protected updateObject(scale: number, direction: number): boolean protected updateObject(scale: number, direction: number): boolean
{ {
@ -33,7 +33,7 @@ export class FurnitureVoteCounterVisualization extends FurnitureAnimatedVisualiz
{ {
const result = this.object.model.getValue<number>(RoomObjectVariable.FURNITURE_VOTE_COUNTER_COUNT); const result = this.object.model.getValue<number>(RoomObjectVariable.FURNITURE_VOTE_COUNTER_COUNT);
if(result === FurnitureVoteCounterVisualization._Str_17839) if(result === FurnitureVoteCounterVisualization.HIDE_COUNTER_SCORE)
{ {
const tag = this.getLayerTag(scale, direction, layerId); const tag = this.getLayerTag(scale, direction, layerId);
@ -48,4 +48,4 @@ export class FurnitureVoteCounterVisualization extends FurnitureAnimatedVisualiz
return super.getLayerAlpha(scale, direction, layerId); return super.getLayerAlpha(scale, direction, layerId);
} }
} }

View File

@ -61,7 +61,7 @@ export class RoomSession extends Disposable implements IRoomSession
this._roomId = 0; this._roomId = 0;
this._password = null; this._password = null;
this._state = RoomSessionEvent.CREATED; this._state = RoomSessionEvent.CREATED;
this._tradeMode = RoomTradingLevelEnum._Str_12752; this._tradeMode = RoomTradingLevelEnum.NO_TRADING;
this._doorMode = 0; this._doorMode = 0;
this._controllerLevel = RoomControllerLevel.NONE; this._controllerLevel = RoomControllerLevel.NONE;
this._ownRoomIndex = -1; this._ownRoomIndex = -1;

View File

@ -1,5 +1,5 @@
export class GenericErrorEnum export class GenericErrorEnum
{ {
public static KICKED_OUT_OF_ROOM: number = 4008; public static KICKED_OUT_OF_ROOM: number = 4008;
public static _Str_19451: number = -13001; public static STRIP_LOCKED_FOR_TRADING: number = -13001;
} }

View File

@ -1,22 +1,22 @@
export class RoomTradingLevelEnum export class RoomTradingLevelEnum
{ {
public static _Str_12752: number = 0; public static NO_TRADING: number = 0;
public static _Str_14475: number = 1; public static ROOM_CONTROLLER_REQUIRED: number = 1;
public static _Str_9173: number = 2; public static FREE_TRADING: number = 2;
public static _Str_22614(k: number): string public static getLocalizationKey(k: number): string
{ {
switch(k) switch(k)
{ {
case RoomTradingLevelEnum._Str_9173: case RoomTradingLevelEnum.FREE_TRADING:
return '${trading.mode.free}'; return '${trading.mode.free}';
case RoomTradingLevelEnum._Str_14475: case RoomTradingLevelEnum.ROOM_CONTROLLER_REQUIRED:
return '${trading.mode.controller}'; return '${trading.mode.controller}';
case RoomTradingLevelEnum._Str_12752: case RoomTradingLevelEnum.NO_TRADING:
return '${trading.mode.not.allowed}'; return '${trading.mode.not.allowed}';
} }
return ''; return '';
} }
} }

View File

@ -3,23 +3,23 @@ import { RoomSessionEvent } from './RoomSessionEvent';
export class RoomSessionConfirmPetBreedingEvent extends RoomSessionEvent export class RoomSessionConfirmPetBreedingEvent extends RoomSessionEvent
{ {
public static RSPFUE_CONFIRM_PET_BREEDING: string = 'RSPFUE_CONFIRM_PET_BREEDING'; public static CONFIRM_PET_BREEDING: string = 'RSPFUE_CONFIRM_PET_BREEDING';
private _nestId: number; private _nestId: number;
private _pet1: any; private _pet1: any;
private _pet2: any; private _pet2: any;
private _rarityCategories: any[]; private _rarityCategories: any[];
private _Str_6321: number; private _resultPetTypeId: number;
constructor(k: IRoomSession, _arg_2: number, _arg_3: any, _arg_4: any, _arg_5: any[], _arg_6: number) constructor(k: IRoomSession, _arg_2: number, _arg_3: any, _arg_4: any, _arg_5: any[], _arg_6: number)
{ {
super(RoomSessionConfirmPetBreedingEvent.RSPFUE_CONFIRM_PET_BREEDING, k); super(RoomSessionConfirmPetBreedingEvent.CONFIRM_PET_BREEDING, k);
this._nestId = _arg_2; this._nestId = _arg_2;
this._pet1 = _arg_3; this._pet1 = _arg_3;
this._pet2 = _arg_4; this._pet2 = _arg_4;
this._rarityCategories = _arg_5; this._rarityCategories = _arg_5;
this._Str_6321 = _arg_6; this._resultPetTypeId = _arg_6;
} }
public get rarityCategories(): any[] public get rarityCategories(): any[]
@ -42,8 +42,8 @@ export class RoomSessionConfirmPetBreedingEvent extends RoomSessionEvent
return this._pet2; return this._pet2;
} }
public get _Str_16867(): number public get resultPetTypeId(): number
{ {
return this._Str_6321; return this._resultPetTypeId;
} }
} }