mirror of
https://github.com/morbalint/kemkas.git
synced 2026-07-18 03:13:46 +00:00
Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 7d6bd62cfa |
@@ -1,27 +0,0 @@
|
|||||||
when:
|
|
||||||
- event: [push, manual]
|
|
||||||
branch: [main]
|
|
||||||
|
|
||||||
steps:
|
|
||||||
prepare-fe-image-tags:
|
|
||||||
image: alpine:3.21
|
|
||||||
commands:
|
|
||||||
- SHORT_SHA="$(echo "$CI_COMMIT_SHA" | cut -c1-8)"
|
|
||||||
- printf '%s\n' "$SHORT_SHA" > .fe-tags
|
|
||||||
- printf '%s\n' "latest" >> .fe-tags
|
|
||||||
|
|
||||||
build-and-push-fe-image:
|
|
||||||
image: woodpeckerci/plugin-docker-buildx
|
|
||||||
privileged: true
|
|
||||||
depends_on:
|
|
||||||
- prepare-fe-image-tags
|
|
||||||
settings:
|
|
||||||
registry: git.cluster.lab.kemkas.hu
|
|
||||||
repo: git.cluster.lab.kemkas.hu/${CI_REPO}
|
|
||||||
context: frontend
|
|
||||||
dockerfile: frontend/Dockerfile
|
|
||||||
tags_file: .fe-tags
|
|
||||||
username:
|
|
||||||
from_secret: gitea_packages_username
|
|
||||||
password:
|
|
||||||
from_secret: gitea_packages_token
|
|
||||||
@@ -1,14 +0,0 @@
|
|||||||
when:
|
|
||||||
- event: [push, pull_request, manual]
|
|
||||||
branch: [main]
|
|
||||||
|
|
||||||
steps:
|
|
||||||
unit-test-and-lint:
|
|
||||||
image: node:24
|
|
||||||
commands:
|
|
||||||
- corepack enable
|
|
||||||
- corepack prepare yarn@1.22.22 --activate
|
|
||||||
- cd frontend
|
|
||||||
- yarn install --frozen-lockfile
|
|
||||||
- yarn run test
|
|
||||||
- yarn run lint
|
|
||||||
@@ -13,8 +13,7 @@ function availableKezpettsegListFajjal(faj: Faj2E, ...osztalyok: Osztaly2E[]): K
|
|||||||
}
|
}
|
||||||
|
|
||||||
export function GetNumberOfKepzettsegek(t_int: number, faj: Faj2E, max: number = 11) {
|
export function GetNumberOfKepzettsegek(t_int: number, faj: Faj2E, max: number = 11) {
|
||||||
// Default cap is 11. Base calculation is 3 + 1 (human) + 3 (max ability modifier) = 7;
|
//max = 3 + 1 + 3 + 4 + 2 = 13 // 3 base, 1 human, 3 from max ability modifier, 4 from Thief +1 at 5th and +1 at 9th level
|
||||||
// thief-specific extra selections are handled elsewhere and are not part of this default max.
|
|
||||||
let numberOfKepzettseg = 3 + Modifier(t_int) + (faj === Faj2E.Ember ? 1 : 0)
|
let numberOfKepzettseg = 3 + Modifier(t_int) + (faj === Faj2E.Ember ? 1 : 0)
|
||||||
|
|
||||||
if (numberOfKepzettseg < 1) {
|
if (numberOfKepzettseg < 1) {
|
||||||
|
|||||||
Reference in New Issue
Block a user