feat: create new sPoNgEcAsE and modify raNDOmcASe to be random (@Justiniscoding)#7295
feat: create new sPoNgEcAsE and modify raNDOmcASe to be random (@Justiniscoding)#7295Miodec merged 6 commits intomonkeytypegame:masterfrom
Conversation
|
Continuous integration check(s) failed. Please review the failing check's logs and make the necessary changes. |
| }, | ||
| rAnDoMcAsE: { | ||
| description: "I kInDa LiKe HoW iNeFfIcIeNt QwErTy Is.", | ||
| description: "i KINda LikE HoW inEFFICIeNt QwErtY Is.", |
There was a problem hiding this comment.
Move this description to sponge, set this one to something like "rAnDom CapiTAlizaTion oF eveRY leTteR"
|
I'm sorry, I think I messed up the fork with that force push. I was just trying to modify my most recent commit because the new description for sponge case wasn't actually in sponge case. Should I just delete this fork and make a new one or try to fix the history? |
Idk, it looks fine to me so far. |
Description
The old rAnDoMcAsE mode was not actually random and more accurately reflected sponge case. I modified the old rAnDoMcAsE mode and turned it into raNDOmcASe, where it calls
Math.random()for every letter and bases the capitalization of of it. The old code from rAnDoMcAsE was moved to a separate sPoNgEcAsE funbox mode.Changes
rAnDoMcAsEbecomesraNDOmcASeand has a 50% chance to capitalize every letter.sPoNgEcAsEis added as a funbox mode and contains the old functionality ofrAnDoMcAsEraNDOmcASemode as well as a new title that is in proper random case.Checks
qs,qsaorqsrinstead of JQuery selectors.packages/schemas/src/languages.tsfrontend/src/ts/constants/languages.tsfrontend/static/languagespackages/schemas/src/themes.tsfrontend/src/ts/constants/themes.tsfrontend/static/themespackages/schemas/src/layouts.tsfrontend/static/layoutsfrontend/static/webfontspackages/schemas/src/fonts.tsfrontend/src/ts/constants/fonts.ts