mirror of
https://github.com/yogstation13/Yogstation.git
synced 2025-02-26 09:04:50 +00:00
Makes all greentext achievements implicitly reward the generic one
This commit is contained in:
@@ -52,6 +52,8 @@ SUBSYSTEM_DEF(achievements)
|
||||
if(!achievement)
|
||||
log_sql("Achievement [achievementPath] not found in list of achievements when trying to unlock for [C.ckey]")
|
||||
return FALSE
|
||||
if(istype(achievement,/datum/achievement/greentext) && achievementPath != /datum/achievement/greentext)
|
||||
unlock_achievement(/datum/achievement/greentext,C) // Oooh, a little bit recursive!
|
||||
if(!has_achievement(achievementPath, C))
|
||||
var/datum/DBQuery/medalQuery = SSdbcore.NewQuery("INSERT INTO [format_table_name("earned_achievements")] (ckey, id) VALUES ('[C.ckey]', '[achievement.id]')")
|
||||
medalQuery.Execute()
|
||||
|
||||
Reference in New Issue
Block a user