Licencing
=========
<!-- Stardew Valley Item Finder
     https://gucci-on-fleek.github.io/Stardew-Valley-Item-Finder/
     SPDX-License-Identifier: MPL-2.0+ OR CC-BY-SA-4.0+
     SPDX-FileCopyrightText: 2024 Max Chernoff
-->

Overview
--------
The majority of this website is licensed under the [MPL-2.0](https://www.mozilla.org/en-US/MPL/2.0/) or
any later version. Some additional JavaScript libraries are licensed under other
[OSI-approved](https://opensource.org/osd) licences

All icons used are copyright [ConcernedApe](https://www.stardewvalley.net) and are used
under Fair Use.

Excerpts from the _[Stardew Valley Wiki](https://stardewvalleywiki.com/)_ are licensed
under [CC-BY-NC-SA-3.0](https://creativecommons.org/licenses/by-nc-sa/3.0/).


General Rules
-------------

1. This licence is only relevant if you choose to _redistribute_ this project or any of
   its components. No obligations or restrictions are imposed on the mere _use_ of this
   project.
2. Each file lists its specific licence in a header near the top. This is the licence
   that applies to this specific file. These headers should be interpreted as defined by
   [SPDX](https://spdx.dev/ids/).
3. Some files may have specific restrictions and conditions attached. Keep reading for
   more.


Specific Rules
--------------

### Libraries
The files present in the `libraries/` folder have been acquired from outside sources and
thus are licensed separately from the rest of the project. Follow the licence as listed
in the header for each file.

### Assets
The files present in the `assets/` folder have been either extracted from
_Stardew Valley_ game files or are derivative works thereof. Therefore, the copyright on
these files belongs solely to ConcernedApe, the creator of _Stardew Valley_. In the
context of this project — a non-commercial tool used to enhance usage of game from which
the assets were acquired — the use of four 32×32 icons is considered as Fair Use. It may
not be appropriate or legal to use these assets for any other purpose, so be cautious when
redistributing this folder.

### Files not otherwise listed
Any “code” files not otherwise licensed can be assumed be licensed as `MPL-2.0+`. A
“code” file is any file designed primarily to be interpreted or executed by a machine.
Any “documentation” files can be assumed to be licensed as `MPL-2.0+ OR CC-BY-SA-4.0+`.
A “code” file is any file designed primarily to be read by a human.

### _Stardew Valley Wiki_
This tool automatically fetches content from the _Stardew Valley Wiki_. This project
does not distribute any content from the _Wiki_; rather, it fetches excerpts directly
from the _Wiki_ to your browser. These excerpts are are licensed under
[CC-BY-NC-SA-3.0](https://creativecommons.org/licenses/by-nc-sa/3.0/).

MPL-2.0 Overview
----------------

The vast majority of this project is licensed under the
[Mozilla Public Licence, version 2.0](https://www.mozilla.org/en-US/MPL/2.0/) or greater. You’ll need to
read [the licence](https://www.mozilla.org/en-US/MPL/2.0/) for full details, but here’s a quick
[overview from GitHub](https://choosealicense.com/licenses/mpl-2.0/):

> Permissions of this weak copyleft license are conditioned on making available source
> code of licensed files and modifications of those files under the same license (or in
> certain cases, one of the GNU licenses). Copyright and license notices must be
> preserved. Contributors provide an express grant of patent rights. However, a larger
> work using the licensed work may be distributed under different terms and without
> source code for files added in the larger work.
>
> | Permissions      | Conditions                     | Limitations     |
> |------------------|--------------------------------|-----------------|
> | - Commercial use | - Disclose source              | - Liability     |
> | - Distribution   | - License and copyright notice | - Trademark use |
> | - Modification   | - Same license (file)          | - Warranty      |
> | - Patent use     |                                |                 |
> | - Private use    |                                |                 |
