Inspired by dannyfritz/commit-message-emoji
See also gitmoji.
Commit type | Emoji |
---|---|
Initial commit | 🎉 :tada: |
Version tag | 🔖 :bookmark: |
New feature | ✨ :sparkles: |
Bugfix | 🐛 :bug: |
Inspired by dannyfritz/commit-message-emoji
See also gitmoji.
Commit type | Emoji |
---|---|
Initial commit | 🎉 :tada: |
Version tag | 🔖 :bookmark: |
New feature | ✨ :sparkles: |
Bugfix | 🐛 :bug: |
name: My Workflow | |
on: [push] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
container: | |
image: lorisleiva/laravel-docker:7.4 | |
steps: | |
- uses: actions/checkout@v2 |
/app
├── /Application
| ├── /Exceptions
| ├── /Middlewares
| ├── /Providers
| ├── /Requests
├── /Domain
| ├── /MyDomainA
| | ├── /Contracts
public static int convertXpToLevel(int xp) { | |
// Level = 0.05 * sqrt(xp) | |
return (int) (Constants.LEVEL_MODIFIER * Math.sqrt(xp)); | |
} | |
public static int convertLevelToXp(int level) { | |
// XP = (Level / 0.05) ^ 2 | |
return (int) Math.pow(level / Constants.LEVEL_MODIFIER, 2); | |
} |