It's Cow Game! Version 2.04!
This commit is contained in:
commit
a9e1ed9ddd
3148 changed files with 95332 additions and 0 deletions
53
Skills/Appreciating/Appreciating.gd
Normal file
53
Skills/Appreciating/Appreciating.gd
Normal file
|
|
@ -0,0 +1,53 @@
|
|||
extends Skill
|
||||
|
||||
class_name Appreciating
|
||||
|
||||
func _init():
|
||||
skillName = "Experiencing"
|
||||
skillIcon = load("res://Skills/Appreciating/AppreciatingIcon.png")
|
||||
|
||||
func experience_event(eventName:String, verb:String, xpEarned:int):
|
||||
var timesDone = SaveManager.get_value_from_section(verb, eventName, 0)
|
||||
|
||||
if timesDone == 0:
|
||||
LevelManager.add_XP("appreciating", xpEarned)
|
||||
|
||||
timesDone += 1
|
||||
SaveManager.save_to_section(verb, eventName, timesDone)
|
||||
|
||||
func experience_item(item:Item, verb:String):
|
||||
var itemName = item.get_name(false)
|
||||
|
||||
var timesDone = SaveManager.get_value_from_section(verb, itemName, 0)
|
||||
|
||||
if timesDone == 0:
|
||||
var earnedXP = 10
|
||||
|
||||
if verb == "caramelized":
|
||||
earnedXP += floor(item.get_value(false) * 0.2)
|
||||
elif verb == "dammed":
|
||||
earnedXP += floor(item.get_value(false) * 0.9)
|
||||
elif verb == "washed away":
|
||||
earnedXP += floor(item.get_value(false) * 1.1)
|
||||
earnedXP += 15
|
||||
else:
|
||||
earnedXP += floor(item.get_value(false) * 0.5)
|
||||
|
||||
LevelManager.add_XP("appreciating", earnedXP)
|
||||
|
||||
timesDone += 1
|
||||
SaveManager.save_to_section(verb, itemName, timesDone)
|
||||
|
||||
if verb == "ate" and itemName == "Wustard":
|
||||
if timesDone >= 100:
|
||||
AchievementManager.complete_achievement("Closer to Steve")
|
||||
elif verb == "washed away":
|
||||
var washedItemCount = 0
|
||||
var config = SaveManager.get_save_config()
|
||||
var washedItems = config.get_section_keys("washed away")
|
||||
|
||||
for washedItem in washedItems:
|
||||
washedItemCount += SaveManager.get_value_from_section("washed away", washedItem, 0)
|
||||
|
||||
if washedItemCount >= 30:
|
||||
AchievementManager.complete_achievement("From where we came")
|
||||
BIN
Skills/Appreciating/AppreciatingIcon.png
Normal file
BIN
Skills/Appreciating/AppreciatingIcon.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 439 B |
34
Skills/Appreciating/AppreciatingIcon.png.import
Normal file
34
Skills/Appreciating/AppreciatingIcon.png.import
Normal file
|
|
@ -0,0 +1,34 @@
|
|||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://ciy5ajk2qg6kq"
|
||||
path="res://.godot/imported/AppreciatingIcon.png-936cf70511f2b08b256766df3ff8824b.ctex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://Skills/Appreciating/AppreciatingIcon.png"
|
||||
dest_files=["res://.godot/imported/AppreciatingIcon.png-936cf70511f2b08b256766df3ff8824b.ctex"]
|
||||
|
||||
[params]
|
||||
|
||||
compress/mode=0
|
||||
compress/high_quality=false
|
||||
compress/lossy_quality=0.7
|
||||
compress/hdr_compression=1
|
||||
compress/normal_map=0
|
||||
compress/channel_pack=0
|
||||
mipmaps/generate=false
|
||||
mipmaps/limit=-1
|
||||
roughness/mode=0
|
||||
roughness/src_normal=""
|
||||
process/fix_alpha_border=true
|
||||
process/premult_alpha=false
|
||||
process/normal_map_invert_y=false
|
||||
process/hdr_as_srgb=false
|
||||
process/hdr_clamp_exposure=false
|
||||
process/size_limit=0
|
||||
detect_3d/compress_to=1
|
||||
Loading…
Add table
Add a link
Reference in a new issue