@@ -29,6 +29,7 @@ import _ from "lodash";
29
29
import PartialRecursive from "../utils/PartialRecursive" ;
30
30
import { land , sea } from "../common/ingame-game-state/game-data-structure/regionTypes" ;
31
31
import PlaceOrdersGameState from "../common/ingame-game-state/planning-game-state/place-orders-game-state/PlaceOrdersGameState" ;
32
+ import PlaceOrdersForVassalsGameState from "../common/ingame-game-state/planning-game-state/place-orders-for-vassals-game-state/PlaceOrdersForVassalsGameState" ;
32
33
import UseRavenGameState from "../common/ingame-game-state/action-game-state/use-raven-game-state/UseRavenGameState" ;
33
34
import { renderRegionTooltip } from "./regionTooltip" ;
34
35
import getGarrisonToken from "./garrisonTokens" ;
@@ -377,10 +378,24 @@ export default class MapComponent extends Component<MapComponentProps> {
377
378
}
378
379
379
380
const clickable = property . onClick != undefined ;
381
+ const dragonStrength = this . ingame . game . currentDragonStrength ;
382
+
383
+ const dragonPrefix = u . type . id == "dragon"
384
+ ? dragonStrength <= - 1
385
+ ? < > </ >
386
+ : dragonStrength <= 1
387
+ ? < > Baby </ >
388
+ : dragonStrength <= 3
389
+ ? < > </ >
390
+ : dragonStrength <= 5
391
+ ? < > Monster </ >
392
+ : < > </ >
393
+ : < >
394
+ </ > ;
380
395
381
396
return < OverlayTrigger
382
397
overlay = { < Tooltip id = { "unit-tooltip-" + u . id } className = "tooltip-w-100" >
383
- < div className = "text-center" > < b > { u . type . name } </ b > < small > of < b > { controller ?. name ?? "Unknown" } </ b > < br /> < b > { r . name } </ b > </ small > </ div >
398
+ < div className = "text-center" > < b > { dragonPrefix } { u . type . name } </ b > < small > of < b > { controller ?. name ?? "Unknown" } </ b > < br /> < b > { r . name } </ b > </ small > </ div >
384
399
</ Tooltip > }
385
400
key = { `map-unit-_${ controller ?. id ?? "must-be-controlled" } _${ u . id } ` }
386
401
delay = { { show : 500 , hide : 100 } }
@@ -405,7 +420,7 @@ export default class MapComponent extends Component<MapComponentProps> {
405
420
"pulsate-bck_fade-in" : property . animateFadeIn ,
406
421
"pulsate-bck_fade-out" : property . animateFadeOut ,
407
422
} ,
408
- getClassNameForDragonStrength ( u . type . id , this . ingame . game . currentDragonStrength )
423
+ getClassNameForDragonStrength ( u . type . id , dragonStrength )
409
424
) }
410
425
style = { {
411
426
backgroundImage : `url(${ unitImages . get ( u . allegiance . id ) . get ( u . upgradedType ? u . upgradedType . id : u . type . id ) } )` ,
@@ -597,7 +612,7 @@ export default class MapComponent extends Component<MapComponentProps> {
597
612
}
598
613
599
614
const drawBorder = order ?. type . restrictedTo == sea . kind ;
600
- const hasPlaceOrders = this . ingame . hasChildGameState ( PlaceOrdersGameState ) ;
615
+ const hasPlaceOrders = this . ingame . hasChildGameState ( PlaceOrdersGameState ) || this . ingame . hasChildGameState ( PlaceOrdersForVassalsGameState ) ;
601
616
const controller = drawBorder || hasPlaceOrders ? region . getController ( ) : null ;
602
617
const color = drawBorder && controller
603
618
? controller . id != "greyjoy"
0 commit comments