Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
EnoxRCT committed Jan 16, 2023
2 parents 8a427b1 + c90def2 commit bb08bb6
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/ui/window.ts
Original file line number Diff line number Diff line change
Expand Up @@ -717,7 +717,11 @@ function selectLitter(type: EntityType): void {

function setLitter(number: number): void {
const window = ui.getWindow(windowId);
<<<<<<< HEAD
const createLitterButton = window.findWidget<ButtonWidget>(buttonCreateLitter)
=======
const createLitterButton = window.findWidget<ButtonWidget>(buttonCreateLitter);
>>>>>>> c90def2977fb742517ac2ade74043d40963277dc
const litterTypeList: LitterType[] = ["vomit", "vomit_alt", "empty_can", "rubbish", "burger_box", "empty_cup", "empty_box", "empty_bottle", "empty_bowl_red", "empty_drink_carton", "empty_juice_cup", "empty_bowl_blue"];
if (idLitter && !createLitterButton.isPressed){idLitter.litterType = litterTypeList[number];}
else {selectedLitterType = litterTypeList[number]; debug("littertype set");}
Expand Down Expand Up @@ -883,7 +887,11 @@ function createLitter(type: EntityType): void {
const axisCoords = e.mapCoords;
const surfaceElements = getTileElements("surface", axisCoords);
const oneSurfaceElementZValue = surfaceElements[0].element.baseZ;
<<<<<<< HEAD
const createdEntity = map.createEntity(type, {x: axisCoords.x, y: axisCoords.y, z: oneSurfaceElementZValue});
=======
const createdEntity = map.createEntity(type, {x: axisCoords.x, y: axisCoords.y, z: oneSurfaceElementZValue });
>>>>>>> c90def2977fb742517ac2ade74043d40963277dc
const createdLitter = <Litter>createdEntity;
createdLitter.litterType = selectedLitterType;
}
Expand Down

0 comments on commit bb08bb6

Please sign in to comment.