-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
documents procs all the way down to istype()
- Loading branch information
Showing
39 changed files
with
387 additions
and
50 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,20 @@ | ||
+++ | ||
title = "get_step_away" | ||
[extra.return] | ||
type = "/turf, num" | ||
description = "The new position; or 0 if no movement has occured." | ||
[[extra.args]] | ||
name = "Ref" # AUTOGEN STATIC | ||
type = "/atom/movable" # AUTOGEN FIELD | ||
description = "The moving object." | ||
[[extra.args]] | ||
name = "Trg" # AUTOGEN STATIC | ||
type = "/atom" # AUTOGEN FIELD | ||
description = "The object being moved away from." | ||
[[extra.args]] | ||
name = "Max" # AUTOGEN STATIC | ||
default_value = "5" # AUTOGEN FIELD | ||
+++ | ||
description = "The maximum distance between Ref and Trg." | ||
+++ | ||
|
||
Calculates the step in the opposite direction from the provided object. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,12 @@ | ||
+++ | ||
title = "get_step_rand" | ||
[extra.return] | ||
type = "/turf, num" | ||
description = "The new position; or 0 if no movement has occured." | ||
[[extra.args]] | ||
name = "Ref" # AUTOGEN STATIC | ||
type = "/atom/movable" # AUTOGEN FIELD | ||
+++ | ||
description = "The moving object." | ||
+++ | ||
|
||
Calculates the destination of Ref taking a step in a random direction. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,14 @@ | ||
+++ | ||
title = "get_step_towards" | ||
[extra.return] | ||
type = "/turf, num" | ||
description = "The new position; or 0 if no movement has occured." | ||
[[extra.args]] | ||
name = "Ref" # AUTOGEN STATIC | ||
type = "/atom/movable" # AUTOGEN FIELD | ||
description = "The moving object." | ||
[[extra.args]] | ||
name = "Trg" # AUTOGEN STATIC | ||
type = "/atom" # AUTOGEN FIELD | ||
+++ | ||
description = "The object being moved towards." | ||
+++ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,27 @@ | ||
+++ | ||
title = "gradient" | ||
[extra] | ||
format = [ | ||
[ | ||
{ name = "Item1", description = "Elements of a color gradient list." }, | ||
{ name = "Item2" }, | ||
{ name = "..." }, | ||
{ name = "index" }, | ||
], | ||
[ | ||
{ name = "Gradient", type = "/list", description = "A color gradient list." }, | ||
{ name = "index", description = "The index on the gradient to perform the interpolation on." }, | ||
], | ||
] | ||
return = { type = "text", description = "A color, either in #rrggbb or #rrggbbaa format." } | ||
[[extra.args]] | ||
name = "A" # AUTOGEN STATIC | ||
[[extra.args]] | ||
name = "index" # AUTOGEN STATIC | ||
+++ | ||
+++ | ||
|
||
Generates a gradient between the specified elements, and retrieves the color at the specified point along the gradient, per the index argument. | ||
|
||
```dm | ||
world.log << gradient("#FF0000", "#000000", 0.5) // outputs #7F0000, as we have halved the red value | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.