isaacscript-common 1.2.9 → 1.2.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -133,7 +133,7 @@ export declare function getPlayerIndexVanilla(playerToFind: EntityPlayer): int |
|
|
|
133
133
|
export declare function getPlayerMaxHeartContainers(player: EntityPlayer): int;
|
|
134
134
|
/**
|
|
135
135
|
* Helper function to get the name of the player. Use this instead of the `EntityPlayer.GetName`
|
|
136
|
-
* method if you want the name to include the "Tainted" prefix.
|
|
136
|
+
* method if you want the name to fill in "???" and include the "Tainted" prefix.
|
|
137
137
|
*/
|
|
138
138
|
export declare function getPlayerName(player: EntityPlayer): string;
|
|
139
139
|
/**
|
|
@@ -314,10 +314,11 @@ function ____exports.getPlayerIndexVanilla(self, playerToFind)
|
|
|
314
314
|
end
|
|
315
315
|
function ____exports.getPlayerName(self, player)
|
|
316
316
|
local name = player:GetName()
|
|
317
|
+
local filledInName = name == "???" and "Blue Baby" or name
|
|
317
318
|
if not ____exports.isTainted(nil, player) then
|
|
318
|
-
return
|
|
319
|
+
return filledInName
|
|
319
320
|
end
|
|
320
|
-
local baseName = trimPrefix(nil,
|
|
321
|
+
local baseName = trimPrefix(nil, filledInName, "The ")
|
|
321
322
|
return "Tainted " .. baseName
|
|
322
323
|
end
|
|
323
324
|
function ____exports.getPlayerNumHitsRemaining(self, player)
|
package/dist/functions/set.d.ts
CHANGED
|
@@ -5,10 +5,7 @@
|
|
|
5
5
|
* This function is variadic, meaning that you can specify N sets to add to the first set.
|
|
6
6
|
*/
|
|
7
7
|
export declare function addSetsToSet<T>(mainSet: Set<T>, ...setsToAdd: Array<Set<T>>): void;
|
|
8
|
-
/**
|
|
9
|
-
* Using a Set constructor to copy a Set does not seem to work properly, so use this helper function
|
|
10
|
-
* instead.
|
|
11
|
-
*/
|
|
8
|
+
/** Helper function to copy a set. (You can also use a Set constructor to accomplish this task.) */
|
|
12
9
|
export declare function copySet<T>(oldSet: Set<T>): Set<T>;
|
|
13
10
|
/**
|
|
14
11
|
* Helper function to create a new set that is the composition of two or more sets.
|