Skip to content

Commit

Permalink
df
Browse files Browse the repository at this point in the history
  • Loading branch information
Icecreamdudes committed Aug 31, 2024
1 parent 7cf307f commit ed6bc66
Show file tree
Hide file tree
Showing 10 changed files with 1,205 additions and 18 deletions.
14 changes: 14 additions & 0 deletions css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -882,6 +882,20 @@ button > * {
overflow: hidden; /* Ensure grass squares stay within spawn area */
}

#repli-spawn-area {
width: 80%; /* Adjust as needed */
height: 50%; /* Adjust as needed */
background-color: #67cc3b;
opacity: 90%;
position: absolute;
bottom: 10%;
left: 50%;
transform: translateX(-50%);
border: 2px solid black;
box-sizing: border-box; /* Include border in dimensions */
overflow: hidden; /* Ensure grass squares stay within spawn area */
}

.particle {
position: absolute;
width: 50px; /* Adjust size as needed */
Expand Down
25 changes: 24 additions & 1 deletion js/Cantepocalypse/altRanks.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,21 @@
player.ar.rankPointsToGet = player.ar.rankPointsToGet.mul(buyableEffect("pr", 13))
player.ar.rankPointsToGet = player.ar.rankPointsToGet.mul(player.ar.tetrPointsEffect)

if (hasUpgrade("an", 13)) player.ar.rankPoints = player.ar.rankPoints.add(player.ar.rankPointsToGet.mul(Decimal.mul(delta, 0.05)))
if (hasUpgrade("an", 15)) player.ar.rankPoints = player.ar.rankPoints.add(player.ar.rankPointsToGet.mul(Decimal.mul(delta, 0.25)))
if (hasUpgrade("an", 18)) player.ar.rankPoints = player.ar.rankPoints.add(player.ar.rankPointsToGet.mul(delta))

player.ar.tierPointsToGet = player.ar.rankPoints.mul(0.1).pow(0.4)
player.ar.tierPointsEffect = player.ar.tierPoints.pow(0.65).add(1)
player.ar.tierPointsToGet = player.ar.tierPointsToGet.mul(buyableEffect("pr", 14))
player.ar.tierPointsToGet = player.ar.tierPointsToGet.mul(player.ar.tetrPointsEffect)

if (hasUpgrade("an", 15)) player.ar.tierPoints = player.ar.tierPoints.add(player.ar.tierPointsToGet.mul(Decimal.mul(delta, 0.05)))
if (hasUpgrade("an", 18)) player.ar.tierPoints = player.ar.tierPoints.add(player.ar.tierPointsToGet.mul(Decimal.mul(delta, 0.25)))

player.ar.tetrPointsToGet = player.ar.tierPoints.mul(0.1).pow(0.4)
player.ar.tetrPointsEffect = player.ar.tetrPoints.pow(0.5).add(1)
if (hasUpgrade("an", 18)) player.ar.tetrPoints = player.ar.tetrPoints.add(player.ar.tetrPointsToGet.mul(Decimal.mul(delta, 0.05)))
},
clickables: {
1: {
Expand Down Expand Up @@ -87,6 +95,21 @@
},
},
bars: {
replicantiBar: {
unlocked() { return true },
direction: RIGHT,
width: 400,
height: 25,
progress() {
return player.cp.replicantiPointsTimer.div(player.cp.replicantiPointsTimerReq)
},
fillStyle: {
"background-color": "#193ceb",
},
display() {
return "Time: " + formatTime(player.cp.replicantiPointsTimer) + "/" + formatTime(player.cp.replicantiPointsTimerReq);
},
},
},
upgrades: {

Expand Down Expand Up @@ -131,8 +154,8 @@

tabFormat: [
["raw-html", function () { return "You have <h3>" + format(player.cp.replicantiPoints) + "</h3> replicanti points." }, { "color": "white", "font-size": "20px", "font-family": "monospace" }],
["raw-html", function () { return "Time: " + formatTime(player.cp.replicantiPointsTimer) + "/" + formatTime(player.cp.replicantiPointsTimerReq) }, { "color": "white", "font-size": "16px", "font-family": "monospace" }],
["raw-html", function () { return "Replicanti points Mult: " + format(player.cp.replicantiPointsMult, 4) + "x" }, { "color": "white", "font-size": "16px", "font-family": "monospace" }],
["row", [["bar", "replicantiBar"]]],
["row", [["clickable", 1]]],
["microtabs", "stuff", { 'border-width': '0px' }],
],
Expand Down
187 changes: 181 additions & 6 deletions js/Cantepocalypse/anonymity.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
unlocked: true,

anonymity: new Decimal(0),
anonymityToGet: new Decimal(1),
anonymityToGet: new Decimal(0),
}
},
automate() {
Expand All @@ -19,6 +19,10 @@
color: "#0c04c1",
update(delta) {
let onepersec = new Decimal(1)

player.an.anonymityToGet = player.cp.replicantiPoints.div(250000).pow(0.25)
if (hasUpgrade("an", 17)) player.an.anonymityToGet = player.an.anonymityToGet.mul(upgradeEffect("an", 17))
player.an.anonymityToGet = player.an.anonymityToGet.mul(player.rt.repliTreesEffect)
},
clickables: {
1: {
Expand All @@ -30,14 +34,180 @@
},
style: { width: '100px', "min-height": '50px' },
},
11: {
title() { return "<h3>Reset previous content except perks for anonymity. (based on replicanti points)" },
canClick() { return player.an.anonymityToGet.gte(1) },
unlocked() { return true },
onClick() {
player.an.anonymity = player.an.anonymity.add(player.an.anonymityToGet)

player.ar.rankPoints = new Decimal(0)
player.ar.tierPoints = new Decimal(0)
player.ar.tetrPoints = new Decimal(0)
player.cp.replicantiPoints = new Decimal(1)
},
style: { width: '400px', "min-height": '100px'},
},
},
bars: {
replicantiBar: {
unlocked() { return true },
direction: RIGHT,
width: 400,
height: 25,
progress() {
return player.cp.replicantiPointsTimer.div(player.cp.replicantiPointsTimerReq)
},
fillStyle: {
"background-color": "#193ceb",
},
display() {
return "Time: " + formatTime(player.cp.replicantiPointsTimer) + "/" + formatTime(player.cp.replicantiPointsTimerReq);
},
},
},
upgrades: {

11:
{
title: "Anonymity Upgrade I",
unlocked() { return true },
description: "Multiplies replicanti mult by x1.5.",
cost: new Decimal(2),
currencyLocation() { return player.an },
currencyDisplayName: "Anonymity",
currencyInternalName: "anonymity",
},
12:
{
title: "Anonymity Upgrade II",
unlocked() { return true },
description: "Multiplies replicanti mult based on anonymity.",
cost: new Decimal(5),
currencyLocation() { return player.an },
currencyDisplayName: "Anonymity",
currencyInternalName: "anonymity",
effect() {
return player.an.anonymity.plus(1).log10().pow(1.25).add(1)
},
effectDisplay() { return format(upgradeEffect(this.layer, this.id))+"x" }, // Add formatting to the effect
},
13:
{
title: "Anonymity Upgrade III",
unlocked() { return true },
description: "Gain 5% of rank points per second.",
cost: new Decimal(16),
currencyLocation() { return player.an },
currencyDisplayName: "Anonymity",
currencyInternalName: "anonymity",
},
14:
{
title: "Anonymity Upgrade IV",
unlocked() { return true },
description: "Extend the first and second softcap by x1,000.",
cost: new Decimal(48),
currencyLocation() { return player.an },
currencyDisplayName: "Anonymity",
currencyInternalName: "anonymity",
},
15:
{
title: "Anonymity Upgrade V",
unlocked() { return true },
description: "Gain 25% of rank points per second, and gain 5% of tier points per second.",
cost: new Decimal(212),
currencyLocation() { return player.an },
currencyDisplayName: "Anonymity",
currencyInternalName: "anonymity",
style: { width: '150px', height: '100px', }
},
16:
{
title: "Anonymity Upgrade VI",
unlocked() { return true },
description: "Boost perk points based on anonymity.",
cost: new Decimal(666),
currencyLocation() { return player.an },
currencyDisplayName: "Anonymity",
currencyInternalName: "anonymity",
style: { width: '125px', height: '100px', },
effect() {
return player.an.anonymity.pow(0.15).div(6).add(1)
},
effectDisplay() { return format(upgradeEffect(this.layer, this.id))+"x" }, // Add formatting to the effect
},
17:
{
title: "Anonymity Upgrade VII",
unlocked() { return true },
description: "Boost anonymity based on perk points.",
cost: new Decimal(2345),
currencyLocation() { return player.an },
currencyDisplayName: "Anonymity",
currencyInternalName: "anonymity",
style: { width: '125px', height: '100px', },
effect() {
return player.pr.perkPoints.pow(0.2).div(3).add(1)
},
effectDisplay() { return format(upgradeEffect(this.layer, this.id))+"x" }, // Add formatting to the effect
},
18:
{
title: "Anonymity Upgrade VIII",
unlocked() { return true },
description: "Gain 100% of rank points per second, and gain 25% of tier points per second, and gain 5% of tetr points per second.",
cost: new Decimal(15000),
currencyLocation() { return player.an },
currencyDisplayName: "Anonymity",
currencyInternalName: "anonymity",
style: { width: '150px', height: '100px', },
},
19:
{
title: "Anonymity Upgrade IX",
unlocked() { return true },
description: "Extend first and second softcap based on anonymity.",
cost: new Decimal(250000),
currencyLocation() { return player.an },
currencyDisplayName: "Anonymity",
currencyInternalName: "anonymity",
style: { width: '125px', hesight: '100px', },
effect() {
return player.an.anonymity.pow(0.75).mul(6).add(1)
},
effectDisplay() { return format(upgradeEffect(this.layer, this.id))+"x" }, // Add formatting to the effect
style: { width: '150px', height: '100px', },
},
21:
{
title: "Anonymity Upgrade X",
unlocked() { return true },
description: "Reduce repli-leaf time by 1.5s.",
cost: new Decimal(4e6),
currencyLocation() { return player.an },
currencyDisplayName: "Anonymity",
currencyInternalName: "anonymity",
style: { width: '125px', hesight: '100px', },
},
22:
{
title: "Anonymity Upgrade XI",
unlocked() { return true },
description: "Weaken second softcap based on second softcap start.",
cost: new Decimal(6e7),
currencyLocation() { return player.an },
currencyDisplayName: "Anonymity",
currencyInternalName: "anonymity",
style: { width: '150px', height: '100px', },
effect() {
return player.cp.replicantiSoftcap2Start.plus(1).log10().pow(0.65).mul(5).add(1)
},
effectDisplay() { return "/" + format(upgradeEffect(this.layer, this.id)) }, // Add formatting to the effect
},
},
buyables: {

},
milestones: {

Expand All @@ -55,17 +225,22 @@
[
["blank", "25px"],
["raw-html", function () { return "You have <h3>" + format(player.an.anonymity) + "</h3> anonymity." }, { "color": "white", "font-size": "20px", "font-family": "monospace" }],
["raw-html", function () { return "You will gain <h3>" + format(player.an.anonymity) + "</h3> anonymity on reset" }, { "color": "white", "font-size": "16px", "font-family": "monospace" }],,
]
["raw-html", function () { return "You will gain <h3>" + format(player.an.anonymityToGet) + "</h3> anonymity on reset." }, { "color": "white", "font-size": "16px", "font-family": "monospace" }],,
["blank", "25px"],
["row", [["clickable", 11]]],
["blank", "25px"],
["row", [["upgrade", 11], ["upgrade", 12], ["upgrade", 13], ["upgrade", 14], ["upgrade", 15], ["upgrade", 16]]],
["row", [["upgrade", 17], ["upgrade", 18], ["upgrade", 19], ["upgrade", 21], ["upgrade", 22]]],
]

},
},
},

tabFormat: [
["raw-html", function () { return "You have <h3>" + format(player.cp.replicantiPoints) + "</h3> replicanti." }, { "color": "white", "font-size": "20px", "font-family": "monospace" }],
["raw-html", function () { return "Time: " + formatTime(player.cp.replicantiPointsTimer) + "/" + formatTime(player.cp.replicantiPointsTimerReq) }, { "color": "white", "font-size": "16px", "font-family": "monospace" }],
["raw-html", function () { return "Replicanti Mult: " + format(player.cp.replicantiPointsMult, 4) + "x" }, { "color": "white", "font-size": "16px", "font-family": "monospace" }],
["row", [["bar", "replicantiBar"]]],
["row", [["clickable", 1]]],
["microtabs", "stuff", { 'border-width': '0px' }],
],
Expand Down
Loading

0 comments on commit ed6bc66

Please sign in to comment.