-
Notifications
You must be signed in to change notification settings - Fork 473
Added a working smolMe option and made smolpeople work on players only #541
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
base: dev
Are you sure you want to change the base?
Changes from 1 commit
19aa734
48c0e1b
6957609
bdbbeb7
101f783
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -45,6 +45,7 @@ public class SuperSecretSettings { | |
| public static boolean palworld = false; | ||
| public static boolean sheepifyRebellion = false; | ||
| public static boolean smolPeople = false; | ||
| public static boolean smolMe = false; | ||
| public static boolean tryItAndSee = false; | ||
| public static boolean twilightGiant = false; | ||
|
|
||
|
|
@@ -115,6 +116,7 @@ public static void setSecrets() { | |
| palworld = settings.contains("palworld"); | ||
| sheepifyRebellion = settings.contains("sheepifyRebellion"); | ||
| smolPeople = settings.contains("smolpeople"); | ||
| smolMe = settings.contains("smolme"); | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
| tryItAndSee = settings.contains("tryItAndSee"); | ||
| twilightGiant = settings.contains("twilightGiant"); | ||
| } | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -43,14 +43,20 @@ class EntityLivingBaseHook(val entity: EntityLivingBase) { | |
| overrideDisplayName = s | ||
| } | ||
|
|
||
| private fun isNPC(): Boolean { | ||
| if (entity !is EntityPlayer) return true | ||
|
|
||
| return entity.hasCustomName() || | ||
| entity.displayName.unformattedText.contains("♲") || | ||
|
||
| entity.uniqueID.version() != 4 | ||
|
||
| } | ||
|
|
||
| val isBreefing by lazy { | ||
| entity.name == "Breefing" && (SuperSecretSettings.breefingDog || Random.nextInt( | ||
| 100 | ||
| ) < 3) | ||
| entity.name == "Breefing" && (SuperSecretSettings.breefingDog || Random.nextInt(100) < 3) | ||
| } | ||
|
|
||
| val isSmol by lazy { | ||
| Utils.inSkyblock && entity is EntityPlayer && (SuperSecretSettings.smolPeople || isBreefing) | ||
| Utils.inSkyblock && entity is EntityPlayer && (SuperSecretSettings.smolPeople || (entity is EntityPlayerSP && SuperSecretSettings.smolMe) || isBreefing ) && !isNPC() | ||
|
||
| } | ||
|
|
||
| fun modifyPotionActive(potionId: Int, cir: CallbackInfoReturnable<Boolean>) { | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Consider adding a comment here explaining what
smolMedoes. This will help others understand the purpose of this setting.