Skip to content

Commit

Permalink
feat(native/graphics): Add ENABLE_MOON_CYCLE_OVERRIDE and DISABLE_MOO…
Browse files Browse the repository at this point in the history
…N_CYCLE_OVERRIDE natives (#980)

* feat(native/graphics): Add ENABLE_MOON_CYCLE_OVERRIDE and DISABLE_MOON_CYCLE_OVERRIDE natives.

This commit renames existing natives '_RESET_EXTRA_TIMECYCLE_MODIFIER_STRENGTH' and '_SET_EXTRA_TIMECYCLE_MODIFIER_STRENGTH' to their more accurate name.

* Update DisableMoonCycleOverride.md

Remove parameters section since this has no parameters, only natives that have parameters need such.

* Update EnableMoonCycleOverride.md

'## Parameters' shouldn't be above the native description.

---------

Co-authored-by: ammonia-cfx <[email protected]>
  • Loading branch information
tofudeadeye and 4mmonium authored Feb 5, 2024
1 parent a06f864 commit 12f2724
Show file tree
Hide file tree
Showing 4 changed files with 53 additions and 26 deletions.
18 changes: 18 additions & 0 deletions GRAPHICS/DisableMoonCycleOverride.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
---
ns: GRAPHICS
aliases: ["0x2BF72AD5B41AA739", "_RESET_EXTRA_TIMECYCLE_MODIFIER_STRENGTH"]
---

## DISABLE_MOON_CYCLE_OVERRIDE

```c
// 0x2BF72AD5B41AA739
void DISABLE_MOON_CYCLE_OVERRIDE();
```

Removes any custom moon cycle overrides that have been configured with [ENABLE_MOON_CYCLE_OVERRIDE](#_0x2C328AF17210F009)

## Examples
```lua
DisableMoonCycleOverride()
```
35 changes: 35 additions & 0 deletions GRAPHICS/EnableMoonCycleOverride.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
---
ns: GRAPHICS
aliases: ["0x2C328AF17210F009", "_SET_EXTRA_TIMECYCLE_MODIFIER_STRENGTH"]
---

## ENABLE_MOON_CYCLE_OVERRIDE

```c
// 0x2C328AF17210F009
void ENABLE_MOON_CYCLE_OVERRIDE(float phase);
```
Enable a custom moon cycle, allowing control of which lunar phase the moon is in.
Valid values are from `0.0` to `1.0`, with `0.5` representing a full moon.
| Value | Lunar Phase |
| :---: | :-------------: |
| `0.1` | Waxing Crescent |
| `0.2` | First Quarter |
| `0.3` | Waxing Gibbous |
| `0.5` | Full Moon |
| `0.7` | Waning Gibbous |
| `0.8` | Third Quarter |
| `0.9` | Waning Crescent |
The moon phase can be disabled with [DISABLE_MOON_CYCLE_OVERRIDE](#_0x2BF72AD5B41AA739)
## Parameters
- **phase**: A value indicating the moon cycle.
## Examples
```lua
EnableMoonCycleOverride(0.5)
```
12 changes: 0 additions & 12 deletions GRAPHICS/ResetExtraTimecycleModifierStrength.md

This file was deleted.

14 changes: 0 additions & 14 deletions GRAPHICS/SetExtraTimecycleModifierStrength.md

This file was deleted.

0 comments on commit 12f2724

Please sign in to comment.