Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Time Since Expression #2907

Merged
merged 7 commits into from
Jul 16, 2020
Merged

Time Since Expression #2907

merged 7 commits into from
Jul 16, 2020

Conversation

APickledWalrus
Copy link
Member

@APickledWalrus APickledWalrus commented Apr 5, 2020

Description

This PR adds an expression that returns the date of a player's last death.
This also adds a 'time since %dates%' expression that has the same functionality as using 'now' and a date with the difference between expression, but in a more user friendly form.

Some may disagree with my choice to have the player's last death expression return the date of the death, while the actual statistic I'm using returns the time since the player's last death. I would like to hear opinions on this, and possibly make changes.


Target Minecraft Versions: Any
Requirements: None
Related Issues: #2905 (kind of)

@Wealthyturtle Wealthyturtle added the feature Pull request adding a new feature. label Apr 5, 2020
@APickledWalrus
Copy link
Member Author

APickledWalrus commented Apr 17, 2020

Okay I made some changes. Hopefully everything should be good now!

Edit: I forgot to fix the test... woops. If there are any other issues I'll fix them with that commit

@APickledWalrus
Copy link
Member Author

APickledWalrus commented Apr 27, 2020

Looks like there may have been some issues while running the test? Everything worked fine on my end when I ran it.

Edit: Had it rerun - everything is good now.

@FranKusmiruk FranKusmiruk added this to the 2.5 milestone Jul 7, 2020
It was decided that ExprLastDeathTime should just be handled in a to-be-made ExprStatistic
@APickledWalrus APickledWalrus changed the title Time Since and Last Death Expressions Time Since Expression Jul 16, 2020
@APickledWalrus
Copy link
Member Author

This PR is now just going to add ExprTimeSince (see the commit message).

@APickledWalrus APickledWalrus merged commit 23f60bc into SkriptLang:master Jul 16, 2020
@APickledWalrus APickledWalrus deleted the APickledWalrus-time-exprs branch September 24, 2020 20:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature Pull request adding a new feature.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants