Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
tetra-tower
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Oenos
tetra-tower
Commits
6d68fd23
Commit
6d68fd23
authored
Feb 21, 2019
by
18류지석
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/item' into LifeStone
parents
8de190a3
dff4ecb8
Changes
14
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
14 changed files
with
384 additions
and
29 deletions
+384
-29
InventoryCanvas.prefab
.../Prefabs/UI/In-Game UI/InventoryUI/InventoryCanvas.prefab
+328
-24
Addon.cs
Assets/Scripts/Item/Addon.cs
+2
-0
CoollyPride.cs
Assets/Scripts/Item/Addons/CoollyPride.cs
+2
-0
GlowingHerb.cs
Assets/Scripts/Item/Addons/GlowingHerb.cs
+2
-0
Gluttony.cs
Assets/Scripts/Item/Addons/Gluttony.cs
+2
-0
ParchmentPiece.cs
Assets/Scripts/Item/Addons/ParchmentPiece.cs
+1
-0
InventoryUI.cs
Assets/Scripts/Item/InventoryUI.cs
+1
-0
Baculus.cs
Assets/Scripts/Item/Items/Baculus.cs
+3
-1
Bow.cs
Assets/Scripts/Item/Items/Bow.cs
+3
-1
Dagger.cs
Assets/Scripts/Item/Items/Dagger.cs
+1
-1
ElectricShockRod.cs
Assets/Scripts/Item/Items/ElectricShockRod.cs
+26
-0
ElectricShockRod.cs.meta
Assets/Scripts/Item/Items/ElectricShockRod.cs.meta
+11
-0
ExplosionGloves.cs
Assets/Scripts/Item/Items/ExplosionGloves.cs
+1
-1
Morgenstern.cs
Assets/Scripts/Item/Items/Morgenstern.cs
+1
-1
No files found.
Assets/Prefabs/UI/In-Game UI/InventoryUI/InventoryCanvas.prefab
View file @
6d68fd23
This diff is collapsed.
Click to expand it.
Assets/Scripts/Item/Addon.cs
View file @
6d68fd23
...
@@ -11,6 +11,7 @@ public abstract class Addon {
...
@@ -11,6 +11,7 @@ public abstract class Addon {
public
Sprite
highlight
;
public
Sprite
highlight
;
public
Vector2
sizeInventory
;
public
Vector2
sizeInventory
;
public
string
addonDescription
;
public
string
addonDescription
;
public
string
addonInfo
;
public
Addon
()
public
Addon
()
{
{
...
@@ -25,6 +26,7 @@ public abstract class Addon {
...
@@ -25,6 +26,7 @@ public abstract class Addon {
highlight
=
null
;
highlight
=
null
;
sizeInventory
=
new
Vector2
(
0
,
0
);
sizeInventory
=
new
Vector2
(
0
,
0
);
addonDescription
=
null
;
addonDescription
=
null
;
addonInfo
=
null
;
}
}
public
virtual
float
DamageAdder
(
PlayerAttackInfo
attackInfo
,
Enemy
enemyInfo
,
string
combo
)
public
virtual
float
DamageAdder
(
PlayerAttackInfo
attackInfo
,
Enemy
enemyInfo
,
string
combo
)
{
{
...
...
Assets/Scripts/Item/Addons/CoollyPride.cs
View file @
6d68fd23
...
@@ -15,6 +15,8 @@ public class CoollyPride : Addon
...
@@ -15,6 +15,8 @@ public class CoollyPride : Addon
sprite
=
Resources
.
Load
<
Sprite
>(
"Sprites/Addons/Coolly Pride"
);
;
sprite
=
Resources
.
Load
<
Sprite
>(
"Sprites/Addons/Coolly Pride"
);
;
highlight
=
Resources
.
Load
<
Sprite
>(
"Sprites/Addons/Coolly Pride"
);
;
highlight
=
Resources
.
Load
<
Sprite
>(
"Sprites/Addons/Coolly Pride"
);
;
sizeInventory
=
new
Vector2
(
80
,
80
);
sizeInventory
=
new
Vector2
(
80
,
80
);
addonDescription
=
"꺼지지 않을 것 처럼 타올랐지만, 이제는 완전히 식어버린 차숀의 긍지."
;
addonInfo
=
"기본 피해량이 4 미만이면 적을 2초간 빙결시킵니다."
;
}
}
public
override
float
[]
DebuffAdder
(
PlayerAttackInfo
attackInfo
,
Enemy
enemyInfo
,
string
combo
)
public
override
float
[]
DebuffAdder
(
PlayerAttackInfo
attackInfo
,
Enemy
enemyInfo
,
string
combo
)
...
...
Assets/Scripts/Item/Addons/GlowingHerb.cs
View file @
6d68fd23
...
@@ -15,6 +15,8 @@ public class GlowingHerb : Addon
...
@@ -15,6 +15,8 @@ public class GlowingHerb : Addon
sprite
=
Resources
.
Load
<
Sprite
>(
"Sprites/Addons/Glowing Herb"
);
;
sprite
=
Resources
.
Load
<
Sprite
>(
"Sprites/Addons/Glowing Herb"
);
;
highlight
=
Resources
.
Load
<
Sprite
>(
"Sprites/Addons/Glowing Herb"
);
;
highlight
=
Resources
.
Load
<
Sprite
>(
"Sprites/Addons/Glowing Herb"
);
;
sizeInventory
=
new
Vector2
(
80
,
80
);
sizeInventory
=
new
Vector2
(
80
,
80
);
addonDescription
=
"활활 타오르며 매콤한 맛이 날 것 같지만 평범하게 쓰다. - 하부 료진"
;
addonInfo
=
"타격시 적을 3초간 화상 상태로 만듭니다."
;
}
}
public
override
float
[]
DebuffAdder
(
PlayerAttackInfo
attackInfo
,
Enemy
enemyInfo
,
string
combo
)
public
override
float
[]
DebuffAdder
(
PlayerAttackInfo
attackInfo
,
Enemy
enemyInfo
,
string
combo
)
...
...
Assets/Scripts/Item/Addons/Gluttony.cs
View file @
6d68fd23
...
@@ -17,6 +17,8 @@ public class Gluttony : Addon
...
@@ -17,6 +17,8 @@ public class Gluttony : Addon
highlight
=
Resources
.
Load
<
Sprite
>(
"Sprites/Addons/parchment piece"
);
;
highlight
=
Resources
.
Load
<
Sprite
>(
"Sprites/Addons/parchment piece"
);
;
sizeInventory
=
new
Vector2
(
80
,
80
);
sizeInventory
=
new
Vector2
(
80
,
80
);
lifeStoneManager
=
LifeStoneManager
.
Instance
;
lifeStoneManager
=
LifeStoneManager
.
Instance
;
addonDescription
=
"식욕은 누구에게나 존재한다. - 토미 다라바."
;
addonInfo
=
"적을 처치하면 생명석이 1개 회복됩니다."
;
}
}
public
override
void
OtherEffect
(
PlayerAttackInfo
attackInfo
,
Enemy
enemyInfo
,
string
combo
)
public
override
void
OtherEffect
(
PlayerAttackInfo
attackInfo
,
Enemy
enemyInfo
,
string
combo
)
{
{
...
...
Assets/Scripts/Item/Addons/ParchmentPiece.cs
View file @
6d68fd23
...
@@ -16,6 +16,7 @@ public class ParchmentPiece : Addon
...
@@ -16,6 +16,7 @@ public class ParchmentPiece : Addon
highlight
=
Resources
.
Load
<
Sprite
>(
"Sprites/Addons/parchment piece_border"
);
;
highlight
=
Resources
.
Load
<
Sprite
>(
"Sprites/Addons/parchment piece_border"
);
;
sizeInventory
=
new
Vector2
(
70
,
77.5f
);
sizeInventory
=
new
Vector2
(
70
,
77.5f
);
addonDescription
=
"쓸모없는 애드온"
;
addonDescription
=
"쓸모없는 애드온"
;
addonInfo
=
"피해량이 3 미만이면 피해량이 100% 증가합니다."
;
}
}
public
override
float
DamageMultiplier
(
PlayerAttackInfo
attackInfo
,
Enemy
enemyInfo
,
string
combo
)
public
override
float
DamageMultiplier
(
PlayerAttackInfo
attackInfo
,
Enemy
enemyInfo
,
string
combo
)
{
{
...
...
Assets/Scripts/Item/InventoryUI.cs
View file @
6d68fd23
...
@@ -151,6 +151,7 @@ public class InventoryUI : MonoBehaviour {
...
@@ -151,6 +151,7 @@ public class InventoryUI : MonoBehaviour {
infoAddonsFrame
[
i
].
transform
.
Find
(
"Quality"
).
GetComponent
<
Text
>().
text
=
qualityString
[(
int
)
itemList
[
selectedItem
].
addons
[
i
].
quality
];
infoAddonsFrame
[
i
].
transform
.
Find
(
"Quality"
).
GetComponent
<
Text
>().
text
=
qualityString
[(
int
)
itemList
[
selectedItem
].
addons
[
i
].
quality
];
infoAddonsFrame
[
i
].
transform
.
Find
(
"Name"
).
GetComponent
<
Text
>().
text
=
itemList
[
selectedItem
].
addons
[
i
].
name
;
infoAddonsFrame
[
i
].
transform
.
Find
(
"Name"
).
GetComponent
<
Text
>().
text
=
itemList
[
selectedItem
].
addons
[
i
].
name
;
infoAddonsFrame
[
i
].
transform
.
Find
(
"Description"
).
GetComponent
<
Text
>().
text
=
itemList
[
selectedItem
].
addons
[
i
].
addonDescription
;
infoAddonsFrame
[
i
].
transform
.
Find
(
"Description"
).
GetComponent
<
Text
>().
text
=
itemList
[
selectedItem
].
addons
[
i
].
addonDescription
;
infoAddonsFrame
[
i
].
transform
.
Find
(
"Info"
).
GetComponent
<
Text
>().
text
=
itemList
[
selectedItem
].
addons
[
i
].
addonInfo
;
}
}
...
...
Assets/Scripts/Item/Items/Baculus.cs
View file @
6d68fd23
...
@@ -9,7 +9,7 @@ public class Baculus : Item
...
@@ -9,7 +9,7 @@ public class Baculus : Item
{
{
public
override
void
Declare
()
public
override
void
Declare
()
{
{
id
=
15
;
name
=
"
Baculus
"
;
id
=
15
;
name
=
"
바쿨루스
"
;
quality
=
ItemQuality
.
Ordinary
;
quality
=
ItemQuality
.
Ordinary
;
skillNum
=
2
;
skillNum
=
2
;
combo
=
new
string
[
3
]
{
"BCB"
,
"ACBC"
,
""
};
combo
=
new
string
[
3
]
{
"BCB"
,
"ACBC"
,
""
};
...
@@ -20,5 +20,7 @@ public class Baculus : Item
...
@@ -20,5 +20,7 @@ public class Baculus : Item
animation
[
1
]
=
Resources
.
Load
<
AnimationClip
>(
"Animations/baculusAttack2"
);
animation
[
1
]
=
Resources
.
Load
<
AnimationClip
>(
"Animations/baculusAttack2"
);
animation
[
2
]
=
null
;
animation
[
2
]
=
null
;
sizeInventory
=
new
Vector2
(
90
,
160
);
sizeInventory
=
new
Vector2
(
90
,
160
);
itemInfo
=
"신을 숭배하는 자들이 들고 있던 청백색의 주교 지팡이. 영험한 힘이 느껴진다."
;
comboName
=
new
string
[
3
]
{
"기도"
,
"징벌"
,
""
};
}
}
}
}
Assets/Scripts/Item/Items/Bow.cs
View file @
6d68fd23
...
@@ -11,7 +11,7 @@ public class Bow : Item {
...
@@ -11,7 +11,7 @@ public class Bow : Item {
public
override
void
Declare
()
public
override
void
Declare
()
{
{
id
=
2
;
name
=
"
bow
"
;
id
=
2
;
name
=
"
활
"
;
quality
=
ItemQuality
.
Study
;
quality
=
ItemQuality
.
Study
;
skillNum
=
2
;
skillNum
=
2
;
combo
=
new
string
[
3
]
{
"BB"
,
"BC"
,
""
};
combo
=
new
string
[
3
]
{
"BB"
,
"BC"
,
""
};
...
@@ -22,6 +22,8 @@ public class Bow : Item {
...
@@ -22,6 +22,8 @@ public class Bow : Item {
animation
[
1
]
=
Resources
.
Load
<
AnimationClip
>(
"Animations/bowAttack2"
);
animation
[
1
]
=
Resources
.
Load
<
AnimationClip
>(
"Animations/bowAttack2"
);
animation
[
2
]
=
null
;
animation
[
2
]
=
null
;
sizeInventory
=
new
Vector2
(
137.5f
,
137.5f
);
sizeInventory
=
new
Vector2
(
137.5f
,
137.5f
);
itemInfo
=
"단순한 나무활. 군더더기 없는 깔끔한 모습이지만 금방이라도 부셔질 듯이 조잡한 것을 보니 싸구려 인듯 하다."
;
comboName
=
new
string
[
3
]
{
"쏘기"
,
"위로 쏘기"
,
""
};
player
=
GameObject
.
Find
(
"Player"
);
player
=
GameObject
.
Find
(
"Player"
);
arrow
=
Resources
.
Load
<
GameObject
>(
"Prefabs/Projectiles/bow_arrow"
);
arrow
=
Resources
.
Load
<
GameObject
>(
"Prefabs/Projectiles/bow_arrow"
);
...
...
Assets/Scripts/Item/Items/Dagger.cs
View file @
6d68fd23
...
@@ -9,7 +9,7 @@ public class Dagger : Item
...
@@ -9,7 +9,7 @@ public class Dagger : Item
{
{
public
override
void
Declare
()
public
override
void
Declare
()
{
{
id
=
1
;
name
=
"
dagger
"
;
id
=
1
;
name
=
"
단검(Sweet Sword)
"
;
quality
=
ItemQuality
.
Study
;
quality
=
ItemQuality
.
Study
;
skillNum
=
2
;
skillNum
=
2
;
combo
=
new
string
[
3
]
{
"A"
,
"AA"
,
""
};
combo
=
new
string
[
3
]
{
"A"
,
"AA"
,
""
};
...
...
Assets/Scripts/Item/Items/ElectricShockRod.cs
0 → 100644
View file @
6d68fd23
using
System.Collections
;
using
System.Collections.Generic
;
using
UnityEngine
;
/// <summary>
/// 아이템명: 감전봉
/// 번호: 52
/// </summary>
public
class
ElectricShockRod
:
Item
{
public
override
void
Declare
()
{
id
=
52
;
name
=
"감전봉"
;
quality
=
ItemQuality
.
Masterpiece
;
skillNum
=
2
;
combo
=
new
string
[
3
]
{
"ABA"
,
"CBABB"
,
""
};
attachable
=
new
bool
[
4
]
{
false
,
false
,
true
,
true
};
sprite
=
Resources
.
Load
<
Sprite
>(
"Sprites/Items/electric shock rod"
);
highlight
=
Resources
.
Load
<
Sprite
>(
"Sprites/Items/electric shock rod"
);
animation
[
0
]
=
Resources
.
Load
<
AnimationClip
>(
"Animations/electricShockRodAttack1"
);
animation
[
1
]
=
Resources
.
Load
<
AnimationClip
>(
"Animations/electricShockRodAttack2"
);
animation
[
2
]
=
null
;
sizeInventory
=
new
Vector2
(
90
,
160
);
itemInfo
=
"몸이 타는 것 같은 수준으로 아프다. 명령을 내릴 때 효과적일 것 같다."
;
comboName
=
new
string
[
3
]
{
"충전"
,
"방전"
,
""
};
}
}
Assets/Scripts/Item/Items/ElectricShockRod.cs.meta
0 → 100644
View file @
6d68fd23
fileFormatVersion: 2
guid: bb06bbbb186c681479b2784047d9df19
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:
Assets/Scripts/Item/Items/ExplosionGloves.cs
View file @
6d68fd23
...
@@ -9,7 +9,7 @@ public class ExplosionGloves : Item
...
@@ -9,7 +9,7 @@ public class ExplosionGloves : Item
{
{
public
override
void
Declare
()
public
override
void
Declare
()
{
{
id
=
21
;
name
=
"
explosion gloves
"
;
id
=
21
;
name
=
"
폭탄마의 장갑
"
;
quality
=
ItemQuality
.
Ordinary
;
quality
=
ItemQuality
.
Ordinary
;
skillNum
=
2
;
skillNum
=
2
;
combo
=
new
string
[
3
]
{
"CAC"
,
"CA"
,
""
};
combo
=
new
string
[
3
]
{
"CAC"
,
"CA"
,
""
};
...
...
Assets/Scripts/Item/Items/Morgenstern.cs
View file @
6d68fd23
...
@@ -9,7 +9,7 @@ public class Morgenstern : Item
...
@@ -9,7 +9,7 @@ public class Morgenstern : Item
{
{
public
override
void
Declare
()
public
override
void
Declare
()
{
{
id
=
16
;
name
=
"
Baculus
"
;
id
=
16
;
name
=
"
모닝스타
"
;
quality
=
ItemQuality
.
Superior
;
quality
=
ItemQuality
.
Superior
;
skillNum
=
2
;
skillNum
=
2
;
combo
=
new
string
[
3
]
{
"BBCAA"
,
"BBB"
,
""
};
combo
=
new
string
[
3
]
{
"BBCAA"
,
"BBB"
,
""
};
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment