Merge pull request #340 from kohashiwakaba/master

Fixed Broken Shovel description not appearing
This commit is contained in:
wofsauge authored and GitHub committed 2022-01-22 18:18:24 +01:00
commit 4ca7621ea3
4 files changed
+8 -3

No files matched your search

+1 -1
View File
@@ -87,7 +87,7 @@ EID.descriptions[languageCode].collectibles={
{"52", "태아 박사", "↓ {{Tears}}공격 딜레이 x2.5#공격이 폭탄 발사 공격으로 변경됩니다.#폭탄 공격력: x5 +30"}, -- Dr. Fetus
{"53", "자석", "픽업 아이템이 캐릭터에게 끌려옵니다."}, -- Magneto
{"54", "보물 지도", "맵에 스테이지 구조를 표시합니다."}, -- Treasure Map
{"55", "엄마의 눈알", "50%의 확률로 캐릭터의 뒤에서 공격이 나갑니다."}, -- Mom's Eye
{"55", "엄마의 눈알", "50%의 확률로 캐릭터의 뒤에서 공격이 나갑니다.#!!! {{Luck}}행운 수치 비례: 행운 2 이상일 때 100% 확률"}, -- Mom's Eye
{"56", "레몬빛 실수", "사용 시 캐릭터의 주위에 노란 장판이 생성되며 장판에 닿은 적은 초당 66의 피해를 입습니다."}, -- Lemon Mishap
{"57", "짝사랑", "캐릭터 주위를 돌며 접촉하는 적에게 초당 75의 피해를 입힙니다."}, -- Distant Admiration
{"58", "그림자의 책", "사용 시 10초간 무적 상태가 됩니다."}, -- Book of Shadows
+1 -1
View File
@@ -192,7 +192,7 @@ local repCollectibles={
[415] = {"415", "빛의 왕관", "↑ 소울하트 +2#!!! 최대 체력이 모두 차있거나 빨간하트가 없을 때:#↑ {{Damage}}공격력 배율 x2#↑ {{Range}}사거리 +1.5#↓ {{Shotspeed}}}탄속 -0.3#피격 시 그 방에서만 비활성화됩니다."}, -- Crown Of Light
[416] = {"416", "넓은 가방", "동전의 최대 소지 가능 개수가 999로 증가합니다.#방 클리어 시 보상이 드랍되지 않으면 동전을 1~3개 드랍합니다."}, -- Deep Pockets
[417] = {"417", "서큐버스", "오라를 가지고 대각선으로 이동하며 오라 안에 들어온 적에게 프레임당 2.5의 피해를 입히고 캐릭터가 들어오면 {{Damage}}공격력을 x1.5 증가시켜줍니다."}, -- Succubus
[419] = {"419", "순간이동 2.0", "사용 시 클리어하지 않은 방들 중 하나로 정해진 우선순위에 따라서 순간이동합니다.#!!! 순서: {{Room}}>{{BossRoom}}>{{SuperSecretRoom}}>{{Shop}}>{{TreasureRoom}}>{{SacrificeRoom}}> {{DiceRoom}}>{{Library}}>{{CursedRoom}}>{{MiniBoss}}>{{ChallengeRoom}}>{{IsaacsRoom}}> {{ArcadeRoom}}>{{ChestRoom}}>{{Planetarium}}>{{SecretRoom}}>{{DevilRoom}}{{AngelRoom}}> 오류방"}, -- Teleport 2.0
[419] = {"419", "순간이동 2.0", "사용 시 클리어하지 않은 방들 중 하나로 정해진 우선순위에 따라서 순간이동합니다.#!!! 순서: {{Room}}>{{BossRoom}}>{{SuperSecretRoom}}>{{Shop}}>{{TreasureRoom}}>{{SacrificeRoom}}> {{DiceRoom}}>{{Library}}>{{CursedRoom}}>{{MiniBoss}}>{{ChallengeRoom}}>{{IsaacsRoom}}> {{ArcadeRoom}}>{{ChestRoom}}>{{Planetarium}}>{{SecretRoom}}>{{DevilRoom}}{{AngelRoom}}> 오류방#Mausoleum/Gehenna II의 엄마 심장 처치 후 사용 시 위의 순서를 무시하고 무조건 오류방으로 텔레포트합니다."}, -- Teleport 2.0
[421] = {"421", "강낭콩", "사용 시 매혹 방귀를 뀝니다."}, -- Kidney Bean
[426] = {"426", "집착하는 추종자", "캐릭터가 지나간 길을 1초 후 따라가며 접촉한 적에게 초당 30의 피해를 입힙니다."}, -- Obsessed Fan
[427] = {"427", "마인크래프터", "사용 시 이동식 TNT를 생성합니다.#충전되지 않았을때 사용 시 생성한 TNT를 폭파합니다."}, -- Mine Crafter
+1
View File
@@ -509,6 +509,7 @@ function EID:hasDescription(entity)
end
if entity.Type == EntityType.ENTITY_PICKUP then
isAllowed = isAllowed or (entity.Variant == PickupVariant.PICKUP_COLLECTIBLE and EID.Config["DisplayItemInfo"])
isAllowed = isAllowed or (entity.Variant == 110 and entity:GetSprite():IsPlaying("Idle") and EID.Config["DisplayItemInfo"])
isAllowed = isAllowed or (entity.Variant == PickupVariant.PICKUP_TRINKET and EID.Config["DisplayTrinketInfo"])
isAllowed = isAllowed or (entity.Variant == PickupVariant.PICKUP_TAROTCARD and EID.Config["DisplayCardInfo"])
isAllowed = isAllowed or (entity.Variant == PickupVariant.PICKUP_PILL and EID.Config["DisplayPillInfo"])
+5 -1
View File
@@ -1079,7 +1079,11 @@ local function onRender(t)
if EID.pathfindingTo and EID.pathfindingTo.Index ~= closest.Index then EID:updatePathfinding() end
if closest.Variant == PickupVariant.PICKUP_TRINKET then
if closest.Variant == 110 then
--Handle Broken Shovel
local descriptionObj = EID:getDescriptionObj(5, 100, 550, closest)
EID:printDescription(descriptionObj)
elseif closest.Variant == PickupVariant.PICKUP_TRINKET then
--Handle Trinkets
local descriptionObj = EID:getDescriptionObjByEntity(closest)
EID:printDescription(descriptionObj)