1
0
mirror of https://github.com/JezuzLizard/BO2-Reimagined.git synced 2025-07-01 09:30:08 -05:00

Buildables: use localized hint string for cost

This commit is contained in:
Jbleezy
2023-02-28 00:01:31 -08:00
parent 1afb98632d
commit 3b82ca3705
4 changed files with 55 additions and 25 deletions

View File

@ -29,7 +29,16 @@ add_buildable_to_pool( stub, poolname )
pooledbuildabletrigger_update_prompt( player )
{
can_use = self.stub pooledbuildablestub_update_prompt( player, self );
self sethintstring( self.stub.hint_string );
if (can_use && is_true(self.stub.built))
{
self sethintstring( self.stub.hint_string, " [Cost: " + self.stub.cost + "]" );
}
else
{
self sethintstring( self.stub.hint_string );
}
if ( isDefined( self.stub.cursor_hint ) )
{
if ( self.stub.cursor_hint == "HINT_WEAPON" && isDefined( self.stub.cursor_hint_weapon ) )