소스 검색

Add color to powerup upgrades; mess around with the click victim upgrade icons

tags/v0.1.0
Fen Dweller 5 년 전
부모
커밋
55473ad8ee
No known key found for this signature in database GPG 키 ID: E80B35A6F11C3656
1개의 변경된 파일7개의 추가작업 그리고 2개의 파일을 삭제
  1. +7
    -2
      constants.js

+ 7
- 2
constants.js 파일 보기

@@ -512,12 +512,13 @@ function createClickVictimUpgrades() {
let counter = 1;
let previous = "micro";
Object.entries(clickVictimUpgradeText).forEach(([key, text]) => {
let newColor = clickVictimUpgradeColors[counter - 1] + "dd";
upgrades[prefix + key] = {
"name": text.name,
"desc": text.desc,
"icon": [
{ icon: buildings[key].icon, color: "#eee" },
{ icon: "fa-hand-pointer", color: clickVictimUpgradeColors[counter - 1] }
{ icon: "fa-hand-pointer", color: newColor, transform: "scale(0.75, 0.75) translate(20px, 20px) rotate(-15deg)" }
],
"cost": {
"food": 1000 * Math.pow(10, counter)
@@ -542,6 +543,8 @@ function createClickVictimUpgrades() {
});
}

const powerupFreqColors = range.colors(5);

function createPowerupFreqUpgrades() {
const prefix = "powerup-freq-";
let counter = 1;
@@ -549,7 +552,9 @@ function createPowerupFreqUpgrades() {
upgrades[prefix + counter] = {
"name": text.name,
"desc": text.desc,
"icon": "fa-drumstick-bite",
"icon": [
{ icon: "fa-drumstick-bite", color: powerupFreqColors[counter - 1] }
],
"cost": {
"powerups": 5 * counter
},


불러오는 중...
취소
저장