Skip to content

Commit

Permalink
Merge pull request #10875 from DestinyItemManager/farming-cleanup
Browse files Browse the repository at this point in the history
Farming CSS modules + remove ghosts
  • Loading branch information
bhollis authored Dec 30, 2024
2 parents 40560cd + 47d3da5 commit 22bb12d
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 24 deletions.
1 change: 1 addition & 0 deletions docs/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
* For crafted weapons, this looks at the level thresholds of the enhanced versions of the weapon's current perks
* For enhanced weapons, this looks at whether the next tier of enhancement is selectable on the weapon
* Updated `enhancedperk` search to allow `is:enhancedperk` to find any weapons with already-enhanced perk columns
* Farming mode will no longer make room for Ghosts.

## 8.52.0 <span class="changelog-date">(2024-12-22)</span>

Expand Down
20 changes: 1 addition & 19 deletions src/app/farming/farming.scss → src/app/farming/Farming.m.scss
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
@use '../variables.scss' as *;

#item-farming {
.farming {
position: fixed;
backface-visibility: hidden;
bottom: 0;
Expand Down Expand Up @@ -52,22 +52,4 @@
p {
margin: 0.25em 0;
}

&.farming-enter {
transform: translateY(250px) translateX(-50%);
}

&.farming-enter.farming-enter-active {
transform: translateY(0) translateX(-50%);
transition: transform 200ms $easeOutCubic;
}

&.farming-exit {
transform: translateY(0) translateX(-50%);
}

&.farming-exit.farming-exit-active {
transform: translateY(250px) translateX(-50%);
transition: transform 200ms $easeInCubic;
}
}
7 changes: 7 additions & 0 deletions src/app/farming/Farming.m.scss.d.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 2 additions & 4 deletions src/app/farming/Farming.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,11 @@ import { settingSelector } from 'app/dim-api/selectors';
import { t } from 'app/i18next-t';
import { useSetting } from 'app/settings/hooks';
import { useThunkDispatch } from 'app/store/thunk-dispatch';
import clsx from 'clsx';
import { AnimatePresence, Spring, Variants, motion } from 'motion/react';
import React from 'react';
import { useSelector } from 'react-redux';
import { stopFarming } from './actions';
import './farming.scss';
import styles from './Farming.m.scss';
import { farmingStoreSelector } from './selectors';

const animateVariants: Variants = {
Expand All @@ -31,8 +30,7 @@ export default function Farming() {
<AnimatePresence>
{store && (
<motion.div
id="item-farming"
className={clsx({ 'd2-farming': store.destinyVersion === 2 })}
className={styles.farming}
initial="hidden"
animate="shown"
exit="hidden"
Expand Down
1 change: 0 additions & 1 deletion src/app/farming/actions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ const makeRoomTypes = [
BucketHashes.LegArmor,
BucketHashes.ClassArmor,
D1BucketHashes.Artifact,
BucketHashes.Ghost,
BucketHashes.Consumables,
BucketHashes.Materials,
];
Expand Down

0 comments on commit 22bb12d

Please sign in to comment.